Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced all capabilities to manage_options #10

Merged
merged 1 commit into from
Jun 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Taxonomy_Switcher_UI.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function add_page() {
$this->admin_title = esc_html__( 'Taxonomy Switcher', 'wds' );
$this->admin_slug = 'taxonomy-switcher';

$this->options_page = add_management_page( $this->admin_title, $this->admin_title, 'manage_categories', $this->admin_slug, [
$this->options_page = add_management_page( $this->admin_title, $this->admin_title, 'manage_options', $this->admin_slug, [
$this,
'do_page',
] );
Expand Down
2 changes: 1 addition & 1 deletion taxonomy-switcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function taxonomy_switcher_init() {
if (
! isset( $_GET[ 'taxonomy_switcher' ] )
|| 1 != $_GET[ 'taxonomy_switcher' ]
|| ! current_user_can( 'manage_categories' )
|| ! current_user_can( 'manage_options' )
|| ! isset( $_GET[ 'from_tax' ] )
|| empty( $_GET[ 'from_tax' ] )
|| ! isset( $_GET[ 'to_tax' ] )
Expand Down