Changeset 3290161
- Timestamp:
- 05/08/2025 10:30:23 PM (10 months ago)
- Location:
- content-control
- Files:
-
- 114 edited
- 1 copied
-
tags/2.6.3 (copied) (copied from content-control/trunk)
-
tags/2.6.3/classes/Base/Upgrade.php (modified) (1 diff)
-
tags/2.6.3/classes/Controllers/Admin/Reviews.php (modified) (2 diffs)
-
tags/2.6.3/classes/Controllers/Frontend/Restrictions/PostContent.php (modified) (4 diffs)
-
tags/2.6.3/classes/Controllers/RestAPI.php (modified) (1 diff)
-
tags/2.6.3/classes/Controllers/Shortcodes.php (modified) (1 diff)
-
tags/2.6.3/classes/Plugin/Core.php (modified) (1 diff)
-
tags/2.6.3/classes/Plugin/Upgrader.php (modified) (1 diff)
-
tags/2.6.3/classes/RestAPI/BlockTypes.php (modified) (1 diff)
-
tags/2.6.3/classes/RestAPI/ObjectSearch.php (modified) (1 diff)
-
tags/2.6.3/classes/RuleEngine/Rules.php (modified) (2 diffs)
-
tags/2.6.3/content-control.php (modified) (2 diffs)
-
tags/2.6.3/inc/functions/rule-callbacks.php (modified) (6 diffs)
-
tags/2.6.3/inc/functions/rules.php (modified) (1 diff)
-
tags/2.6.3/uninstall.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Container.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Exception/ExpectedInvokableException.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Exception/FrozenServiceException.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Exception/InvalidServiceIdentifierException.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Exception/UnknownIdentifierException.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Psr11/Container.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Psr11/ServiceLocator.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/ServiceIterator.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/ServiceProviderInterface.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Fixtures/Invokable.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Fixtures/NonInvokable.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Fixtures/PimpleServiceProvider.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Fixtures/Service.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Tests/PimpleServiceProviderInterfaceTest.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Tests/PimpleTest.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Psr11/ContainerTest.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Psr11/ServiceLocatorTest.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Tests/ServiceIteratorTest.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/psr/container/src/ContainerExceptionInterface.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/psr/container/src/ContainerInterface.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/psr/container/src/NotFoundExceptionInterface.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Admin.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Ajax.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Client.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Config.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Cron.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Encryption.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Endpoint.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Envelope.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Form.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Logger.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Logging.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Remote.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/trustedlogin/client/src/SecurityChecks.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/trustedlogin/client/src/SiteAccess.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/trustedlogin/client/src/SupportRole.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/trustedlogin/client/src/SupportUser.php (modified) (1 diff)
-
tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Utils.php (modified) (1 diff)
-
tags/2.6.3/vendor/autoload.php (modified) (1 diff)
-
tags/2.6.3/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/2.6.3/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/2.6.3/vendor/composer/installed.php (modified) (2 diffs)
-
tags/2.6.3/vendor/composer/platform_check.php (modified) (1 diff)
-
trunk/classes/Base/Upgrade.php (modified) (1 diff)
-
trunk/classes/Controllers/Admin/Reviews.php (modified) (2 diffs)
-
trunk/classes/Controllers/Frontend/Restrictions/PostContent.php (modified) (4 diffs)
-
trunk/classes/Controllers/RestAPI.php (modified) (1 diff)
-
trunk/classes/Controllers/Shortcodes.php (modified) (1 diff)
-
trunk/classes/Plugin/Core.php (modified) (1 diff)
-
trunk/classes/Plugin/Upgrader.php (modified) (1 diff)
-
trunk/classes/RestAPI/BlockTypes.php (modified) (1 diff)
-
trunk/classes/RestAPI/ObjectSearch.php (modified) (1 diff)
-
trunk/classes/RuleEngine/Rules.php (modified) (2 diffs)
-
trunk/content-control.php (modified) (2 diffs)
-
trunk/inc/functions/rule-callbacks.php (modified) (6 diffs)
-
trunk/inc/functions/rules.php (modified) (1 diff)
-
trunk/uninstall.php (modified) (1 diff)
-
trunk/vendor-prefixed/pimple/pimple/src/Pimple/Container.php (modified) (1 diff)
-
trunk/vendor-prefixed/pimple/pimple/src/Pimple/Exception/ExpectedInvokableException.php (modified) (1 diff)
-
trunk/vendor-prefixed/pimple/pimple/src/Pimple/Exception/FrozenServiceException.php (modified) (1 diff)
-
trunk/vendor-prefixed/pimple/pimple/src/Pimple/Exception/InvalidServiceIdentifierException.php (modified) (1 diff)
-
trunk/vendor-prefixed/pimple/pimple/src/Pimple/Exception/UnknownIdentifierException.php (modified) (1 diff)
-
trunk/vendor-prefixed/pimple/pimple/src/Pimple/Psr11/Container.php (modified) (1 diff)
-
trunk/vendor-prefixed/pimple/pimple/src/Pimple/Psr11/ServiceLocator.php (modified) (1 diff)
-
trunk/vendor-prefixed/pimple/pimple/src/Pimple/ServiceIterator.php (modified) (1 diff)
-
trunk/vendor-prefixed/pimple/pimple/src/Pimple/ServiceProviderInterface.php (modified) (1 diff)
-
trunk/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Fixtures/Invokable.php (modified) (1 diff)
-
trunk/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Fixtures/NonInvokable.php (modified) (1 diff)
-
trunk/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Fixtures/PimpleServiceProvider.php (modified) (1 diff)
-
trunk/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Fixtures/Service.php (modified) (1 diff)
-
trunk/vendor-prefixed/pimple/pimple/src/Pimple/Tests/PimpleServiceProviderInterfaceTest.php (modified) (1 diff)
-
trunk/vendor-prefixed/pimple/pimple/src/Pimple/Tests/PimpleTest.php (modified) (1 diff)
-
trunk/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Psr11/ContainerTest.php (modified) (1 diff)
-
trunk/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Psr11/ServiceLocatorTest.php (modified) (1 diff)
-
trunk/vendor-prefixed/pimple/pimple/src/Pimple/Tests/ServiceIteratorTest.php (modified) (1 diff)
-
trunk/vendor-prefixed/psr/container/src/ContainerExceptionInterface.php (modified) (1 diff)
-
trunk/vendor-prefixed/psr/container/src/ContainerInterface.php (modified) (1 diff)
-
trunk/vendor-prefixed/psr/container/src/NotFoundExceptionInterface.php (modified) (1 diff)
-
trunk/vendor-prefixed/trustedlogin/client/src/Admin.php (modified) (1 diff)
-
trunk/vendor-prefixed/trustedlogin/client/src/Ajax.php (modified) (1 diff)
-
trunk/vendor-prefixed/trustedlogin/client/src/Client.php (modified) (1 diff)
-
trunk/vendor-prefixed/trustedlogin/client/src/Config.php (modified) (1 diff)
-
trunk/vendor-prefixed/trustedlogin/client/src/Cron.php (modified) (1 diff)
-
trunk/vendor-prefixed/trustedlogin/client/src/Encryption.php (modified) (1 diff)
-
trunk/vendor-prefixed/trustedlogin/client/src/Endpoint.php (modified) (1 diff)
-
trunk/vendor-prefixed/trustedlogin/client/src/Envelope.php (modified) (1 diff)
-
trunk/vendor-prefixed/trustedlogin/client/src/Form.php (modified) (1 diff)
-
trunk/vendor-prefixed/trustedlogin/client/src/Logger.php (modified) (1 diff)
-
trunk/vendor-prefixed/trustedlogin/client/src/Logging.php (modified) (1 diff)
-
trunk/vendor-prefixed/trustedlogin/client/src/Remote.php (modified) (1 diff)
-
trunk/vendor-prefixed/trustedlogin/client/src/SecurityChecks.php (modified) (1 diff)
-
trunk/vendor-prefixed/trustedlogin/client/src/SiteAccess.php (modified) (1 diff)
-
trunk/vendor-prefixed/trustedlogin/client/src/SupportRole.php (modified) (1 diff)
-
trunk/vendor-prefixed/trustedlogin/client/src/SupportUser.php (modified) (1 diff)
-
trunk/vendor-prefixed/trustedlogin/client/src/Utils.php (modified) (1 diff)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/vendor/composer/platform_check.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
content-control/tags/2.6.3/classes/Base/Upgrade.php
r3007200 r3290161 119 119 $return = $this->run(); 120 120 121 unset( $this->stream );121 ; 122 122 123 123 if ( is_bool( $return ) || is_wp_error( $return ) ) { -
content-control/tags/2.6.3/classes/Controllers/Admin/Reviews.php
r2969631 r3290161 45 45 * @var string 46 46 */ 47 public static$api_url;47 public $api_url; 48 48 49 49 /** … … 534 534 $code = $this->get_trigger_code(); 535 535 536 $conditions = [ 537 $this->already_did(), 538 $this->last_dismissed() && strtotime( $this->last_dismissed() . ' +2 weeks' ) > time(), 539 empty( $code ), 540 ]; 541 542 return in_array( true, $conditions, true ); 536 return $this->already_did() 537 || ( $this->last_dismissed() && strtotime( $this->last_dismissed() . ' +2 weeks' ) > time() ) 538 || empty( $code ); 543 539 } 544 540 -
content-control/tags/2.6.3/classes/Controllers/Frontend/Restrictions/PostContent.php
r3278699 r3290161 104 104 * 105 105 * @param null|string $pre_restrict_content The content to display. 106 * @param string $content The content.107 * @param \ContentControl\Models\Restriction $restrictionThe restriction.106 * @param string $content The content. 107 * @param \ContentControl\Models\Restriction The restriction. 108 108 * 109 109 * @return string … … 181 181 * Filter to bypass the default restriction message for excerpts. 182 182 * 183 * @since 2. 0.0183 * @since 2. 184 184 * 185 185 * @param null|string $pre_excerpt Return a non-null value to bypass. … … 187 187 * @param \ContentControl\Models\Restriction $restriction The restriction object. 188 188 */ 189 $pre_excerpt = apply_filters( 'content_control/pre_restrict_excerpt', null, $post_excerpt, $restriction ); 190 191 if ( null !== $pre_excerpt ) { 192 return $pre_excerpt; 193 } 194 195 /** 196 * Filter the excerpt to display when a post is restricted. 197 * 198 * @param string $message Message to display. 199 * @param object $restriction Restriction object. 189 $pre_restrict_excerpt = apply_filters( 'content_control/pre_restrict_excerpt', null, $post_excerpt, $restriction ); 190 191 if ( null !== $pre_restrict_excerpt ) { 192 return $pre_restrict_excerpt; 193 } 194 195 $message = \ContentControl\get_default_denial_message(); 196 197 /** 198 * If the restriction has a custom message, use it. 199 * 200 * We could check $restriction->replacement_type, but we need a safe default for 201 * all cases. Further we do content filtering for all sub queries and currently 202 * don't offer a way to override the message for those. 203 * 204 * In this way currently users can change to content replacement, set the override 205 * message, then change back to page replacement and the override message will still 206 * be used for the post in sub queries. 207 */ 208 if ( $restriction->get_setting( 'overrideMessage' ) ) { 209 $message = $restriction->get_message(); 210 } 211 212 /** 213 * Filter the excerpt message to display when a post is restricted. 214 * 215 * @param string $message Message to display. 216 * @param \ContentControl\Models\Restriction $restriction The restriction. 200 217 * 201 218 * @return string … … 203 220 return apply_filters( 204 221 $filter_name, 205 $restriction->get_message(), 222 // If the default message is empty, show a generic message. 223 ! empty( $message ) ? $message : __( 'This content is restricted.', 'content-control' ), 206 224 $restriction 207 225 ); -
content-control/tags/2.6.3/classes/Controllers/RestAPI.php
r3256177 r3290161 27 27 28 28 // Handle CPT & Taxonomy that are not registered with the `show_in_rest` arg when searching from our settings pages. 29 add_filter( 'register_post_type_args', [ $this, 'modify_post_type_show_in_rest' ], 10 , 2);30 add_filter( 'register_taxonomy_args', [ $this, 'modify_taxonomy_show_in_rest' ], 10 , 2);29 add_filter( 'register_post_type_args', [ $this, 'modify_post_type_show_in_rest' ], 10 ); 30 add_filter( 'register_taxonomy_args', [ $this, 'modify_taxonomy_show_in_rest' ], 10 ); 31 31 } 32 32 -
content-control/tags/2.6.3/classes/Controllers/Shortcodes.php
r3278699 r3290161 116 116 */ 117 117 public function normalize_empty_atts( $atts = [] ) { 118 119 118 120 if ( ! is_array( $atts ) || empty( $atts ) ) { 119 121 $atts = []; -
content-control/tags/2.6.3/classes/Plugin/Core.php
r3137162 r3290161 302 302 public function register_controllers( $controllers = [] ) { 303 303 foreach ( $controllers as $name => $controller ) { 304 305 304 306 if ( $controller instanceof Controller ) { 305 307 if ( $controller->controller_enabled() ) { -
content-control/tags/2.6.3/classes/Plugin/Upgrader.php
r2970153 r3290161 144 144 // 1. Check if the plugin exists already, if so upgrade it. 145 145 146 // Error check. 146 // Error check. Sanity check to ensure install method exists. 147 // @phpstan-ignore-next-line . 147 148 if ( ! method_exists( $installer, 'install' ) ) { 148 149 return new \WP_Error( 'content_control_upgrader', __( 'Upgrader missing install method.', 'content-control' ) ); -
content-control/tags/2.6.3/classes/RestAPI/BlockTypes.php
r3007200 r3290161 96 96 $error_message = __( 'Something went wrong, the block types could not be updated.', 'content-control' ); 97 97 98 99 98 100 if ( ! is_array( get_block_types() ) ) { 99 101 return new WP_Error( '500', $error_message, [ 'status' => 500 ] ); -
content-control/tags/2.6.3/classes/RestAPI/ObjectSearch.php
r3053151 r3290161 261 261 } 262 262 263 // Take out keys which were only used to deduplicate.264 $results['items'] = array_values( $results['items'] );265 266 263 return new WP_REST_Response( $results, 200 ); 267 264 } catch ( \Exception $e ) { -
content-control/tags/2.6.3/classes/RuleEngine/Rules.php
r3256177 r3290161 102 102 */ 103 103 public function is_rule_valid( $rule ) { 104 return is_array( $rule ) &&! empty( $rule );104 return ! empty( $rule ); 105 105 } 106 106 … … 480 480 * @param array<string,array<string,mixed>> $type_rules Post type rules. 481 481 * @param string $name Post type name. 482 482 483 * 483 484 * @return array<string,array<string,mixed>> -
content-control/tags/2.6.3/content-control.php
r3278699 r3290161 4 4 * Plugin URI: https://contentcontrolplugin.com/?utm_campaign=plugin-info&utm_source=php-file-header&utm_medium=plugin-ui&utm_content=plugin-uri 5 5 * Description: Restrict content to logged in/out users or specific user roles. Restrict access to certain parts of a page/post. Control the visibility of widgets. 6 * Version: 2.6. 26 * Version: 2.6. 7 7 * Author: Code Atlantic 8 8 * Author URI: https://code-atlantic.com/?utm_campaign=plugin-info&utm_source=php-file-header&utm_medium=plugin-ui&utm_content=author-uri … … 31 31 'name' => 'Content Control', 32 32 'slug' => 'content-control', 33 'version' => '2.6. 2',33 'version' => '2.6.', 34 34 'option_prefix' => 'content_control', 35 35 // Maybe remove this and simply prefix `name` with `'Popup Maker'`. -
content-control/tags/2.6.3/inc/functions/rule-callbacks.php
r3256177 r3290161 103 103 case 'restapi/terms': 104 104 case 'unknown': 105 return false; 106 } 107 108 // Catch all unknown contexts. 109 return false; 105 default: 106 return false; 107 } 110 108 } 111 109 … … 148 146 case 'terms': 149 147 case 'unknown': 150 return false; 151 } 152 153 return false; 148 default: 149 return false; 150 } 154 151 } 155 152 … … 207 204 case 'terms': 208 205 case 'unknown': 209 return false; 210 } 211 212 return false; 206 default: 207 return false; 208 } 213 209 } 214 210 … … 266 262 case 'terms': 267 263 case 'unknown': 268 return false; 269 } 270 271 return false; 264 default: 265 return false; 266 } 272 267 } 273 268 … … 329 324 case 'terms': 330 325 case 'unknown': 331 return false; 332 } 333 334 return false; 326 default: 327 return false; 328 } 335 329 } 336 330 … … 708 702 case 'terms': 709 703 case 'unknown': 710 return false; 711 } 712 713 return false; 704 default: 705 return false; 706 } 714 707 } 715 708 -
content-control/tags/2.6.3/inc/functions/rules.php
r3053151 r3290161 113 113 * @return array 114 114 */ 115 $roles = apply_filters( 'content_control/user_roles', wp_roles()->get_names() );115 $roles = apply_filters( 'content_control/user_roles', wp_roles()->get_names() ); 116 116 117 if ( ! is_array( $roles ) ||empty( $roles ) ) {117 if ( empty( $roles ) ) { 118 118 $roles = []; 119 119 } -
content-control/tags/2.6.3/uninstall.php
r2969631 r3290161 25 25 'content_control_completed_upgrades', 26 26 ]; 27 28 29 30 27 31 } -
content-control/tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Container.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Exception/ExpectedInvokableException.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Exception/FrozenServiceException.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Exception/InvalidServiceIdentifierException.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Exception/UnknownIdentifierException.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Psr11/Container.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Psr11/ServiceLocator.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/ServiceIterator.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/ServiceProviderInterface.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Fixtures/Invokable.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Fixtures/NonInvokable.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Fixtures/PimpleServiceProvider.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Fixtures/Service.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Tests/PimpleServiceProviderInterfaceTest.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Tests/PimpleTest.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Psr11/ContainerTest.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Psr11/ServiceLocatorTest.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/tags/2.6.3/vendor-prefixed/pimple/pimple/src/Pimple/Tests/ServiceIteratorTest.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/tags/2.6.3/vendor-prefixed/psr/container/src/ContainerExceptionInterface.php
r3278699 r3290161 3 3 * @license MIT 4 4 * 5 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
content-control/tags/2.6.3/vendor-prefixed/psr/container/src/ContainerInterface.php
r3278699 r3290161 3 3 * @license MIT 4 4 * 5 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
content-control/tags/2.6.3/vendor-prefixed/psr/container/src/NotFoundExceptionInterface.php
r3278699 r3290161 3 3 * @license MIT 4 4 * 5 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
content-control/tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Admin.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Ajax.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Client.php
r3278699 r3290161 19 19 * 20 20 * @license GPL-2.0-or-later 21 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.21 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 22 22 */ 23 23 -
content-control/tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Config.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Cron.php
r3278699 r3290161 6 6 * 7 7 * @license GPL-2.0-or-later 8 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.8 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 9 9 */ 10 10 -
content-control/tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Encryption.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Endpoint.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Envelope.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Form.php
r3278699 r3290161 3 3 * @license GPL-2.0-or-later 4 4 * 5 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 /** -
content-control/tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Logger.php
r3278699 r3290161 10 10 * 11 11 * @license GPL-2.0-or-later 12 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.12 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 13 13 */ 14 14 -
content-control/tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Logging.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Remote.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/tags/2.6.3/vendor-prefixed/trustedlogin/client/src/SecurityChecks.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/tags/2.6.3/vendor-prefixed/trustedlogin/client/src/SiteAccess.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/tags/2.6.3/vendor-prefixed/trustedlogin/client/src/SupportRole.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/tags/2.6.3/vendor-prefixed/trustedlogin/client/src/SupportUser.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/tags/2.6.3/vendor-prefixed/trustedlogin/client/src/Utils.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/tags/2.6.3/vendor/autoload.php
r3278699 r3290161 20 20 require_once __DIR__ . '/composer/autoload_real.php'; 21 21 22 return ComposerAutoloaderInit2 590a902ca8d302f546143f2cb997562::getLoader();22 return ComposerAutoloaderInit22::getLoader(); -
content-control/tags/2.6.3/vendor/composer/autoload_real.php
r3278699 r3290161 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit2 590a902ca8d302f546143f2cb9975625 class ComposerAutoloaderInit22 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit2 590a902ca8d302f546143f2cb997562', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit22', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit2 590a902ca8d302f546143f2cb997562', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit22', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit2 590a902ca8d302f546143f2cb997562::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit22::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
content-control/tags/2.6.3/vendor/composer/autoload_static.php
r3278699 r3290161 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit2 590a902ca8d302f546143f2cb9975627 class ComposerStaticInit22 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 239 239 { 240 240 return \Closure::bind(function () use ($loader) { 241 $loader->prefixLengthsPsr4 = ComposerStaticInit2 590a902ca8d302f546143f2cb997562::$prefixLengthsPsr4;242 $loader->prefixDirsPsr4 = ComposerStaticInit2 590a902ca8d302f546143f2cb997562::$prefixDirsPsr4;243 $loader->classMap = ComposerStaticInit2 590a902ca8d302f546143f2cb997562::$classMap;241 $loader->prefixLengthsPsr4 = ComposerStaticInit22::$prefixLengthsPsr4; 242 $loader->prefixDirsPsr4 = ComposerStaticInit22::$prefixDirsPsr4; 243 $loader->classMap = ComposerStaticInit22::$classMap; 244 244 245 245 }, null, ClassLoader::class); -
content-control/tags/2.6.3/vendor/composer/installed.php
r3278699 r3290161 2 2 'root' => array( 3 3 'name' => 'code-atlantic/content-control', 4 'pretty_version' => ' 2.6.2',5 'version' => '2.6. 2.0',6 'reference' => null,4 'pretty_version' => '', 5 'version' => '2.6..0', 6 'reference' => , 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'code-atlantic/content-control' => array( 14 'pretty_version' => ' 2.6.2',15 'version' => '2.6. 2.0',16 'reference' => null,14 'pretty_version' => '', 15 'version' => '2.6..0', 16 'reference' => , 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
content-control/tags/2.6.3/vendor/composer/platform_check.php
r3055651 r3290161 5 5 $issues = array(); 6 6 7 if (!(PHP_VERSION_ID >= 70 200)) {8 $issues[] = 'Your Composer dependencies require a PHP version ">= 7. 2.0". You are running ' . PHP_VERSION . '.';7 if (!(PHP_VERSION_ID >= 7000)) { 8 $issues[] = 'Your Composer dependencies require a PHP version ">= 7..0". You are running ' . PHP_VERSION . '.'; 9 9 } 10 10 -
content-control/trunk/classes/Base/Upgrade.php
r3007200 r3290161 119 119 $return = $this->run(); 120 120 121 unset( $this->stream );121 ; 122 122 123 123 if ( is_bool( $return ) || is_wp_error( $return ) ) { -
content-control/trunk/classes/Controllers/Admin/Reviews.php
r2969631 r3290161 45 45 * @var string 46 46 */ 47 public static$api_url;47 public $api_url; 48 48 49 49 /** … … 534 534 $code = $this->get_trigger_code(); 535 535 536 $conditions = [ 537 $this->already_did(), 538 $this->last_dismissed() && strtotime( $this->last_dismissed() . ' +2 weeks' ) > time(), 539 empty( $code ), 540 ]; 541 542 return in_array( true, $conditions, true ); 536 return $this->already_did() 537 || ( $this->last_dismissed() && strtotime( $this->last_dismissed() . ' +2 weeks' ) > time() ) 538 || empty( $code ); 543 539 } 544 540 -
content-control/trunk/classes/Controllers/Frontend/Restrictions/PostContent.php
r3278699 r3290161 104 104 * 105 105 * @param null|string $pre_restrict_content The content to display. 106 * @param string $content The content.107 * @param \ContentControl\Models\Restriction $restrictionThe restriction.106 * @param string $content The content. 107 * @param \ContentControl\Models\Restriction The restriction. 108 108 * 109 109 * @return string … … 181 181 * Filter to bypass the default restriction message for excerpts. 182 182 * 183 * @since 2. 0.0183 * @since 2. 184 184 * 185 185 * @param null|string $pre_excerpt Return a non-null value to bypass. … … 187 187 * @param \ContentControl\Models\Restriction $restriction The restriction object. 188 188 */ 189 $pre_excerpt = apply_filters( 'content_control/pre_restrict_excerpt', null, $post_excerpt, $restriction ); 190 191 if ( null !== $pre_excerpt ) { 192 return $pre_excerpt; 193 } 194 195 /** 196 * Filter the excerpt to display when a post is restricted. 197 * 198 * @param string $message Message to display. 199 * @param object $restriction Restriction object. 189 $pre_restrict_excerpt = apply_filters( 'content_control/pre_restrict_excerpt', null, $post_excerpt, $restriction ); 190 191 if ( null !== $pre_restrict_excerpt ) { 192 return $pre_restrict_excerpt; 193 } 194 195 $message = \ContentControl\get_default_denial_message(); 196 197 /** 198 * If the restriction has a custom message, use it. 199 * 200 * We could check $restriction->replacement_type, but we need a safe default for 201 * all cases. Further we do content filtering for all sub queries and currently 202 * don't offer a way to override the message for those. 203 * 204 * In this way currently users can change to content replacement, set the override 205 * message, then change back to page replacement and the override message will still 206 * be used for the post in sub queries. 207 */ 208 if ( $restriction->get_setting( 'overrideMessage' ) ) { 209 $message = $restriction->get_message(); 210 } 211 212 /** 213 * Filter the excerpt message to display when a post is restricted. 214 * 215 * @param string $message Message to display. 216 * @param \ContentControl\Models\Restriction $restriction The restriction. 200 217 * 201 218 * @return string … … 203 220 return apply_filters( 204 221 $filter_name, 205 $restriction->get_message(), 222 // If the default message is empty, show a generic message. 223 ! empty( $message ) ? $message : __( 'This content is restricted.', 'content-control' ), 206 224 $restriction 207 225 ); -
content-control/trunk/classes/Controllers/RestAPI.php
r3256177 r3290161 27 27 28 28 // Handle CPT & Taxonomy that are not registered with the `show_in_rest` arg when searching from our settings pages. 29 add_filter( 'register_post_type_args', [ $this, 'modify_post_type_show_in_rest' ], 10 , 2);30 add_filter( 'register_taxonomy_args', [ $this, 'modify_taxonomy_show_in_rest' ], 10 , 2);29 add_filter( 'register_post_type_args', [ $this, 'modify_post_type_show_in_rest' ], 10 ); 30 add_filter( 'register_taxonomy_args', [ $this, 'modify_taxonomy_show_in_rest' ], 10 ); 31 31 } 32 32 -
content-control/trunk/classes/Controllers/Shortcodes.php
r3278699 r3290161 116 116 */ 117 117 public function normalize_empty_atts( $atts = [] ) { 118 119 118 120 if ( ! is_array( $atts ) || empty( $atts ) ) { 119 121 $atts = []; -
content-control/trunk/classes/Plugin/Core.php
r3137162 r3290161 302 302 public function register_controllers( $controllers = [] ) { 303 303 foreach ( $controllers as $name => $controller ) { 304 305 304 306 if ( $controller instanceof Controller ) { 305 307 if ( $controller->controller_enabled() ) { -
content-control/trunk/classes/Plugin/Upgrader.php
r2970153 r3290161 144 144 // 1. Check if the plugin exists already, if so upgrade it. 145 145 146 // Error check. 146 // Error check. Sanity check to ensure install method exists. 147 // @phpstan-ignore-next-line . 147 148 if ( ! method_exists( $installer, 'install' ) ) { 148 149 return new \WP_Error( 'content_control_upgrader', __( 'Upgrader missing install method.', 'content-control' ) ); -
content-control/trunk/classes/RestAPI/BlockTypes.php
r3007200 r3290161 96 96 $error_message = __( 'Something went wrong, the block types could not be updated.', 'content-control' ); 97 97 98 99 98 100 if ( ! is_array( get_block_types() ) ) { 99 101 return new WP_Error( '500', $error_message, [ 'status' => 500 ] ); -
content-control/trunk/classes/RestAPI/ObjectSearch.php
r3053151 r3290161 261 261 } 262 262 263 // Take out keys which were only used to deduplicate.264 $results['items'] = array_values( $results['items'] );265 266 263 return new WP_REST_Response( $results, 200 ); 267 264 } catch ( \Exception $e ) { -
content-control/trunk/classes/RuleEngine/Rules.php
r3256177 r3290161 102 102 */ 103 103 public function is_rule_valid( $rule ) { 104 return is_array( $rule ) &&! empty( $rule );104 return ! empty( $rule ); 105 105 } 106 106 … … 480 480 * @param array<string,array<string,mixed>> $type_rules Post type rules. 481 481 * @param string $name Post type name. 482 482 483 * 483 484 * @return array<string,array<string,mixed>> -
content-control/trunk/content-control.php
r3278699 r3290161 4 4 * Plugin URI: https://contentcontrolplugin.com/?utm_campaign=plugin-info&utm_source=php-file-header&utm_medium=plugin-ui&utm_content=plugin-uri 5 5 * Description: Restrict content to logged in/out users or specific user roles. Restrict access to certain parts of a page/post. Control the visibility of widgets. 6 * Version: 2.6. 26 * Version: 2.6. 7 7 * Author: Code Atlantic 8 8 * Author URI: https://code-atlantic.com/?utm_campaign=plugin-info&utm_source=php-file-header&utm_medium=plugin-ui&utm_content=author-uri … … 31 31 'name' => 'Content Control', 32 32 'slug' => 'content-control', 33 'version' => '2.6. 2',33 'version' => '2.6.', 34 34 'option_prefix' => 'content_control', 35 35 // Maybe remove this and simply prefix `name` with `'Popup Maker'`. -
content-control/trunk/inc/functions/rule-callbacks.php
r3256177 r3290161 103 103 case 'restapi/terms': 104 104 case 'unknown': 105 return false; 106 } 107 108 // Catch all unknown contexts. 109 return false; 105 default: 106 return false; 107 } 110 108 } 111 109 … … 148 146 case 'terms': 149 147 case 'unknown': 150 return false; 151 } 152 153 return false; 148 default: 149 return false; 150 } 154 151 } 155 152 … … 207 204 case 'terms': 208 205 case 'unknown': 209 return false; 210 } 211 212 return false; 206 default: 207 return false; 208 } 213 209 } 214 210 … … 266 262 case 'terms': 267 263 case 'unknown': 268 return false; 269 } 270 271 return false; 264 default: 265 return false; 266 } 272 267 } 273 268 … … 329 324 case 'terms': 330 325 case 'unknown': 331 return false; 332 } 333 334 return false; 326 default: 327 return false; 328 } 335 329 } 336 330 … … 708 702 case 'terms': 709 703 case 'unknown': 710 return false; 711 } 712 713 return false; 704 default: 705 return false; 706 } 714 707 } 715 708 -
content-control/trunk/inc/functions/rules.php
r3053151 r3290161 113 113 * @return array 114 114 */ 115 $roles = apply_filters( 'content_control/user_roles', wp_roles()->get_names() );115 $roles = apply_filters( 'content_control/user_roles', wp_roles()->get_names() ); 116 116 117 if ( ! is_array( $roles ) ||empty( $roles ) ) {117 if ( empty( $roles ) ) { 118 118 $roles = []; 119 119 } -
content-control/trunk/uninstall.php
r2969631 r3290161 25 25 'content_control_completed_upgrades', 26 26 ]; 27 28 29 30 27 31 } -
content-control/trunk/vendor-prefixed/pimple/pimple/src/Pimple/Container.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/trunk/vendor-prefixed/pimple/pimple/src/Pimple/Exception/ExpectedInvokableException.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/trunk/vendor-prefixed/pimple/pimple/src/Pimple/Exception/FrozenServiceException.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/trunk/vendor-prefixed/pimple/pimple/src/Pimple/Exception/InvalidServiceIdentifierException.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/trunk/vendor-prefixed/pimple/pimple/src/Pimple/Exception/UnknownIdentifierException.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/trunk/vendor-prefixed/pimple/pimple/src/Pimple/Psr11/Container.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/trunk/vendor-prefixed/pimple/pimple/src/Pimple/Psr11/ServiceLocator.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/trunk/vendor-prefixed/pimple/pimple/src/Pimple/ServiceIterator.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/trunk/vendor-prefixed/pimple/pimple/src/Pimple/ServiceProviderInterface.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/trunk/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Fixtures/Invokable.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/trunk/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Fixtures/NonInvokable.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/trunk/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Fixtures/PimpleServiceProvider.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/trunk/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Fixtures/Service.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/trunk/vendor-prefixed/pimple/pimple/src/Pimple/Tests/PimpleServiceProviderInterfaceTest.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/trunk/vendor-prefixed/pimple/pimple/src/Pimple/Tests/PimpleTest.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/trunk/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Psr11/ContainerTest.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/trunk/vendor-prefixed/pimple/pimple/src/Pimple/Tests/Psr11/ServiceLocatorTest.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/trunk/vendor-prefixed/pimple/pimple/src/Pimple/Tests/ServiceIteratorTest.php
r3278699 r3290161 24 24 * THE SOFTWARE. 25 25 * 26 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.26 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 27 27 */ 28 28 -
content-control/trunk/vendor-prefixed/psr/container/src/ContainerExceptionInterface.php
r3278699 r3290161 3 3 * @license MIT 4 4 * 5 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
content-control/trunk/vendor-prefixed/psr/container/src/ContainerInterface.php
r3278699 r3290161 3 3 * @license MIT 4 4 * 5 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
content-control/trunk/vendor-prefixed/psr/container/src/NotFoundExceptionInterface.php
r3278699 r3290161 3 3 * @license MIT 4 4 * 5 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
content-control/trunk/vendor-prefixed/trustedlogin/client/src/Admin.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/trunk/vendor-prefixed/trustedlogin/client/src/Ajax.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/trunk/vendor-prefixed/trustedlogin/client/src/Client.php
r3278699 r3290161 19 19 * 20 20 * @license GPL-2.0-or-later 21 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.21 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 22 22 */ 23 23 -
content-control/trunk/vendor-prefixed/trustedlogin/client/src/Config.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/trunk/vendor-prefixed/trustedlogin/client/src/Cron.php
r3278699 r3290161 6 6 * 7 7 * @license GPL-2.0-or-later 8 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.8 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 9 9 */ 10 10 -
content-control/trunk/vendor-prefixed/trustedlogin/client/src/Encryption.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/trunk/vendor-prefixed/trustedlogin/client/src/Endpoint.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/trunk/vendor-prefixed/trustedlogin/client/src/Envelope.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/trunk/vendor-prefixed/trustedlogin/client/src/Form.php
r3278699 r3290161 3 3 * @license GPL-2.0-or-later 4 4 * 5 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 /** -
content-control/trunk/vendor-prefixed/trustedlogin/client/src/Logger.php
r3278699 r3290161 10 10 * 11 11 * @license GPL-2.0-or-later 12 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.12 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 13 13 */ 14 14 -
content-control/trunk/vendor-prefixed/trustedlogin/client/src/Logging.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/trunk/vendor-prefixed/trustedlogin/client/src/Remote.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/trunk/vendor-prefixed/trustedlogin/client/src/SecurityChecks.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/trunk/vendor-prefixed/trustedlogin/client/src/SiteAccess.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/trunk/vendor-prefixed/trustedlogin/client/src/SupportRole.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/trunk/vendor-prefixed/trustedlogin/client/src/SupportUser.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/trunk/vendor-prefixed/trustedlogin/client/src/Utils.php
r3278699 r3290161 8 8 * 9 9 * @license GPL-2.0-or-later 10 * Modified by code-atlantic on 22-April-2025 using {@see https://github.com/BrianHenryIE/strauss}.10 * Modified by code-atlantic on -2025 using {@see https://github.com/BrianHenryIE/strauss}. 11 11 */ 12 12 -
content-control/trunk/vendor/autoload.php
r3278699 r3290161 20 20 require_once __DIR__ . '/composer/autoload_real.php'; 21 21 22 return ComposerAutoloaderInit2 590a902ca8d302f546143f2cb997562::getLoader();22 return ComposerAutoloaderInit22::getLoader(); -
content-control/trunk/vendor/composer/autoload_real.php
r3278699 r3290161 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit2 590a902ca8d302f546143f2cb9975625 class ComposerAutoloaderInit22 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit2 590a902ca8d302f546143f2cb997562', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit22', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit2 590a902ca8d302f546143f2cb997562', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit22', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit2 590a902ca8d302f546143f2cb997562::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit22::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
content-control/trunk/vendor/composer/autoload_static.php
r3278699 r3290161 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit2 590a902ca8d302f546143f2cb9975627 class ComposerStaticInit22 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 239 239 { 240 240 return \Closure::bind(function () use ($loader) { 241 $loader->prefixLengthsPsr4 = ComposerStaticInit2 590a902ca8d302f546143f2cb997562::$prefixLengthsPsr4;242 $loader->prefixDirsPsr4 = ComposerStaticInit2 590a902ca8d302f546143f2cb997562::$prefixDirsPsr4;243 $loader->classMap = ComposerStaticInit2 590a902ca8d302f546143f2cb997562::$classMap;241 $loader->prefixLengthsPsr4 = ComposerStaticInit22::$prefixLengthsPsr4; 242 $loader->prefixDirsPsr4 = ComposerStaticInit22::$prefixDirsPsr4; 243 $loader->classMap = ComposerStaticInit22::$classMap; 244 244 245 245 }, null, ClassLoader::class); -
content-control/trunk/vendor/composer/installed.php
r3278699 r3290161 2 2 'root' => array( 3 3 'name' => 'code-atlantic/content-control', 4 'pretty_version' => ' 2.6.2',5 'version' => '2.6. 2.0',6 'reference' => null,4 'pretty_version' => '', 5 'version' => '2.6..0', 6 'reference' => , 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'code-atlantic/content-control' => array( 14 'pretty_version' => ' 2.6.2',15 'version' => '2.6. 2.0',16 'reference' => null,14 'pretty_version' => '', 15 'version' => '2.6..0', 16 'reference' => , 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
content-control/trunk/vendor/composer/platform_check.php
r3055651 r3290161 5 5 $issues = array(); 6 6 7 if (!(PHP_VERSION_ID >= 70 200)) {8 $issues[] = 'Your Composer dependencies require a PHP version ">= 7. 2.0". You are running ' . PHP_VERSION . '.';7 if (!(PHP_VERSION_ID >= 7000)) { 8 $issues[] = 'Your Composer dependencies require a PHP version ">= 7..0". You are running ' . PHP_VERSION . '.'; 9 9 } 10 10
Note: See TracChangeset
for help on using the changeset viewer.