Changeset 2091749
- Timestamp:
- 05/20/2019 07:26:43 PM (7 years ago)
- Location:
- unpublished-warnings
- Files:
-
- 4 edited
- 4 copied
-
tags/0.4.3 (copied) (copied from unpublished-warnings/trunk)
-
tags/0.4.3/readme.txt (copied) (copied from unpublished-warnings/trunk/readme.txt) (1 diff)
-
tags/0.4.3/trunk (copied) (copied from unpublished-warnings/trunk)
-
tags/0.4.3/trunk/readme.txt (copied) (copied from unpublished-warnings/trunk/readme.txt) (2 diffs)
-
tags/0.4.3/trunk/unpublished_warnings.php (modified) (3 diffs)
-
tags/0.4.3/unpublished_warnings.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/unpublished_warnings.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
unpublished-warnings/tags/0.4.3/readme.txt
r2091747 r2091749 5 5 Requires at least: 3.2 6 6 Tested up to: 5.2 7 Stable tag: 0.4. 27 Stable tag: 0.4.3 8 8 9 9 This 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 5 5 Requires at least: 3.2 6 6 Tested up to: 5.2 7 Stable tag: 0.4. 27 Stable tag: 0.4.3 8 8 9 9 This plugin will warn you when you're looking at an unpublished post that you just happen to be able to see. … … 25 25 26 26 == Changelog == 27 28 = 0.4.3 = 29 30 Versioning mishap with 0.4.2, fixed in 0.4.3 27 31 28 32 = 0.4.2 = -
unpublished-warnings/tags/0.4.3/trunk/unpublished_warnings.php
r962729 r2091749 5 5 Description: This plugin will warn you when you're looking at an unpublished post that you just happen to be able to see. 6 6 Author: William Sullivan 7 Version: 0.4. 17 Version: 0.4.3 8 8 Author URI: https://enkrates.com 9 9 */ 10 10 11 // UW_add_my_stylesheet() adapted from 11 // UW_add_my_stylesheet() adapted from 12 12 // http://codex.wordpress.org/Function_Reference/wp_enqueue_style 13 13 … … 25 25 $myScriptFile = plugin_dir_path( __FILE__ ) . '/unpublished_warnings.js'; 26 26 if ( file_exists($myScriptFile) ) { 27 wp_register_script( 'unpublished_warnings', 28 $myScriptURL, 27 wp_register_script( 'unpublished_warnings', 28 $myScriptURL, 29 29 array( 'jquery' ) ); 30 30 wp_enqueue_script('unpublished_warnings'); … … 33 33 34 34 function UW_is_unpublished() { 35 return !( isset( $_GET['preview'] ) && $_GET['preview'] == 'true' ) 35 return !( isset( $_GET['preview'] ) && $_GET['preview'] == 'true' ) 36 36 && get_post_status( get_the_ID() ) != 'publish'; 37 37 } 38 38 39 function UW_prepend_warning( $content ) { 39 function UW_prepend_warning( $content ) { 40 40 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 ' . 43 43 'in with a privileged account.'; 44 44 $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 ) . 49 49 "</p>\n</div>\n" . $content; 50 50 } -
unpublished-warnings/tags/0.4.3/unpublished_warnings.php
r962729 r2091749 5 5 Description: This plugin will warn you when you're looking at an unpublished post that you just happen to be able to see. 6 6 Author: William Sullivan 7 Version: 0.4. 17 Version: 0.4.3 8 8 Author URI: https://enkrates.com 9 9 */ 10 10 11 // UW_add_my_stylesheet() adapted from 11 // UW_add_my_stylesheet() adapted from 12 12 // http://codex.wordpress.org/Function_Reference/wp_enqueue_style 13 13 … … 25 25 $myScriptFile = plugin_dir_path( __FILE__ ) . '/unpublished_warnings.js'; 26 26 if ( file_exists($myScriptFile) ) { 27 wp_register_script( 'unpublished_warnings', 28 $myScriptURL, 27 wp_register_script( 'unpublished_warnings', 28 $myScriptURL, 29 29 array( 'jquery' ) ); 30 30 wp_enqueue_script('unpublished_warnings'); … … 33 33 34 34 function UW_is_unpublished() { 35 return !( isset( $_GET['preview'] ) && $_GET['preview'] == 'true' ) 35 return !( isset( $_GET['preview'] ) && $_GET['preview'] == 'true' ) 36 36 && get_post_status( get_the_ID() ) != 'publish'; 37 37 } 38 38 39 function UW_prepend_warning( $content ) { 39 function UW_prepend_warning( $content ) { 40 40 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 ' . 43 43 'in with a privileged account.'; 44 44 $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 ) . 49 49 "</p>\n</div>\n" . $content; 50 50 } -
unpublished-warnings/trunk/readme.txt
r2091747 r2091749 5 5 Requires at least: 3.2 6 6 Tested up to: 5.2 7 Stable tag: 0.4. 27 Stable tag: 0.4.3 8 8 9 9 This plugin will warn you when you're looking at an unpublished post that you just happen to be able to see. … … 25 25 26 26 == Changelog == 27 28 = 0.4.3 = 29 30 Versioning mishap with 0.4.2, fixed in 0.4.3 27 31 28 32 = 0.4.2 = -
unpublished-warnings/trunk/unpublished_warnings.php
r962729 r2091749 5 5 Description: This plugin will warn you when you're looking at an unpublished post that you just happen to be able to see. 6 6 Author: William Sullivan 7 Version: 0.4. 17 Version: 0.4.3 8 8 Author URI: https://enkrates.com 9 9 */ 10 10 11 // UW_add_my_stylesheet() adapted from 11 // UW_add_my_stylesheet() adapted from 12 12 // http://codex.wordpress.org/Function_Reference/wp_enqueue_style 13 13 … … 25 25 $myScriptFile = plugin_dir_path( __FILE__ ) . '/unpublished_warnings.js'; 26 26 if ( file_exists($myScriptFile) ) { 27 wp_register_script( 'unpublished_warnings', 28 $myScriptURL, 27 wp_register_script( 'unpublished_warnings', 28 $myScriptURL, 29 29 array( 'jquery' ) ); 30 30 wp_enqueue_script('unpublished_warnings'); … … 33 33 34 34 function UW_is_unpublished() { 35 return !( isset( $_GET['preview'] ) && $_GET['preview'] == 'true' ) 35 return !( isset( $_GET['preview'] ) && $_GET['preview'] == 'true' ) 36 36 && get_post_status( get_the_ID() ) != 'publish'; 37 37 } 38 38 39 function UW_prepend_warning( $content ) { 39 function UW_prepend_warning( $content ) { 40 40 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 ' . 43 43 'in with a privileged account.'; 44 44 $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 ) . 49 49 "</p>\n</div>\n" . $content; 50 50 }
Note: See TracChangeset
for help on using the changeset viewer.