diff --git a/wp-includes/class-wp-customize-setting.php b/wp-includes/class-wp-customize-setting.php
index c952a269e4..47e9e5c419 100644
--- a/wp-includes/class-wp-customize-setting.php
+++ b/wp-includes/class-wp-customize-setting.php
@@ -382,6 +382,21 @@ class WP_Customize_Setting {
%s %s',
+ $this->label,
+ wp_dropdown_pages(
+ array(
+ 'name' => $this->get_name(),
+ 'echo' => 0,
+ 'show_option_none' => __( '— Select —' ),
+ 'option_none_value' => '0',
+ 'selected' => get_option( $this->id )
+ )
+ )
+ );
+ break;
}
}
diff --git a/wp-includes/class-wp-customize.php b/wp-includes/class-wp-customize.php
index 60dd9cc659..5b64d76444 100644
--- a/wp-includes/class-wp-customize.php
+++ b/wp-includes/class-wp-customize.php
@@ -672,21 +672,3 @@ function sanitize_hexcolor( $color ) {
return $color;
}
-
-// Custome render type for a dropdown menu.
-function customize_control_dropdown_pages( $setting ) {
- printf(
- '',
- $setting->label,
- wp_dropdown_pages(
- array(
- 'name' => $setting->get_name(),
- 'echo' => 0,
- 'show_option_none' => __( '— Select —' ),
- 'option_none_value' => '0',
- 'selected' => get_option( $setting->id )
- )
- )
- );
-}
-add_action( 'customize_render_control-dropdown-pages', 'customize_control_dropdown_pages' );