PluginProbe
User Access Manager / 2.3.2
User Access Manager v2.3.2
2.3.20 2.3.19 2.3.18 2.3.17 2.3.16 2.3.15 2.3.14 2.3.13 trunk 0.6 0.6.1 0.6.2 0.7 0.7 Beta 0.7.0.1 0.8 0.8.0.1 0.8.0.2 0.9 0.9.1 0.9.1.1 0.9.1.2 0.9.1.3 0.9.1.4 1.0 All 136 releases
← All changes | src/UserAccessManager.php +1 -17 2.3.142.3.2 View file →
@@ -31,9 +31,9 @@
31 31 use UserAccessManager\Wrapper\Wordpress;
32 32
33 33 class UserAccessManager
34 34 {
35 - public const VERSION = '2.3.14';
35 + public const VERSION = '2.3.2';
36 36 public const DB_VERSION = '1.6.2';
37 37
38 38 public function __construct(
39 39 private Php $php,
@@ -468,24 +468,8 @@
468 468 $this->wordpress->addFilter('edit_post_link', [$frontendPostController, 'showEditLink'], 10, 2);
469 469 $this->wordpress->addFilter('parse_query', [$frontendPostController, 'parseQuery']);
470 470 $this->wordpress->addFilter('getarchives_where', [$frontendPostController, 'showPostSql']);
471 471 $this->wordpress->addFilter('wp_count_posts', [$frontendPostController, 'showPostCount'], 10, 3);
472 -
473 - // Registered on rest_api_init so that all REST-enabled post types are known.
474 - $this->wordpress->addAction('rest_api_init', function () use ($frontendPostController) {
475 - foreach ((array) $this->objectHandler->getPostTypes() as $postType) {
476 - $this->wordpress->addFilter(
477 - "rest_prepare_$postType",
478 - [$frontendPostController, 'restrictRestResponse'],
479 - 10,
480 - 3
481 - );
482 - $this->wordpress->addFilter(
483 - "rest_{$postType}_query",
484 - [$frontendPostController, 'excludeRestrictedPostsFromRestQuery']
485 - );
486 - }
487 - });
488 472
489 473 // Short code controller
490 474 $frontendShortCodeController = $this->controllerFactory->createFrontendShortCodeController();
491 475