Plugin Directory

Changeset 725356


Ignore:
Timestamp:
06/11/2013 03:14:47 PM (13 years ago)
Author:
daxitude
Message:

several bugfixes, bump to 0.7.3. see changelog

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

Legend:

Unmodified
Added
Removed
  • drafts-of-post-revisions/tags/0.7.3/Admin/templates/meta_box/_draft.html

    r614753 r725356  
    11<p>This is a draft of <a href="{{parent.admin_link}}" title="link to {{parent.post_title}}'s edit screen">{{parent.post_title}}</a>. You can continue to work on this revision and save changes with the <strong>Save Draft</strong> button. When you are ready to publish the revision, use the <strong>Publish</strong> button.</p>
    22
    3 <p><a href="/wp-admin/revision.php?action=dpr_diff&post_type={{parent.post_type}}&right={{draft.ID}}&left={{parent.ID}}" title="compare changes">Compare changes</a> against the parent.</p>
     3<p><a href="revision.php?action=dpr_diff&post_type={{parent.post_type}}&right={{draft.ID}}&left={{parent.ID}}" title="compare changes">Compare changes</a> against the parent.</p>
  • drafts-of-post-revisions/tags/0.7.3/Admin/templates/notice/_active_drafts.html

    r614753 r725356  
    1 <strong>Notice:</strong> this post has active drafts. If you edit the published version of the post then you may have to perform a diff later on to reconcile changes.
     1<strong>Notice:</strong> this post has active drafts. If you edit the published version of the post then you may have to perform a comparison later on to reconcile changes.
  • drafts-of-post-revisions/tags/0.7.3/Postdrafter.php

    r649874 r725356  
    156156
    157157        foreach ($taxis as $tax) {
     158            // could pass all taxonomy names as an array here
    158159            $terms = wp_get_object_terms( $from_id, $tax );
    159160            $term = array();
     
    162163            }
    163164
     165            // false replaces (true would append)
    164166            wp_set_object_terms( $to_id, $term, $tax, false );
    165167        }
  • drafts-of-post-revisions/tags/0.7.3/core.php

    r649874 r725356  
    77   
    88    // plugin version number
    9     public static $version = "0.7.2";
     9    public static $version = "0.7.3";
    1010    // key for wp_options to store plugin options
    1111    private static $options_key = 'dpr_options';
     
    3535        $this->notices = new DPR_Admin_Notice();
    3636        // Postdrafter handles creating and merging drafts
    37         $this->drafter = new DPR_Postdrafter(&$this);
     37        $this->drafter = new DPR_Postdrafter($this);
    3838
    3939        // hook into pre_post_update to create new draft
     
    171171       
    172172        // do the diff
    173         $differ = new DPR_Admin_Diff(&$parent, &$draft);
     173        $differ = new DPR_Admin_Diff($parent, $draft);
    174174        $rev_fields = $differ->diff();
    175175       
  • drafts-of-post-revisions/tags/0.7.3/draft-revisions.php

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

    r649874 r725356  
    44Requires at least: 3.4
    55Tested up to: 3.4.2
    6 Stable tag: 0.7.2
     6Stable tag: 0.7.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5353== Changelog ==
    5454
     55= 0.7.3 =
     56* bugfix - make sure compare changes link works when WP is installed in a sub-dir
     57* bugfix - call-time pass-by-reference removed in php 5.4
     58* made one admin notice slightly less ambiguous
     59
    5560= 0.7.2 =
    5661* bugfix - make sure serialized post metas are unserialized/serialized properly
  • drafts-of-post-revisions/trunk/Admin/templates/meta_box/_draft.html

    r614753 r725356  
    11<p>This is a draft of <a href="{{parent.admin_link}}" title="link to {{parent.post_title}}'s edit screen">{{parent.post_title}}</a>. You can continue to work on this revision and save changes with the <strong>Save Draft</strong> button. When you are ready to publish the revision, use the <strong>Publish</strong> button.</p>
    22
    3 <p><a href="/wp-admin/revision.php?action=dpr_diff&post_type={{parent.post_type}}&right={{draft.ID}}&left={{parent.ID}}" title="compare changes">Compare changes</a> against the parent.</p>
     3<p><a href="revision.php?action=dpr_diff&post_type={{parent.post_type}}&right={{draft.ID}}&left={{parent.ID}}" title="compare changes">Compare changes</a> against the parent.</p>
  • drafts-of-post-revisions/trunk/Admin/templates/notice/_active_drafts.html

    r614753 r725356  
    1 <strong>Notice:</strong> this post has active drafts. If you edit the published version of the post then you may have to perform a diff later on to reconcile changes.
     1<strong>Notice:</strong> this post has active drafts. If you edit the published version of the post then you may have to perform a comparison later on to reconcile changes.
  • drafts-of-post-revisions/trunk/Postdrafter.php

    r649874 r725356  
    156156
    157157        foreach ($taxis as $tax) {
     158            // could pass all taxonomy names as an array here
    158159            $terms = wp_get_object_terms( $from_id, $tax );
    159160            $term = array();
     
    162163            }
    163164
     165            // false replaces (true would append)
    164166            wp_set_object_terms( $to_id, $term, $tax, false );
    165167        }
  • drafts-of-post-revisions/trunk/core.php

    r649874 r725356  
    77   
    88    // plugin version number
    9     public static $version = "0.7.2";
     9    public static $version = "0.7.3";
    1010    // key for wp_options to store plugin options
    1111    private static $options_key = 'dpr_options';
     
    3535        $this->notices = new DPR_Admin_Notice();
    3636        // Postdrafter handles creating and merging drafts
    37         $this->drafter = new DPR_Postdrafter(&$this);
     37        $this->drafter = new DPR_Postdrafter($this);
    3838
    3939        // hook into pre_post_update to create new draft
     
    171171       
    172172        // do the diff
    173         $differ = new DPR_Admin_Diff(&$parent, &$draft);
     173        $differ = new DPR_Admin_Diff($parent, $draft);
    174174        $rev_fields = $differ->diff();
    175175       
  • drafts-of-post-revisions/trunk/draft-revisions.php

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

    r649874 r725356  
    44Requires at least: 3.4
    55Tested up to: 3.4.2
    6 Stable tag: 0.7.2
     6Stable tag: 0.7.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5353== Changelog ==
    5454
     55= 0.7.3 =
     56* bugfix - make sure compare changes link works when WP is installed in a sub-dir
     57* bugfix - call-time pass-by-reference removed in php 5.4
     58* made one admin notice slightly less ambiguous
     59
    5560= 0.7.2 =
    5661* bugfix - make sure serialized post metas are unserialized/serialized properly
Note: See TracChangeset for help on using the changeset viewer.