diff --git a/src/wp-admin/includes/admin.php b/src/wp-admin/includes/admin.php index 64a0ded744..3cd47fee86 100644 --- a/src/wp-admin/includes/admin.php +++ b/src/wp-admin/includes/admin.php @@ -39,6 +39,9 @@ require_once(ABSPATH . 'wp-admin/includes/import.php'); /** WordPress Misc Administration API */ require_once(ABSPATH . 'wp-admin/includes/misc.php'); +/** WordPress Options Administration API */ +require_once(ABSPATH . 'wp-admin/includes/options.php'); + /** WordPress Plugin Administration API */ require_once(ABSPATH . 'wp-admin/includes/plugin.php'); diff --git a/src/wp-admin/includes/options.php b/src/wp-admin/includes/options.php new file mode 100644 index 0000000000..f0fab455ff --- /dev/null +++ b/src/wp-admin/includes/options.php @@ -0,0 +1,141 @@ + + + + + + + + +'; + echo '
' . __( 'The character encoding of your site (UTF-8 is recommended)' ) . '
'; +} \ No newline at end of file diff --git a/src/wp-admin/options-discussion.php b/src/wp-admin/options-discussion.php index d55b7fcc0e..4ba8be9830 100644 --- a/src/wp-admin/options-discussion.php +++ b/src/wp-admin/options-discussion.php @@ -14,24 +14,6 @@ if ( ! current_user_can( 'manage_options' ) ) $title = __('Discussion Settings'); $parent_file = 'options-general.php'; -/** - * Output JavaScript to toggle display of additional settings if avatars are disabled. - * - * @since 4.2.0 - */ -function options_discussion_add_js() { -?> - -add_help_tab( array( diff --git a/src/wp-admin/options-general.php b/src/wp-admin/options-general.php index cbb7d2f64c..e0e5e5f95e 100644 --- a/src/wp-admin/options-general.php +++ b/src/wp-admin/options-general.php @@ -20,65 +20,6 @@ $parent_file = 'options-general.php'; /* translators: date and time format for exact current time, mainly about timezones, see http://php.net/date */ $timezone_format = _x('Y-m-d H:i:s', 'timezone date format'); -/** - * Display JavaScript on the page. - * - * @since 3.5.0 - */ -function options_general_add_js() { -?> - -' . __('The fields on this screen determine some of the basics of your site setup.') . '' . diff --git a/src/wp-admin/options-permalink.php b/src/wp-admin/options-permalink.php index 0f30556db9..7af1e98a22 100644 --- a/src/wp-admin/options-permalink.php +++ b/src/wp-admin/options-permalink.php @@ -46,27 +46,6 @@ get_current_screen()->set_help_sidebar( '' . __('Support Forums') . '
' ); -/** - * Display JavaScript on the page. - * - * @since 3.5.0 - */ -function options_permalink_add_js() { - ?> - - - -'; - echo '' . __( 'The character encoding of your site (UTF-8 is recommended)' ) . '
'; -} - get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __('Overview'),