Plugin Directory

Changeset 974575


Ignore:
Timestamp:
08/28/2014 11:04:50 AM (12 years ago)
Author:
Plugrush
Message:

Version 1.22

Location:
plugrush/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugrush/trunk/plugrush.php

    r929494 r974575  
    44Plugin URI: http://wordpress.org/extend/plugins/plugrush/
    55Description: 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.21
     6Version: 1.22
    77Author: PlugRush.com
    88Author URI: //www.plugrush.com
     
    8080    wp_nonce_field(plugin_basename( __FILE__ ),'plugrush_noncename');
    8181    $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    }
    8487    ?>
    8588        <div style="padding-top:5px;">
     
    9699            </p></div>
    97100        <?php } ?>
    98         <?php $thumb = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID),'full');?>
    99101        </div>
    100102        <div id="plugrush-plug-type" style="padding:5px 0 0 0;">
     
    244246            $plug['errors'] = isset($status['errors'])?$status['errors']:FALSE;
    245247        }
    246         $plug['autopost'] = $_POST['_plugrush_autopost'];
     248        $plug['autopost'] = '1';
    247249        update_post_meta($post_id,'_plugrush',$plug);
    248250    }else{
     
    250252        $plug['message'] = FALSE;
    251253        $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        }
    253259        update_post_meta($post_id,'_plugrush',$plug);
    254260    }
  • plugrush/trunk/readme.txt

    r929494 r974575  
    44Requires at least: 2.8
    55Tested up to: 3.9.1
    6 Stable tag: 1.22
     6Stable tag: 1.21.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7676* Better explanation on the settings page for admins
    7777
     78= 1.22 =
     79* Fixed a bug with autopost
     80* Fixed a bug with fetching categories
    7881
    7982
Note: See TracChangeset for help on using the changeset viewer.