WordPress.org

Plugin Directory

Changeset 1447851


Ignore:
Timestamp:
07/02/16 18:16:01 (16 months ago)
Author:
travislopes
Message:

Share Drafts Publicly (1.1.3)

  • Fixed PHP error when determining if draft should be shown.
Location:
share-drafts-publicly/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • share-drafts-publicly/trunk/readme.txt

    r1446017 r1447851  
    2626 
    2727== Changelog == 
     28= v1.1.3 = 
     29* Fixed PHP error when determining if draft should be shown. 
    2830= v1.1.2 = 
    2931* Fixed PHP notice when getting draft URL or draft status. 
  • share-drafts-publicly/trunk/share-drafts-publicly.php

    r1446017 r1447851  
    33Plugin Name: Share Drafts Publicy 
    44Description: Provide a secret link to non-logged in users to view post drafts. 
    5 Version: 1.1.2 
     5Version: 1.1.3 
    66Author: Travis Lopes 
    77Author URI: http://travislop.es 
     
    5757 
    5858        // Show draft if provided secret key. 
    59         add_filter( 'the_posts', array( $this, 'show_draft_publicly' ) ); 
     59        add_filter( 'the_posts', array( $this, 'show_draft_publicly' ), 10, 2 ); 
    6060 
    6161        // Add public draft link to post actions. 
Note: See TracChangeset for help on using the changeset viewer.