Plugin Directory

Changeset 3432860


Ignore:
Timestamp:
01/05/2026 03:50:06 PM (6 weeks ago)
Author:
landwire
Message:

Git tag 2.1.3

Location:
block-logic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • block-logic/tags/2.1.3/README.txt

    r3432857 r3432860  
    3636
    3737### Upgrade Notice
    38 When upgrading to version 2.x you will need to update your logic. No `return` is allowed anymore and no semicolons in code as only expressions are evaluated. See Writing Logic Code.
     38When upgrading to version 2.x you will need to update your logic. No `return` is allowed anymore and no semicolons in code as only expressions are evaluated. See FAQ Section **Writing Logic Code**.
    3939
    4040== Frequently Asked Questions ==
     
    204204        });
    205205        `
    206 
    207206    * Usage in a block logic field:
    208207    `!empty($_SESSION['special_offer'])`
     
    2102093. **Add extra WordPress globals**
    211210    * Use the `block_logic_allowed_globals` filter to allow extra global variables.
    212 
    213211    * Example:
    214212        `
     
    221219        $GLOBALS['my_global_data'] = ['foo' => 'bar'];
    222220        `
    223 
    224221    * Usage in a block logic field:
    225222    `$post->ID == my_global_data['foo']`
     
    236233        $GLOBALS['my_custom_flag'] = true;
    237234        `
    238 
    239235    * Usage in a block logic field:
    240236    `$my_custom_flag && is_user_logged_in()`
  • block-logic/trunk/README.txt

    r3432857 r3432860  
    3636
    3737### Upgrade Notice
    38 When upgrading to version 2.x you will need to update your logic. No `return` is allowed anymore and no semicolons in code as only expressions are evaluated. See Writing Logic Code.
     38When upgrading to version 2.x you will need to update your logic. No `return` is allowed anymore and no semicolons in code as only expressions are evaluated. See FAQ Section **Writing Logic Code**.
    3939
    4040== Frequently Asked Questions ==
     
    204204        });
    205205        `
    206 
    207206    * Usage in a block logic field:
    208207    `!empty($_SESSION['special_offer'])`
     
    2102093. **Add extra WordPress globals**
    211210    * Use the `block_logic_allowed_globals` filter to allow extra global variables.
    212 
    213211    * Example:
    214212        `
     
    221219        $GLOBALS['my_global_data'] = ['foo' => 'bar'];
    222220        `
    223 
    224221    * Usage in a block logic field:
    225222    `$post->ID == my_global_data['foo']`
     
    236233        $GLOBALS['my_custom_flag'] = true;
    237234        `
    238 
    239235    * Usage in a block logic field:
    240236    `$my_custom_flag && is_user_logged_in()`
Note: See TracChangeset for help on using the changeset viewer.