diff --git a/modules/presspermit-collaboration/classes/Permissions/Collab/NavMenus.php b/modules/presspermit-collaboration/classes/Permissions/Collab/NavMenus.php index bca05f7e..74500d31 100644 --- a/modules/presspermit-collaboration/classes/Permissions/Collab/NavMenus.php +++ b/modules/presspermit-collaboration/classes/Permissions/Collab/NavMenus.php @@ -10,7 +10,12 @@ function __construct() { add_filter('get_user_option_nav_menu_recently_edited', [$this, 'fltNavMenuRecent']); add_filter('pre_update_option_nav_menu_options', [$this, 'fltUpdateNavMenuOptions'], 10, 2); - add_filter('update_post_metadata', [$this, 'fltUpdateNavMenuItemParent'], 10, 5); + + if (!defined('PP_NAV_MENU_DISABLE_POSTMETA_FILTER') && (!class_exists('NestedPages') || defined('PP_NAV_MENU_ENABLE_POSTMETA_FILTER'))) { + add_filter('update_post_metadata', [$this, 'fltUpdateNavMenuItemParent'], 10, 5); + } + + do_action('presspermit_nav_menu_filters'); } public function fltNavMenuRecent($opt) diff --git a/press-permit-core.php b/press-permit-core.php index 1ac5a0a8..20a49361 100644 --- a/press-permit-core.php +++ b/press-permit-core.php @@ -5,7 +5,7 @@ * Description: Advanced yet accessible content permissions. Give users or groups type-specific roles. Enable or block access for specific posts or terms. * Author: PublishPress * Author URI: https://publishpress.com/ - * Version: 3.1.4-beta + * Version: 3.1.4 * Text Domain: press-permit-core * Domain Path: /languages/ * Min WP Version: 4.9.7 @@ -91,7 +91,7 @@ function() return; } - define('PRESSPERMIT_VERSION', '3.1.4-beta'); + define('PRESSPERMIT_VERSION', '3.1.4'); require_once(__DIR__ . '/includes/Core.php'); new \PublishPress\Permissions\Core(); diff --git a/readme.txt b/readme.txt index 2a37c310..a3bb5b41 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: restrict, access, permissions, cms, user, private, category, pages, privac Requires at least: 4.9.7 Tested up to: 5.4 Requires PHP: 5.6.20 -Stable tag: 3.1.2 +Stable tag: 3.1.4 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -123,13 +123,14 @@ PublishPress Permissions creates and uses the following tables: pp_groups, pp_gr == Upgrade Notice == -= 3.1.3 = += 3.1.4 = Press Permit Core + PP extension users: download PublishPress Permissions Pro from publishpress.com instead of upgrading to this version. == Changelog == -= 3.1.4-beta = += 3.1.4 - 23 Apr 2020 = * Compat : PublishPress Revisions - Support suppression of Permissions metaboxes on Edit Revision screen +* Compat : Nested Pages - Error on Nav Menu edit = 3.1.3 - 6 Apr 2020 = * Fixed : Possible fatal error loading Permissions screens on a small percentage of installations