Skip to content

Add new functions for enabling site theme in multisite#4055

Open
Mahjouba91 wants to merge 8 commits intoWordPress:trunkfrom
Mahjouba91:43728
Open

Add new functions for enabling site theme in multisite#4055
Mahjouba91 wants to merge 8 commits intoWordPress:trunkfrom
Mahjouba91:43728

Conversation

@Mahjouba91
Copy link

Implementing methods WP_Theme::site_enable_theme( $stylesheets, $site_id ) and WP_Theme::site_disable_theme( $stylesheets, $site_id ).

Trac ticket:


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

$stylesheets = array( $stylesheets );
}

$current_site_id = get_current_blog_id();
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line should probably inside the if statement next line, to only get called when site id is not given.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant