Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More changelog

By Daniel Iser, on WordPress.org since 2016. 40,000+ active installs.

Browse code

52 tagged releases, newest first. Dates are when each release was tagged in SVN. Notes come from the plugin's readme, which may not list every release.

  1. 2.7.4

    No notes for this release in the current readme.

    Source
  2. 2.7.3

    No notes for this release in the current readme.

    Source
  3. 2.7.2

    No notes for this release in the current readme.

    Source
  4. 2.7.1

    No notes for this release in the current readme.

    Source
  5. 2.7.0

    No notes for this release in the current readme.

    Source
  6. 2.6.6

    No notes for this release in the current readme.

    Source
  7. 2.6.5
    • Tweak: Passed the original filtered content to the restricted message filter.
    Source Diff vs 2.6.4
  8. 2.6.4
    • Fix: Revert change in previous update that broke rendering of some shortcodes within [content_control] shortcode inner contents.
    Source Diff vs 2.6.3
  9. 2.6.3
    • Fix: Excerpt rendering when custom message wasn’t set.
    Source Diff vs 2.6.2
  10. 2.6.2
    • Security: Escaped [content_control] message attribute.
    • Fix: Misc JS bugs in admin.
    • Developer: Added new content_control/pre_restrict_content & content_control/pre_restrict_excerpt filters to allow overloading/short curcuiting the default restriction application.
    Source Diff vs 2.6.1
  11. 2.6.1
    • Improvement: Only fetch titles & ids when loading posts/taxonomy for the Restriction Editor. Reducing request overhead.
    • Improvement: Ensure taxonomies are also removed from search appropriately.
    • Improvement: Reduce memory footprint of overloaded object handling.
    • Tweak: Adjust rest intent when using search endpoint or arg for better detection.
    • Fix: Prevent undefined post type or taxonomy public arg from generating warning notices.
    • Fix: Prvent warnings due to translations being loaded too early.
    Source Diff vs 2.6.0
  12. 2.6.0
    • Feature: Added new setting to control restricted content visibility in search results Site owners can now choose to completely hide restricted content from search results
    • Includes detailed security guidance when enabling search visibility
    • Helps prevent unintended exposure of sensitive information through search
    • Resolves concerns addressed in CVE-2024-11153 by default, now requiring explicit admin consent to show items in search results.
    • Performance: Improved asset minification.
    Source Diff vs 2.5.0
  13. 2.5.0
    • Improvement: Change rule processing to be more explicit for each context/rule type, improving performance & reliability of how rules are handled in some edge cases.
    • Improvement: Update content_control_known_blockTypes option to not be autoloaded.
    • Improvement: Update QueryMonitor output to differentiate between terms & posts.
    • Fix: Error due to invalid return value variable name.
    Source Diff vs 2.4.0
  14. 2.4.0
    • Improvement: Optimized the order we determine if we can skip checking restrictions for any givem content type. Thanks to PolyLang team for the suggestion.
    • Improvement: Better coverage for taxonomy query detection & filtering.
    • Improvement: Added inertnal function caches to drastically reduce overhead of checking restrictions. This may result in a significant performance increase for large sites or sites with many restrictions.
    • Improvement: Only generate list of page template types for rules when in the admin, saving potential DB query.
    • Tweak: Explicitly bail on rule checks for unknown Rest API endpoints as we don’t currently fully support them. Filter below added to allow modifying this behavior.
    • Tweak: Remove upsell message when pro version is active.

    And 7 more notes.

    Source Diff vs 2.3.0
  15. 2.3.0
    • Improvement: Added more full coverage of all query types for for restriction handling. This helps catch more custom/3rd party AJAX search queries that were not being filtered.
    • Improvement: Added better handling for excluding queries and admin views from restrictions.
    • Improvement: Added filters for easier compatibility fixes with 3rd party plugins.
    • Improvement: Added support/fixes for BetterDocs custom AJAX searching.
    • Improvement: Added support/fixes for Blocksy theme custom AJAX searching.
    • Fix: Bug where $post->ID was used without checking if $post was set.

    And 1 more note.

    Source Diff vs 2.2.8
  16. 2.2.8
    • Fix: Issue causing some non-admin AJAX requests to the REST API from being run through protection checks.
    • Fix: Error when using page template rules & global $post is not set properly.
    Source Diff vs 2.2.7
  17. 2.2.7
    • Improvement: Fix plugin preview blueprint file location.
    Source Diff vs 2.2.6
  18. 2.2.6
    • Improvement: Add plugin preview blueprint support.
    Source Diff vs 2.2.5
  19. 2.2.5
    • Improvement: Logic for protection being disabled was improved to be more efficient.
    • Fix: Bug with The Events Calendar showing blank screen when using Redirect restriction.
    • Fix: Bug where redirect based restrictions failed on The Events Calendar pages.
    • Fix: Typo in order of widget REST API check conditionals.
    Source Diff vs 2.2.4
  20. 2.2.4
    • Fix: Enforced strict versioning in autoload build tool that recently auto updated causing the autoloader to suddenly leak unprefixed classes. This was causing random issues in combination with incompatible autoloading by other plugins.
    Source Diff vs 2.2.3
  21. 2.2.3
    • Fix: Recurssion error with taxonomy queries due to calling setup_post during get_terms query. WooCommerce then setup global $product, which called another taxonomy query, and so on.
    • Fix: Bug when modified WP_Term_Query->terms arrays of ints were passed instead of epxected term objects.
    Source Diff vs 2.2.2
  22. 2.2.2
    • Fix: Bug with new taxonomy query filter. For now this is limited to the REST API only.
    Source Diff vs 2.2.1
  23. 2.2.1
    • Fix: Bug where the plugin had errors on taxonomy pages or queries.
    • Fix: Error when Term query taxonomy arg was not an array.
    Source Diff vs 2.2.0
  24. 2.2.0
    • Feature: Add support for restricing content in the REST API.
    • Feature: Add support for terms in WP term queries.
    • Fix: Nav Menu Link user rule not working properly.
    • Fix: Prevent “Required Upgrade” notices on new installs.
    • Tweak: Only show “Required Upgrade” notices to admins with plugin management permissions.
    • Dev:: Added new field type userselect for choosing users with search.
    Source Diff vs 2.1.0
  25. 2.1.0
    • Improvement: Preloaded plugin settings on admin pages to decrease delay before settings are available to JS. This should help settings not showing up in the editor when first loading the page.
    • Tweak: Changed 'content_control/get_block_control_classes' filter to include the $controls found in the block.
    • Tweak: Various style improvements to admin pages for consistency.
    • Fix: Typo in fetching of taxonomy labels for rule generation. This could have led to rule search results not being shown with proper labels (or empty labels).
    • Fix: Block scanner running for all users, not just admins, triggered AJAX events that were denied every time author entered block editor.
    • Fix: Styling issues with WP 6.4 checkbox changes.

    And 6 more notes.

    Source Diff vs 2.0.12
  26. 2.0.12
    • Fix: Prevent extra 301 redirect due to missing trailing slash on some URLs.
    • Fix: Issue with Custom Message replacement not always working on pages built with Elementor.
    Source Diff vs 2.0.11
  27. 2.0.11
    • Improvement: Query Monitor integration to show which restrictions are active on a page. Shows global settings that may be affecting the page.
    • Shows which restrictions are active on the page.
    • Shows which posts are being filtered out of queries and by which restriction.
    • Tweak: Ensure upgrade stream doesn’t send headers if they were already sent.
    • Tweak: Make second arg on get_the_excerpt filter optional to prevent errors with some plugins.
    • Fix: Bug when using content_control/check_all_restrictions filter that caused rules to not compare properly.
    Source Diff vs 2.0.10
  28. 2.0.10
    • Improvement: If no v1 global restrictions existed, skip the migration step entirely.
    • Improvement: Default to late init of post query filtering until after plugins_loaded should be finished. This should prevent help prevent random errors due to restrictions being checked before plugins have had a chance to register their post types, and thus restrictions won’t properly match those post type rules.
    • Improvement: Add check to prevent restriction checks for WP CLI requests.
    • Improvement: Add notice to indicate is when waiting for post/page search results in the restriction editor fields.
    • Tweak: Fix issue in build that caused autoloader to not fully use optimized classmap, should result in improved performance.
    • Fix: Ensure $wp_rewrite is available before calling is_rest() -> get_rest_url(). This should prevent errors when using the plugin with WP CLI and when plugins make WP_Query calls during plugins_loaded.

    And 3 more notes.

    Source Diff vs 2.0.9
  29. 2.0.9
    • Improvement: Better handling of restriction titles & content. Admins with priv can insert any content into the restriction messages.
    • Improvement: Added new filter content_control/query_filter_init_hook to allow delaying query filtering for compatibility with plugins that make custom queries before template_redirect action. add_filter( 'content_control/query_filter_init_hook', function () { return 'init'; // Try setup_theme, after_theme_setup, init or wp_loaded } );
    • Tweak: Ensure our restriction checks work within a nested post loop.
    • Tweak: Change how restriction title & descriptions were sent/received over Rest API.
    • Fix: Bug that caused some shortcodes to not render properly.
    • Fix: Bug where override message wasn’t used.

    And 1 more note.

    Source Diff vs 2.0.8
  30. 2.0.8
    • Tweak: Ignore many Elementor queries from being restricted.
    • Fix: Error when required upgrade was marked as complete.
    • Fix: Bug that caused secondary queries to be handled like main queries.
    Source Diff vs 2.0.7
  31. 2.0.7
    • Tweak: Only log each unique plugin debug notice once to prevent filling log files quickly.
    • Tweak: Replace usage of wp_upload_dir with wp_get_upload_dir which is more performant.
    • Fix: Error in upgrades when no data is found to migrate.
    • Fix: Error when function is called early & global $wp_query is not yet available.
    • Fix: Conditional check that could always return false.
    • Developer: Implemented PHP Static Analysis to catch more bugs before they happen. Currently clean on lvl 6.
    Source Diff vs 2.0.6
  32. 2.0.6
    • Improvement: Added data backup step to upgrade process that stores json export in the media library.
    • Improvement: Better error handling in the data upgrade process.
    • Fix: Fix bug in data upgrade process that caused it to never finish.
    • Fix: Possible error when no restriction match found in some custom` queries.
    Source Diff vs 2.0.5
  33. 2.0.5
    • Fix: Fix errors on some sites with custom conditions due to registering all rules too early.
    Source Diff vs 2.0.4
  34. 2.0.4
    • Fix: Error when WP Query vars include anonymous function closures.
    Source Diff vs 2.0.3
  35. 2.0.3
    • Fix: Log errors instead of throwing exceptions to prevent uncaught exceptions turning into fatal errors.
    Source Diff vs 2.0.2
  36. 2.0.2
    • Fix: Fatal error from error logger on systems without write access.
    Source Diff vs 2.0.1
  37. 2.0.1
    • Fix: Fatal error from unregistered or unknown rule types from 3rd party plugins/themes or custom code. Now they are logged in plugin settings page.
    Source Diff vs 2.0.0
  38. 2.0.0
    • Feature: Restrict individual blocks in the Gutenberg editor.
    • Feature: Restrict individual blocks in the Full Site Editor.
    • Feature: Use a custom page template for restricted content.
    • Feature: Restrict blocks by device type with customizable breakpoints.
    • Feature: Restrict blocks by user status & role.
    • Feature: Global restrictions now offer more control over how restricted content is handled. Choose to redirect or replace content with a custom page.

    And 7 more notes.

    Source Diff vs 1.1.10
  39. 1.1.10
    • Security: Fix unescaped output for CSS classname in the [contentcontrol] shortcode allowing users with the ability to edit posts to inject code into the page.
    Source Diff vs 1.1.8
  40. 1.1.8
    • Fix: Error when Elementor instance preview proptery was null.
    Source Diff vs 1.1.7
  41. 1.1.7
    • Fix: Prevent warning if widget settings don’t exist in options table.
    • Fix: Arbitrary limit of 10 on current items listed in Restriction Editor due to WP query default args.
    • Fix: Prevent restrictions from activating when using the Elementor page builder.
    Source Diff vs 1.1.6
  42. 1.1.6
    • Fix: Nonce validation was preventing 3rd party plugin from saving widget settings when it failed. Thanks @jacobmischka
    • Fix: Prevent corrupted options from preventing saving of settings.
    Source Diff vs 1.1.5
  43. 1.1.5
    • Fix: Issue where roles with - would not save when checked.
    Source Diff vs 1.1.4
  44. 1.1.4
    • Improvement: Added gettext handling for several strings that were not translatable.
    • Tweak: Process shortcodes in default denial message contents.
    • Tweak: Various improvements in form reliability & user experience.
    • Fix: Issues with ajax search fields not retaining their values after save.
    • Fix: Issue where only would show 10 pages.
    • Fix: PHP 7.4 compatibility fixes.
    Source Diff vs 1.1.3
  45. 1.1.3
    • Fix: Custom post type conditions were not always registered.
    Source Diff vs 1.1.2
  46. 1.1.2
    • Tweak: Remove erroneous console.log messages in admin.
    • Fix: Fatal error when empty shortcode used.
    Source Diff vs 1.1.1
  47. 1.1.1
    • Fix: Bugs where variables were not always the expected type.
    Source Diff vs 1.1.0
  48. 1.1.0
    • Improvement: Added default denial message to shortcode.
    • Improvement: Render nested shortcodes in the [content_control] shortcode.
    • Fix: Bug where multiple roles checked together in restriction editor.
    Source Diff vs 1.0.3
  49. 1.0.3
    • Fix: Minor notice on activation.
    Source Diff vs 1.0.2
  50. 1.0.2
    • Fix: Call to undefined function.
    Source Diff vs 1.0.1
  51. 1.0.1
    • Fix: Non static method called statically
    • Fix: Bug when using invalid variable type.
    Source Diff vs 1.0.0
  52. 1.0.0
    • Initial Release
    Source