Plugin Directory

Changeset 3302488


Ignore:
Timestamp:
05/28/2025 07:16:35 PM (10 months ago)
Author:
bethinkstudio
Message:

Update to version 1.0.1 from GitHub

Location:
restrict-block-content
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • restrict-block-content/tags/1.0.1/package.json

    r3299607 r3302488  
    11{
    22    "name": "restrict-block-content",
    3     "version": "1.0.0",
     3    "version": "1.0.1",
    44    "description": "Applies Restrict Content Pro level based restrictions to specific core blocks.",
    55    "author": "georgestephanis, Bethink Studio",
  • restrict-block-content/tags/1.0.1/readme.txt

    r3299607 r3302488  
    33Tags:              block editor, rcp, restrict-content-pro
    44Tested up to:      6.8
    5 Stable tag:        1.0.0
     5Stable tag:        1.0.1
    66License:           GPL-2.0-or-later
    77License URI:       https://www.gnu.org/licenses/gpl-2.0.html
     
    2323If you need to use this with an older version, you can apply this filter manually:
    2424
    25 ```
     25`
    2626/**
    2727 * Filter so that plugins listing the free version as a dependency would also be satisfied by the Pro version.
     
    2929 * @param string $slug The plugin slug being checked.
    3030 */
    31 add_filter( 'wp_plugin_dependencies_slug', function( $slug ) {
    32     if ( 'restrict-content' === $slug ) {
    33         $slug = 'restrict-content-pro';
     31add_filter( 'wp_plugin_dependencies_slug', function( $s ) {
     32    if ( 'restrict-content' === $s ) {
     33        $s = 'restrict-content-pro';
    3434    }
    35     return $slug;
     35    return $s;
    3636});
    37 ```
     37`
    3838
    3939== Source Code ==
     
    5151== Changelog ==
    5252
     53= 1.0.1 =
     54* Add fallback for default comparison value.
     55* Tidy up code formatting in readme.txt.
     56
    5357= 1.0.0 =
    5458* Initial public release on WordPress.org.
  • restrict-block-content/tags/1.0.1/restrict-block-content.php

    r3299607 r3302488  
    33 * Plugin Name:       Restrict Block Content
    44 * Description:       Applies Restrict Content Pro level based restrictions to specific core blocks.
    5  * Version:           1.0.0
     5 * Version:           1.0.1
    66 * Requires at least: 6.7
    77 * Requires PHP:      7.4
     
    136136        if ( ! empty( $parsed_block['attrs']['brcp_restrictions'] ) ) {
    137137            $level   = $parsed_block['attrs']['brcp_restriction_level'];
    138             $compare = $parsed_block['attrs']['brcp_restriction_type'];
     138            $compare = $parsed_block['attrs']['brcp_restriction_type'] ?? '>=';
    139139
    140140            switch( $compare ) {
  • restrict-block-content/trunk/package.json

    r3299607 r3302488  
    11{
    22    "name": "restrict-block-content",
    3     "version": "1.0.0",
     3    "version": "1.0.1",
    44    "description": "Applies Restrict Content Pro level based restrictions to specific core blocks.",
    55    "author": "georgestephanis, Bethink Studio",
  • restrict-block-content/trunk/readme.txt

    r3299607 r3302488  
    33Tags:              block editor, rcp, restrict-content-pro
    44Tested up to:      6.8
    5 Stable tag:        1.0.0
     5Stable tag:        1.0.1
    66License:           GPL-2.0-or-later
    77License URI:       https://www.gnu.org/licenses/gpl-2.0.html
     
    2323If you need to use this with an older version, you can apply this filter manually:
    2424
    25 ```
     25`
    2626/**
    2727 * Filter so that plugins listing the free version as a dependency would also be satisfied by the Pro version.
     
    2929 * @param string $slug The plugin slug being checked.
    3030 */
    31 add_filter( 'wp_plugin_dependencies_slug', function( $slug ) {
    32     if ( 'restrict-content' === $slug ) {
    33         $slug = 'restrict-content-pro';
     31add_filter( 'wp_plugin_dependencies_slug', function( $s ) {
     32    if ( 'restrict-content' === $s ) {
     33        $s = 'restrict-content-pro';
    3434    }
    35     return $slug;
     35    return $s;
    3636});
    37 ```
     37`
    3838
    3939== Source Code ==
     
    5151== Changelog ==
    5252
     53= 1.0.1 =
     54* Add fallback for default comparison value.
     55* Tidy up code formatting in readme.txt.
     56
    5357= 1.0.0 =
    5458* Initial public release on WordPress.org.
  • restrict-block-content/trunk/restrict-block-content.php

    r3299607 r3302488  
    33 * Plugin Name:       Restrict Block Content
    44 * Description:       Applies Restrict Content Pro level based restrictions to specific core blocks.
    5  * Version:           1.0.0
     5 * Version:           1.0.1
    66 * Requires at least: 6.7
    77 * Requires PHP:      7.4
     
    136136        if ( ! empty( $parsed_block['attrs']['brcp_restrictions'] ) ) {
    137137            $level   = $parsed_block['attrs']['brcp_restriction_level'];
    138             $compare = $parsed_block['attrs']['brcp_restriction_type'];
     138            $compare = $parsed_block['attrs']['brcp_restriction_type'] ?? '>=';
    139139
    140140            switch( $compare ) {
Note: See TracChangeset for help on using the changeset viewer.