Changeset 3302488
- Timestamp:
- 05/28/2025 07:16:35 PM (10 months ago)
- Location:
- restrict-block-content
- Files:
-
- 6 edited
- 1 copied
-
tags/1.0.1 (copied) (copied from restrict-block-content/trunk)
-
tags/1.0.1/package.json (modified) (1 diff)
-
tags/1.0.1/readme.txt (modified) (4 diffs)
-
tags/1.0.1/restrict-block-content.php (modified) (2 diffs)
-
trunk/package.json (modified) (1 diff)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/restrict-block-content.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
restrict-block-content/tags/1.0.1/package.json
r3299607 r3302488 1 1 { 2 2 "name": "restrict-block-content", 3 "version": "1.0. 0",3 "version": "1.0.1", 4 4 "description": "Applies Restrict Content Pro level based restrictions to specific core blocks.", 5 5 "author": "georgestephanis, Bethink Studio", -
restrict-block-content/tags/1.0.1/readme.txt
r3299607 r3302488 3 3 Tags: block editor, rcp, restrict-content-pro 4 4 Tested up to: 6.8 5 Stable tag: 1.0. 05 Stable tag: 1.0.1 6 6 License: GPL-2.0-or-later 7 7 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 23 23 If you need to use this with an older version, you can apply this filter manually: 24 24 25 ` ``25 ` 26 26 /** 27 27 * Filter so that plugins listing the free version as a dependency would also be satisfied by the Pro version. … … 29 29 * @param string $slug The plugin slug being checked. 30 30 */ 31 add_filter( 'wp_plugin_dependencies_slug', function( $s lug) {32 if ( 'restrict-content' === $s lug) {33 $s lug= 'restrict-content-pro';31 add_filter( 'wp_plugin_dependencies_slug', function( $s ) { 32 if ( 'restrict-content' === $s ) { 33 $s = 'restrict-content-pro'; 34 34 } 35 return $s lug;35 return $s; 36 36 }); 37 ` ``37 ` 38 38 39 39 == Source Code == … … 51 51 == Changelog == 52 52 53 = 1.0.1 = 54 * Add fallback for default comparison value. 55 * Tidy up code formatting in readme.txt. 56 53 57 = 1.0.0 = 54 58 * Initial public release on WordPress.org. -
restrict-block-content/tags/1.0.1/restrict-block-content.php
r3299607 r3302488 3 3 * Plugin Name: Restrict Block Content 4 4 * Description: Applies Restrict Content Pro level based restrictions to specific core blocks. 5 * Version: 1.0. 05 * Version: 1.0.1 6 6 * Requires at least: 6.7 7 7 * Requires PHP: 7.4 … … 136 136 if ( ! empty( $parsed_block['attrs']['brcp_restrictions'] ) ) { 137 137 $level = $parsed_block['attrs']['brcp_restriction_level']; 138 $compare = $parsed_block['attrs']['brcp_restriction_type'] ;138 $compare = $parsed_block['attrs']['brcp_restriction_type'] ?? '>='; 139 139 140 140 switch( $compare ) { -
restrict-block-content/trunk/package.json
r3299607 r3302488 1 1 { 2 2 "name": "restrict-block-content", 3 "version": "1.0. 0",3 "version": "1.0.1", 4 4 "description": "Applies Restrict Content Pro level based restrictions to specific core blocks.", 5 5 "author": "georgestephanis, Bethink Studio", -
restrict-block-content/trunk/readme.txt
r3299607 r3302488 3 3 Tags: block editor, rcp, restrict-content-pro 4 4 Tested up to: 6.8 5 Stable tag: 1.0. 05 Stable tag: 1.0.1 6 6 License: GPL-2.0-or-later 7 7 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 23 23 If you need to use this with an older version, you can apply this filter manually: 24 24 25 ` ``25 ` 26 26 /** 27 27 * Filter so that plugins listing the free version as a dependency would also be satisfied by the Pro version. … … 29 29 * @param string $slug The plugin slug being checked. 30 30 */ 31 add_filter( 'wp_plugin_dependencies_slug', function( $s lug) {32 if ( 'restrict-content' === $s lug) {33 $s lug= 'restrict-content-pro';31 add_filter( 'wp_plugin_dependencies_slug', function( $s ) { 32 if ( 'restrict-content' === $s ) { 33 $s = 'restrict-content-pro'; 34 34 } 35 return $s lug;35 return $s; 36 36 }); 37 ` ``37 ` 38 38 39 39 == Source Code == … … 51 51 == Changelog == 52 52 53 = 1.0.1 = 54 * Add fallback for default comparison value. 55 * Tidy up code formatting in readme.txt. 56 53 57 = 1.0.0 = 54 58 * Initial public release on WordPress.org. -
restrict-block-content/trunk/restrict-block-content.php
r3299607 r3302488 3 3 * Plugin Name: Restrict Block Content 4 4 * Description: Applies Restrict Content Pro level based restrictions to specific core blocks. 5 * Version: 1.0. 05 * Version: 1.0.1 6 6 * Requires at least: 6.7 7 7 * Requires PHP: 7.4 … … 136 136 if ( ! empty( $parsed_block['attrs']['brcp_restrictions'] ) ) { 137 137 $level = $parsed_block['attrs']['brcp_restriction_level']; 138 $compare = $parsed_block['attrs']['brcp_restriction_type'] ;138 $compare = $parsed_block['attrs']['brcp_restriction_type'] ?? '>='; 139 139 140 140 switch( $compare ) {
Note: See TracChangeset
for help on using the changeset viewer.