Plugin Directory

Changeset 1049803


Ignore:
Timestamp:
12/19/2014 09:48:01 PM (11 years ago)
Author:
freakingid
Message:

Merging changes from Git for 2.0.3 release

Location:
content-scheduler/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • content-scheduler/trunk/content-scheduler-settings.php

    r1049705 r1049803  
    66}
    77
    8 define( 'PEK_CONTENT_SCHEDULER_VERSION', '2.0.2' );
     8define( 'PEK_CONTENT_SCHEDULER_VERSION', '2.0.3' );
    99
    1010if ( !class_exists( "Content_Scheduler_Settings" ) ) {
  • content-scheduler/trunk/content-scheduler.php

    r1049705 r1049803  
    44Plugin URI: http://paulekaiser.com/wordpress-plugins/content-scheduler/
    55Description: Set Posts and Pages to automatically expire. Upon expiration, delete, change categories, status, or unstick posts. Also notify admin and author of expiration.
    6 Version: 2.0.2
     6Version: 2.0.3
    77Author: Paul Kaiser
    88Author URI: http://paulekaiser.com
     
    3232
    3333// assign some constants if they didn't already get taken care of
    34 define( 'PEK_CONTENT_SCHEDULER_VERSION', '2.0.2' );
     34define( 'PEK_CONTENT_SCHEDULER_VERSION', '2.0.3' );
    3535define( 'PEK_CONTENT_SCHEDULER_DIR', plugin_dir_path( __FILE__ ) );
    3636define( 'PEK_CONTENT_SCHEDULER_URL', plugin_dir_url( __FILE__ ) );
     
    219219            // make sure we have added any updated options
    220220            if( $this->options ) {
    221                 $new_options = array_replace( $arr_defaults, $this->options );
     221                // $new_options = array_replace( $arr_defaults, $this->options ); // array_replace only in PHP 5.3+
     222                foreach( $this->options as $key => $val ) {
     223                    $arr_defaults[$key] = $val;
     224                }
     225                $new_options = $arr_defaults;
    222226            } else {
    223227                $new_options = $arr_defaults;
    224228            }
    225             $this->options = $new_options; // just to be safe
     229            $this->options = $new_options;
    226230            update_option('ContentScheduler_Options', $new_options);
    227231
  • content-scheduler/trunk/readme.txt

    r1049705 r1049803  
    88Requires at least: 2.9
    99Tested up to: 4.1.0
    10 Stable tag: 2.0.2
     10Stable tag: 2.0.3
    1111
    1212Schedule content to automatically expire and change at a certain time, and notify people of expiration.
     
    6262
    6363== Changelog ==
     64
     65= 2.0.3 =
     66* FIX: Change array_replace for PHP 5.2.x compatibility, oops!
    6467
    6568= 2.0.2 =
Note: See TracChangeset for help on using the changeset viewer.