Add missing access modifiers to methods/members in `WP_Customize_*`.
See #27881, #22234. Built from https://develop.svn.wordpress.org/trunk@28509 git-svn-id: http://core.svn.wordpress.org/trunk@28335 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4938497b3a
commit
3c209b6f56
|
@ -87,7 +87,7 @@ class WP_Customize_Control {
|
|||
* @param string $id
|
||||
* @param array $args
|
||||
*/
|
||||
function __construct( $manager, $id, $args = array() ) {
|
||||
public function __construct( $manager, $id, $args = array() ) {
|
||||
$keys = array_keys( get_object_vars( $this ) );
|
||||
foreach ( $keys as $key ) {
|
||||
if ( isset( $args[ $key ] ) )
|
||||
|
|
|
@ -190,7 +190,7 @@ final class WP_Customize_Manager {
|
|||
*
|
||||
* @since 3.4.0
|
||||
*/
|
||||
function after_setup_theme() {
|
||||
public function after_setup_theme() {
|
||||
if ( ! $this->doing_ajax() && ! validate_current_theme() ) {
|
||||
wp_redirect( 'themes.php?broken=true' );
|
||||
exit;
|
||||
|
|
|
@ -93,7 +93,7 @@ class WP_Customize_Section {
|
|||
* @param string $id An specific ID of the section.
|
||||
* @param array $args Section arguments.
|
||||
*/
|
||||
function __construct( $manager, $id, $args = array() ) {
|
||||
public function __construct( $manager, $id, $args = array() ) {
|
||||
$keys = array_keys( get_class_vars( __CLASS__ ) );
|
||||
foreach ( $keys as $key ) {
|
||||
if ( isset( $args[ $key ] ) )
|
||||
|
|
|
@ -75,7 +75,7 @@ class WP_Customize_Setting {
|
|||
* @param array $args Setting arguments.
|
||||
* @return WP_Customize_Setting $setting
|
||||
*/
|
||||
function __construct( $manager, $id, $args = array() ) {
|
||||
public function __construct( $manager, $id, $args = array() ) {
|
||||
$keys = array_keys( get_class_vars( __CLASS__ ) );
|
||||
foreach ( $keys as $key ) {
|
||||
if ( isset( $args[ $key ] ) )
|
||||
|
|
Loading…
Reference in New Issue