Changeset 3442051
- Timestamp:
- 01/18/2026 06:13:22 PM (2 months ago)
- Location:
- admin-menu-editor/trunk/modules/content-permissions
- Files:
-
- 3 edited
-
content-permissions.php (modified) (3 diffs)
-
editor-ui.php (modified) (1 diff)
-
policy.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
admin-menu-editor/trunk/modules/content-permissions/content-permissions.php
r3442047 r3442051 18 18 19 19 private $metaBoxUiScript = null; 20 21 private bool $termPermissionsEnabled = false; //Disabled because the feature is not finished. 20 22 21 23 public function __construct($menuEditor) { … … 255 257 } 256 258 259 public function areTermPermissionsEnabled(): bool { 260 return $this->termPermissionsEnabled; 261 } 262 257 263 public function isSuitableForExport() { 258 264 return false; … … 739 745 if ( 740 746 ($depth === 0) 747 && $this->module->areTermPermissionsEnabled() 741 748 && !empty(self::POST_TO_TERM_ACTION_MAP[$action->getName()]) 742 749 ) { -
admin-menu-editor/trunk/modules/content-permissions/editor-ui.php
r3442047 r3442051 65 65 add_action($hook, [$this, 'addBoxHooks']); 66 66 } 67 foreach (['load-term.php', 'load-edit-tags.php' /* <- only for saving */] as $hook) { 68 add_action($hook, [$this, 'addTermUiHooks']); 67 68 if ( $module->areTermPermissionsEnabled() ) { 69 foreach (['load-term.php', 'load-edit-tags.php' /* <- only for saving */] as $hook) { 70 add_action($hook, [$this, 'addTermUiHooks']); 71 } 69 72 } 70 73 } -
admin-menu-editor/trunk/modules/content-permissions/policy.php
r3442047 r3442051 714 714 )); 715 715 //todo: Should disabling this also prevent the term itself from appearing in the term list? 716 // How does PublishPress handle this?We probably don't want too many granular options here.716 // We probably don't want too many granular options here. 717 717 $this->addAction(new Action( 718 718 self::ACTION_VIEW_ASSOCIATED_OBJECTS_IN_LISTS,
Note: See TracChangeset
for help on using the changeset viewer.