Plugin Directory

Changeset 474141


Ignore:
Timestamp:
12/12/2011 06:55:19 PM (14 years ago)
Author:
enkrates
Message:

Small code changes and another attempt to version correctly

Location:
unpublished-warnings/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • unpublished-warnings/trunk/readme.txt

    r473956 r474141  
    55Requires at least: 3.2
    66Tested up to: 3.2
    7 Stable tag: 0.3.2
     7Stable tag: 0.3.3
    88
    99This plugin will warn you when you're looking at an unpublished post that you just happen to be able to see.
     
    2626== Changelog ==
    2727
     28= 0.3.3 =
     29
     301. Small formatting changes in the PHP.
     311. Small change in the javascript to use "this" instead of naming the selector explicitly.
     321. Versioning is correct.
     33
     34= 0.3.2 =
     35
     36Tried to fix versioning.
     37
    2838= 0.3.1 =
    2939
  • unpublished-warnings/trunk/unpublished_warnings.js

    r473954 r474141  
    11jQuery(document).ready(function(){
    22    jQuery("#unpublished_warnings").click(function () {
    3         jQuery("#unpublished_warnings").slideUp("slow");
     3        jQuery(this).slideUp("slow");
    44    });
    55});
  • unpublished-warnings/trunk/unpublished_warnings.php

    r473956 r474141  
    55Description: This plugin will warn you when you're looking at an unpublished post that you just happen to be able to see.
    66Author: Bill Sullivan
    7 Version: 0.3.2
     7Version: 0.3.3
    88Author URI: http://enkrates.com
    99*/
     
    3737        $warning_message = 'This post has not yet been published. You can see it because you are logged in with a privileged account.';
    3838        $hide_me_message = 'Click here to hide this warning.';
    39         $content = "<div id='unpublished_warnings'><p>" . wptexturize($warning_message) . "</p>\n<p>"
    40          . wptexturize($hide_me_message) . "</p>\n</div>\n" . $content;
     39        $content = "<div id='unpublished_warnings'><p>" . wptexturize( $warning_message ) . "</p>\n<p>"
     40         . wptexturize( $hide_me_message ) . "</p>\n</div>\n" . $content;
    4141    }
    4242    return $content;
Note: See TracChangeset for help on using the changeset viewer.