Changeset 974575
- Timestamp:
- 08/28/2014 11:04:50 AM (12 years ago)
- Location:
- plugrush/trunk
- Files:
-
- 2 edited
-
plugrush.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugrush/trunk/plugrush.php
r929494 r974575 4 4 Plugin URI: http://wordpress.org/extend/plugins/plugrush/ 5 5 Description: A plugin to use PlugRush on your wordpress enabled site. Easily add PlugRush widgets to your sidebar or theme, enable popunders or mobile redirects. 6 Version: 1.2 16 Version: 1.22 7 7 Author: PlugRush.com 8 8 Author URI: //www.plugrush.com … … 80 80 wp_nonce_field(plugin_basename( __FILE__ ),'plugrush_noncename'); 81 81 $plugrush_post = get_post_meta($post->ID,'_plugrush',TRUE); 82 $plugrush_post['categories'] = explode(',',$plugrush_post['categories']); 83 print_r(get_post_meta($post->ID,'_plugrush_post',TRUE)); 82 if (isset($plugrush_post['categories'])) { 83 $plugrush_post['categories'] = explode(',',$plugrush_post['categories']); 84 } else { 85 $plugrush_post['categories'] = array(); 86 } 84 87 ?> 85 88 <div style="padding-top:5px;"> … … 96 99 </p></div> 97 100 <?php } ?> 98 <?php $thumb = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID),'full');?>99 101 </div> 100 102 <div id="plugrush-plug-type" style="padding:5px 0 0 0;"> … … 244 246 $plug['errors'] = isset($status['errors'])?$status['errors']:FALSE; 245 247 } 246 $plug['autopost'] = $_POST['_plugrush_autopost'];248 $plug['autopost'] = '1'; 247 249 update_post_meta($post_id,'_plugrush',$plug); 248 250 }else{ … … 250 252 $plug['message'] = FALSE; 251 253 $plug['errors'] = FALSE; 252 $plug['autopost'] = '0'; 254 if (!array_key_exists('autopost', $plug)) { 255 $plug['autopost'] = (string)$plugrush['autopost']; 256 } else { 257 $plug['autopost'] = '0'; 258 } 253 259 update_post_meta($post_id,'_plugrush',$plug); 254 260 } -
plugrush/trunk/readme.txt
r929494 r974575 4 4 Requires at least: 2.8 5 5 Tested up to: 3.9.1 6 Stable tag: 1.2 26 Stable tag: 1.21.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 76 76 * Better explanation on the settings page for admins 77 77 78 = 1.22 = 79 * Fixed a bug with autopost 80 * Fixed a bug with fetching categories 78 81 79 82
Note: See TracChangeset
for help on using the changeset viewer.