From b523c3d597af92e058d639fb1f8650dcabcb52f0 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sat, 15 Sep 2012 19:49:21 +0000 Subject: [PATCH] Rename duplicately defined internal functions (add_js, display_header) for documentation purposes. props bpetty, fixes #21564. git-svn-id: http://core.svn.wordpress.org/trunk@21856 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/export.php | 4 ++-- wp-admin/options-general.php | 4 ++-- wp-admin/options-permalink.php | 4 ++-- wp-admin/options-reading.php | 4 ++-- wp-admin/setup-config.php | 12 ++++++------ 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/wp-admin/export.php b/wp-admin/export.php index eaf76fc751..236007bf38 100644 --- a/wp-admin/export.php +++ b/wp-admin/export.php @@ -16,7 +16,7 @@ if ( !current_user_can('export') ) require_once('./includes/export.php'); $title = __('Export'); -function add_js() { +function export_add_js() { ?> add_help_tab( array( 'id' => 'overview', diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index d8a8b805ff..abfc272ac0 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -23,7 +23,7 @@ $timezone_format = _x('Y-m-d G:i:s', 'timezone date format'); * @package WordPress * @subpackage General_Settings_Screen */ -function add_js() { +function options_general_add_js() { ?> ' . __('The fields on this screen determine some of the basics of your site setup.') . '

' . '

' . __('Most themes display the site title at the top of every page, in the title bar of the browser, and as the identifying name for syndicated feeds. The tagline is also displayed by many themes.') . '

'; diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php index 9ccb62f263..d4adae98fc 100644 --- a/wp-admin/options-permalink.php +++ b/wp-admin/options-permalink.php @@ -52,7 +52,7 @@ get_current_screen()->set_help_sidebar( * @package WordPress * @subpackage Permalink_Settings_Screen */ -function add_js() { +function options_permalink_add_js() { ?> add_help_tab( array( 'id' => 'overview', diff --git a/wp-admin/setup-config.php b/wp-admin/setup-config.php index 5bf19ad1ce..b533902d43 100644 --- a/wp-admin/setup-config.php +++ b/wp-admin/setup-config.php @@ -85,7 +85,7 @@ $step = isset( $_GET['step'] ) ? (int) $_GET['step'] : 0; * @package WordPress * @subpackage Installer_WP_Config */ -function display_header() { +function setup_config_display_header() { global $wp_version; header( 'Content-Type: text/html; charset=utf-8' ); @@ -101,11 +101,11 @@ function display_header() { >

WordPress

@@ -124,7 +124,7 @@ switch($step) { break; case 1: - display_header(); + setup_config_display_header(); ?>

@@ -254,7 +254,7 @@ switch($step) { unset( $line ); if ( ! is_writable(ABSPATH) ) : - display_header(); + setup_config_display_header(); ?>

wp-config.php file." ); ?>

wp-config.php manually and paste the following text into it.' ); ?>

@@ -273,7 +273,7 @@ switch($step) { } fclose($handle); chmod(ABSPATH . 'wp-config.php', 0666); - display_header(); + setup_config_display_header(); ?>