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

fix: solve customizer permissions on multisites #4033 #4034

Merged
Merged
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
7 changes: 3 additions & 4 deletions inc/admin/dashboard/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public function register() {
[ $this, 'render' ]
);

$this->copy_customizer_page( $theme_page, $capability );
$this->copy_customizer_page( $theme_page );

if ( ! defined( 'NEVE_PRO_VERSION' ) || 'valid' !== apply_filters( 'product_neve_license_status', false ) ) {
// Add Custom Layout submenu for upsell.
Expand All @@ -235,11 +235,10 @@ public function register() {
* Copy the customizer page to the dashboard.
*
* @param string $theme_page The theme page slug.
* @param string $capability The capability required to view the page.
*
* @return void
*/
private function copy_customizer_page( $theme_page, $capability ) {
private function copy_customizer_page( $theme_page ) {
global $submenu;
if ( ! isset( $submenu['themes.php'] ) ) {
return;
Expand Down Expand Up @@ -267,7 +266,7 @@ private function copy_customizer_page( $theme_page, $capability ) {
$theme_page,
$customizer_menu_item[0],
$customizer_menu_item[0],
$capability,
'manage_options',
'customize.php'
);
}
Expand Down
Loading