Plugin Directory

Changeset 2091749


Ignore:
Timestamp:
05/20/2019 07:26:43 PM (7 years ago)
Author:
enkrates
Message:

0.4.2 had a versioning mishap, bumping version

Location:
unpublished-warnings
Files:
4 edited
4 copied

Legend:

Unmodified
Added
Removed
  • unpublished-warnings/tags/0.4.3/readme.txt

    r2091747 r2091749  
    55Requires at least: 3.2
    66Tested up to: 5.2
    7 Stable tag: 0.4.2
     7Stable tag: 0.4.3
    88
    99This plugin will warn you when you're looking at an unpublished post that you just happen to be able to see.
  • unpublished-warnings/tags/0.4.3/trunk/readme.txt

    r2091747 r2091749  
    55Requires at least: 3.2
    66Tested up to: 5.2
    7 Stable tag: 0.4.2
     7Stable tag: 0.4.3
    88
    99This plugin will warn you when you're looking at an unpublished post that you just happen to be able to see.
     
    2525
    2626== Changelog ==
     27
     28= 0.4.3 =
     29
     30Versioning mishap with 0.4.2, fixed in 0.4.3
    2731
    2832= 0.4.2 =
  • unpublished-warnings/tags/0.4.3/trunk/unpublished_warnings.php

    r962729 r2091749  
    55Description: This plugin will warn you when you're looking at an unpublished post that you just happen to be able to see.
    66Author: William Sullivan
    7 Version: 0.4.1
     7Version: 0.4.3
    88Author URI: https://enkrates.com
    99*/
    1010
    11 // UW_add_my_stylesheet() adapted from 
     11// UW_add_my_stylesheet() adapted from
    1212// http://codex.wordpress.org/Function_Reference/wp_enqueue_style
    1313
     
    2525    $myScriptFile = plugin_dir_path( __FILE__ ) . '/unpublished_warnings.js';
    2626    if ( file_exists($myScriptFile) ) {
    27         wp_register_script( 'unpublished_warnings', 
    28                             $myScriptURL, 
     27        wp_register_script( 'unpublished_warnings',
     28                            $myScriptURL,
    2929                            array( 'jquery' ) );
    3030        wp_enqueue_script('unpublished_warnings');
     
    3333
    3434function UW_is_unpublished() {
    35     return !( isset( $_GET['preview'] ) && $_GET['preview'] == 'true' ) 
     35    return !( isset( $_GET['preview'] ) && $_GET['preview'] == 'true' )
    3636            && get_post_status( get_the_ID() ) != 'publish';
    3737}
    3838
    39 function UW_prepend_warning( $content ) {   
     39function UW_prepend_warning( $content ) {
    4040    if ( UW_is_unpublished() ){
    41         $warning_message = 'This post has not yet been published. ' . 
    42                             'You can see it because you are logged ' . 
     41        $warning_message = 'This post has not yet been published. ' .
     42                            'You can see it because you are logged ' .
    4343                            'in with a privileged account.';
    4444        $hide_me_message = 'Click here to hide this warning.';
    45         $content = "<div id='unpublished-warnings'><p>" . 
    46                     wptexturize( $warning_message ) . 
    47                     "</p>\n<p>" . 
    48                     wptexturize( $hide_me_message ) . 
     45        $content = "<div id='unpublished-warnings'><p>" .
     46                    wptexturize( $warning_message ) .
     47                    "</p>\n<p>" .
     48                    wptexturize( $hide_me_message ) .
    4949                    "</p>\n</div>\n" . $content;
    5050    }
  • unpublished-warnings/tags/0.4.3/unpublished_warnings.php

    r962729 r2091749  
    55Description: This plugin will warn you when you're looking at an unpublished post that you just happen to be able to see.
    66Author: William Sullivan
    7 Version: 0.4.1
     7Version: 0.4.3
    88Author URI: https://enkrates.com
    99*/
    1010
    11 // UW_add_my_stylesheet() adapted from 
     11// UW_add_my_stylesheet() adapted from
    1212// http://codex.wordpress.org/Function_Reference/wp_enqueue_style
    1313
     
    2525    $myScriptFile = plugin_dir_path( __FILE__ ) . '/unpublished_warnings.js';
    2626    if ( file_exists($myScriptFile) ) {
    27         wp_register_script( 'unpublished_warnings', 
    28                             $myScriptURL, 
     27        wp_register_script( 'unpublished_warnings',
     28                            $myScriptURL,
    2929                            array( 'jquery' ) );
    3030        wp_enqueue_script('unpublished_warnings');
     
    3333
    3434function UW_is_unpublished() {
    35     return !( isset( $_GET['preview'] ) && $_GET['preview'] == 'true' ) 
     35    return !( isset( $_GET['preview'] ) && $_GET['preview'] == 'true' )
    3636            && get_post_status( get_the_ID() ) != 'publish';
    3737}
    3838
    39 function UW_prepend_warning( $content ) {   
     39function UW_prepend_warning( $content ) {
    4040    if ( UW_is_unpublished() ){
    41         $warning_message = 'This post has not yet been published. ' . 
    42                             'You can see it because you are logged ' . 
     41        $warning_message = 'This post has not yet been published. ' .
     42                            'You can see it because you are logged ' .
    4343                            'in with a privileged account.';
    4444        $hide_me_message = 'Click here to hide this warning.';
    45         $content = "<div id='unpublished-warnings'><p>" . 
    46                     wptexturize( $warning_message ) . 
    47                     "</p>\n<p>" . 
    48                     wptexturize( $hide_me_message ) . 
     45        $content = "<div id='unpublished-warnings'><p>" .
     46                    wptexturize( $warning_message ) .
     47                    "</p>\n<p>" .
     48                    wptexturize( $hide_me_message ) .
    4949                    "</p>\n</div>\n" . $content;
    5050    }
  • unpublished-warnings/trunk/readme.txt

    r2091747 r2091749  
    55Requires at least: 3.2
    66Tested up to: 5.2
    7 Stable tag: 0.4.2
     7Stable tag: 0.4.3
    88
    99This plugin will warn you when you're looking at an unpublished post that you just happen to be able to see.
     
    2525
    2626== Changelog ==
     27
     28= 0.4.3 =
     29
     30Versioning mishap with 0.4.2, fixed in 0.4.3
    2731
    2832= 0.4.2 =
  • unpublished-warnings/trunk/unpublished_warnings.php

    r962729 r2091749  
    55Description: This plugin will warn you when you're looking at an unpublished post that you just happen to be able to see.
    66Author: William Sullivan
    7 Version: 0.4.1
     7Version: 0.4.3
    88Author URI: https://enkrates.com
    99*/
    1010
    11 // UW_add_my_stylesheet() adapted from 
     11// UW_add_my_stylesheet() adapted from
    1212// http://codex.wordpress.org/Function_Reference/wp_enqueue_style
    1313
     
    2525    $myScriptFile = plugin_dir_path( __FILE__ ) . '/unpublished_warnings.js';
    2626    if ( file_exists($myScriptFile) ) {
    27         wp_register_script( 'unpublished_warnings', 
    28                             $myScriptURL, 
     27        wp_register_script( 'unpublished_warnings',
     28                            $myScriptURL,
    2929                            array( 'jquery' ) );
    3030        wp_enqueue_script('unpublished_warnings');
     
    3333
    3434function UW_is_unpublished() {
    35     return !( isset( $_GET['preview'] ) && $_GET['preview'] == 'true' ) 
     35    return !( isset( $_GET['preview'] ) && $_GET['preview'] == 'true' )
    3636            && get_post_status( get_the_ID() ) != 'publish';
    3737}
    3838
    39 function UW_prepend_warning( $content ) {   
     39function UW_prepend_warning( $content ) {
    4040    if ( UW_is_unpublished() ){
    41         $warning_message = 'This post has not yet been published. ' . 
    42                             'You can see it because you are logged ' . 
     41        $warning_message = 'This post has not yet been published. ' .
     42                            'You can see it because you are logged ' .
    4343                            'in with a privileged account.';
    4444        $hide_me_message = 'Click here to hide this warning.';
    45         $content = "<div id='unpublished-warnings'><p>" . 
    46                     wptexturize( $warning_message ) . 
    47                     "</p>\n<p>" . 
    48                     wptexturize( $hide_me_message ) . 
     45        $content = "<div id='unpublished-warnings'><p>" .
     46                    wptexturize( $warning_message ) .
     47                    "</p>\n<p>" .
     48                    wptexturize( $hide_me_message ) .
    4949                    "</p>\n</div>\n" . $content;
    5050    }
Note: See TracChangeset for help on using the changeset viewer.