Plugin Directory

Changeset 642034


Ignore:
Timestamp:
12/20/2012 01:03:47 AM (13 years ago)
Author:
alanft
Message:

read me update

Location:
widget-logic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • widget-logic/tags/0.54/readme.txt

    r642032 r642034  
    1313This plugin gives every widget an extra control field called "Widget logic" that lets you control the pages that the widget will appear on. The text field lets you use WP's [Conditional Tags](http://codex.wordpress.org/Conditional_Tags), or any general PHP code.
    1414
    15 PLEASE NOTE The widget logic you introduce is EVAL'd directly. Anyone who has access to edit widget appearance will have the right to add any code, including malicious and possibly destructive functions. If you are worried about the security implications, please let me know how you think I could guard against this without compromising the general power and flexibility of Widget Logic too much.
     15PLEASE NOTE The widget logic you introduce is EVAL'd directly. Anyone who has access to edit widget appearance will have the right to add any code, including malicious and possibly destructive functions. There is an optional filter 'widget_logic_eval_override' which you can use to bypass the EVAL with your own code if needed. (See [Other Notes](../other_notes/)).
    1616
    1717There is also an option to add a wordpress 'widget_content' filter -- this lets you tweak any widget's HTML to suit your theme without editing plugins and core code.
     
    136136Note the extra ';' on the end where there is an explicit 'return'.
    137137
     138== The 'widget_logic_eval_override' filter ==
     139Before the Widget Logic code is evaluated for each widget, the text of the Widget Logic code is passed through this filter. If the filter returns a BOOLEAN result, this is used instead to determine if the widget is visible. Return TRUE for visible.
     140
    138141== The 'widget_content' filter ==
    139142
     
    181184
    182185= 0.54 =
    183 I removed a WP 3.1+ function call, hopefully making it 2.8 compatible again. Also added in a little bit of 'trim' to stop "syntax error, unexpected ')'" errors, which could occur if your WL was just a single space. Thanks to https://twitter.com/chrisjean for pointing this out.
    184 
    185 Thanks to Foe Services Labs http://wordpress.org/support/profile/cfoellmann for the work on translation support and the German translation files.
     186Removed a WP 3.1+ function call, hopefully making it 2.8 compatible again.
     187
     188A little 'trim' of WL code to stop "syntax error, unexpected ')'" errors, which could occur if your WL was just a single space. Thanks to https://twitter.com/chrisjean for pointing this out.
     189
     190Translation support! Thanks to Foe Services Labs http://wordpress.org/support/profile/cfoellmann for the work on this and the German translation files.
     191
     192Added a 'widget_logic_eval_override' filter. This allows advanced users to bypass EVAL with a function of their own.
    186193
    187194= 0.53 =
  • widget-logic/trunk/readme.txt

    r642032 r642034  
    1313This plugin gives every widget an extra control field called "Widget logic" that lets you control the pages that the widget will appear on. The text field lets you use WP's [Conditional Tags](http://codex.wordpress.org/Conditional_Tags), or any general PHP code.
    1414
    15 PLEASE NOTE The widget logic you introduce is EVAL'd directly. Anyone who has access to edit widget appearance will have the right to add any code, including malicious and possibly destructive functions. If you are worried about the security implications, please let me know how you think I could guard against this without compromising the general power and flexibility of Widget Logic too much.
     15PLEASE NOTE The widget logic you introduce is EVAL'd directly. Anyone who has access to edit widget appearance will have the right to add any code, including malicious and possibly destructive functions. There is an optional filter 'widget_logic_eval_override' which you can use to bypass the EVAL with your own code if needed. (See [Other Notes](../other_notes/)).
    1616
    1717There is also an option to add a wordpress 'widget_content' filter -- this lets you tweak any widget's HTML to suit your theme without editing plugins and core code.
     
    136136Note the extra ';' on the end where there is an explicit 'return'.
    137137
     138== The 'widget_logic_eval_override' filter ==
     139Before the Widget Logic code is evaluated for each widget, the text of the Widget Logic code is passed through this filter. If the filter returns a BOOLEAN result, this is used instead to determine if the widget is visible. Return TRUE for visible.
     140
    138141== The 'widget_content' filter ==
    139142
     
    181184
    182185= 0.54 =
    183 I removed a WP 3.1+ function call, hopefully making it 2.8 compatible again. Also added in a little bit of 'trim' to stop "syntax error, unexpected ')'" errors, which could occur if your WL was just a single space. Thanks to https://twitter.com/chrisjean for pointing this out.
    184 
    185 Thanks to Foe Services Labs http://wordpress.org/support/profile/cfoellmann for the work on translation support and the German translation files.
     186Removed a WP 3.1+ function call, hopefully making it 2.8 compatible again.
     187
     188A little 'trim' of WL code to stop "syntax error, unexpected ')'" errors, which could occur if your WL was just a single space. Thanks to https://twitter.com/chrisjean for pointing this out.
     189
     190Translation support! Thanks to Foe Services Labs http://wordpress.org/support/profile/cfoellmann for the work on this and the German translation files.
     191
     192Added a 'widget_logic_eval_override' filter. This allows advanced users to bypass EVAL with a function of their own.
    186193
    187194= 0.53 =
Note: See TracChangeset for help on using the changeset viewer.