WP Facebook Auto Publish - Version 1.3.1

Version Description

= Facebook Auto Publish 1.0.1 = If you had issues with default image used for auto publishing, you may apply this upgrade.

= Facebook Auto Publish 1.0 = First official launch.

Download this release

Release Info

Developer f1logic
Plugin Icon 128x128 WP Facebook Auto Publish
Version 1.3.1
Comparing to
See all releases

Code changes from version 1.3 to 1.3.1

Files changed (3) hide show
  1. admin/publish.php +18 -5
  2. facebook-auto-publish.php +1 -1
  3. readme.txt +6 -2
admin/publish.php CHANGED
@@ -16,7 +16,8 @@ add_action( 'transition_post_status', 'xyz_link_fbap_future_to_publish', 10, 3
16
 
17
  function xyz_link_fbap_future_to_publish($new_status, $old_status, $post){
18
 
19
-
 
20
  $postid =$post->ID;
21
  $get_post_meta=get_post_meta($postid,"xyz_fbap",true);
22
 
@@ -38,7 +39,16 @@ function xyz_link_fbap_future_to_publish($new_status, $old_status, $post){
38
  if($post_permissin == 1)
39
  {
40
  if($new_status == 'publish')
41
- xyz_fbap_link_publish($postid);
 
 
 
 
 
 
 
 
 
42
  }
43
 
44
  }
@@ -162,7 +172,10 @@ function xyz_fbap_link_publish($post_ID) {
162
  $carr=explode(',', $xyz_fbap_include_customposttypes);
163
 
164
  if(!in_array($posttype, $carr))
165
- $_POST=$_POST_CPY;return;
 
 
 
166
  }
167
  else
168
  {
@@ -230,8 +243,8 @@ function xyz_fbap_link_publish($post_ID) {
230
 
231
  $name = $postpp->post_title;
232
  $caption = html_entity_decode(get_bloginfo('title'), ENT_QUOTES, get_bloginfo('charset'));
233
- if(get_option('xyz_fbap_utf_decode_enable')==1)
234
- $caption=utf8_decode($caption);
235
  if($tit_flag==1)
236
  $name = apply_filters('the_title', $name);
237
  $name = html_entity_decode($name, ENT_QUOTES, get_bloginfo('charset'));
16
 
17
  function xyz_link_fbap_future_to_publish($new_status, $old_status, $post){
18
 
19
+ if(!isset($GLOBALS['fbap_dup_publish']))
20
+ $GLOBALS['fbap_dup_publish']=array();
21
  $postid =$post->ID;
22
  $get_post_meta=get_post_meta($postid,"xyz_fbap",true);
23
 
39
  if($post_permissin == 1)
40
  {
41
  if($new_status == 'publish')
42
+ {
43
+
44
+ if(!in_array($postid,$GLOBALS['fbap_dup_publish'])) {
45
+
46
+ $GLOBALS['fbap_dup_publish'][]=$postid;
47
+ xyz_fbap_link_publish($postid);
48
+
49
+ }
50
+
51
+ }
52
  }
53
 
54
  }
172
  $carr=explode(',', $xyz_fbap_include_customposttypes);
173
 
174
  if(!in_array($posttype, $carr))
175
+ {
176
+ $_POST=$_POST_CPY;return;
177
+ }
178
+
179
  }
180
  else
181
  {
243
 
244
  $name = $postpp->post_title;
245
  $caption = html_entity_decode(get_bloginfo('title'), ENT_QUOTES, get_bloginfo('charset'));
246
+ //if(get_option('xyz_fbap_utf_decode_enable')==1)
247
+ // $caption=utf8_decode($caption);
248
  if($tit_flag==1)
249
  $name = apply_filters('the_title', $name);
250
  $name = html_entity_decode($name, ENT_QUOTES, get_bloginfo('charset'));
facebook-auto-publish.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Facebook Auto Publish
4
  Plugin URI: http://xyzscripts.com/wordpress-plugins/facebook-auto-publish/
5
  Description: Publish posts automatically from your blog to Facebook social media. You can publish your posts to Facebook as simple text message, text message with image or as attached link to your blog. The plugin supports filtering posts by custom post-types and categories.
6
- Version: 1.3
7
  Author: xyzscripts.com
8
  Author URI: http://xyzscripts.com/
9
  License: GPLv2 or later
3
  Plugin Name: Facebook Auto Publish
4
  Plugin URI: http://xyzscripts.com/wordpress-plugins/facebook-auto-publish/
5
  Description: Publish posts automatically from your blog to Facebook social media. You can publish your posts to Facebook as simple text message, text message with image or as attached link to your blog. The plugin supports filtering posts by custom post-types and categories.
6
+ Version: 1.3.1
7
  Author: xyzscripts.com
8
  Author URI: http://xyzscripts.com/
9
  License: GPLv2 or later
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: f1logic
3
  Donate link: http://xyzscripts.com/donate/
4
  Tags: facebook, facebook auto publish, publish post to facebook, add link to facebook, facebook publishing, post to facebook, post to fb, social media auto publish, social media publishing, social network auto publish, social media, social network
5
  Requires at least: 3.0
6
- Tested up to: 4.5.1
7
- Stable tag: 1.3
8
  License: GPLv2 or later
9
 
10
  Publish posts automatically to Facebook page or profile.
@@ -122,6 +122,10 @@ More questions ? [Drop a mail](http://xyzscripts.com/members/support/ "XYZScript
122
 
123
  == Changelog ==
124
 
 
 
 
 
125
  = Facebook Auto Publish 1.3 =
126
  * Added option to enable/disable utf-8 decoding before publishing
127
  * Removed unwanted configuration related to 'future_to_publish' hook
3
  Donate link: http://xyzscripts.com/donate/
4
  Tags: facebook, facebook auto publish, publish post to facebook, add link to facebook, facebook publishing, post to facebook, post to fb, social media auto publish, social media publishing, social network auto publish, social media, social network
5
  Requires at least: 3.0
6
+ Tested up to: 4.5.3
7
+ Stable tag: 1.3.1
8
  License: GPLv2 or later
9
 
10
  Publish posts automatically to Facebook page or profile.
122
 
123
  == Changelog ==
124
 
125
+ = Facebook Auto Publish 1.3.1 =
126
+ * Fixed custom post types autopublish issue
127
+ * Fixed duplicate autopublish issue
128
+
129
  = Facebook Auto Publish 1.3 =
130
  * Added option to enable/disable utf-8 decoding before publishing
131
  * Removed unwanted configuration related to 'future_to_publish' hook