Plugin Directory

Changeset 649874


Ignore:
Timestamp:
01/08/2013 08:10:29 PM (13 years ago)
Author:
daxitude
Message:

v 0.7.2: bugfix for serialized post metas

Location:
drafts-of-post-revisions
Files:
4 edited
5 copied

Legend:

Unmodified
Added
Removed
  • drafts-of-post-revisions/tags/0.7.2/Postdrafter.php

    r614761 r649874  
    143143
    144144        foreach ($all_meta as $key => $value) {
     145            $val = maybe_unserialize($value[0]);
    145146            $method == 'add' ?
    146                 add_post_meta($to_id, $key, $value[0]) :
    147                 update_post_meta($to_id, $key, $value[0]);
     147                add_post_meta($to_id, $key, $val) :
     148                update_post_meta($to_id, $key, $val);
    148149        }
    149150    }
  • drafts-of-post-revisions/tags/0.7.2/core.php

    r614761 r649874  
    77   
    88    // plugin version number
    9     public static $version = "0.7.1";
     9    public static $version = "0.7.2";
    1010    // key for wp_options to store plugin options
    1111    private static $options_key = 'dpr_options';
  • drafts-of-post-revisions/tags/0.7.2/draft-revisions.php

    r614761 r649874  
    33Plugin Name: Drafts of Post Revisions
    44Description: Create drafts of WordPress posts/pages/CPTs even after they've been published
    5 Version: 0.7.1
     5Version: 0.7.2
    66Author: daxitude
    77Author URI: http://github.com/daxitude/
  • drafts-of-post-revisions/tags/0.7.2/readme.txt

    r614761 r649874  
    44Requires at least: 3.4
    55Tested up to: 3.4.2
    6 Stable tag: 0.7.1
     6Stable tag: 0.7.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4444When you're ready to update the parent post, click the Publish button from the draft's edit page. All post data, taxonomies, and meta data are merged back into the parent post and the draft post is deleted.
    4545
    46 
    4746== Screenshots ==
    4847
     
    52511. Draft revisions organized in edit.php under their own custom post status
    5352
     53== Changelog ==
    5454
     55= 0.7.2 =
     56* bugfix - make sure serialized post metas are unserialized/serialized properly
     57
     58= 0.7.1 =
     59* bugfix - make sure post_name is unique
     60
     61= 0.7 =
     62* initial release
  • drafts-of-post-revisions/trunk/Postdrafter.php

    r614761 r649874  
    143143
    144144        foreach ($all_meta as $key => $value) {
     145            $val = maybe_unserialize($value[0]);
    145146            $method == 'add' ?
    146                 add_post_meta($to_id, $key, $value[0]) :
    147                 update_post_meta($to_id, $key, $value[0]);
     147                add_post_meta($to_id, $key, $val) :
     148                update_post_meta($to_id, $key, $val);
    148149        }
    149150    }
  • drafts-of-post-revisions/trunk/core.php

    r614761 r649874  
    77   
    88    // plugin version number
    9     public static $version = "0.7.1";
     9    public static $version = "0.7.2";
    1010    // key for wp_options to store plugin options
    1111    private static $options_key = 'dpr_options';
  • drafts-of-post-revisions/trunk/draft-revisions.php

    r614761 r649874  
    33Plugin Name: Drafts of Post Revisions
    44Description: Create drafts of WordPress posts/pages/CPTs even after they've been published
    5 Version: 0.7.1
     5Version: 0.7.2
    66Author: daxitude
    77Author URI: http://github.com/daxitude/
  • drafts-of-post-revisions/trunk/readme.txt

    r614761 r649874  
    44Requires at least: 3.4
    55Tested up to: 3.4.2
    6 Stable tag: 0.7.1
     6Stable tag: 0.7.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4444When you're ready to update the parent post, click the Publish button from the draft's edit page. All post data, taxonomies, and meta data are merged back into the parent post and the draft post is deleted.
    4545
    46 
    4746== Screenshots ==
    4847
     
    52511. Draft revisions organized in edit.php under their own custom post status
    5352
     53== Changelog ==
    5454
     55= 0.7.2 =
     56* bugfix - make sure serialized post metas are unserialized/serialized properly
     57
     58= 0.7.1 =
     59* bugfix - make sure post_name is unique
     60
     61= 0.7 =
     62* initial release
Note: See TracChangeset for help on using the changeset viewer.