mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 18:24:31 +00:00
Use one space, not two, after trailing punctuation. fixes #19537
git-svn-id: https://develop.svn.wordpress.org/trunk@19593 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -985,8 +985,8 @@ function add_submenu_page( $parent_slug, $page_title, $menu_title, $capability,
|
||||
}
|
||||
|
||||
// If the parent doesn't already have a submenu, add a link to the parent
|
||||
// as the first item in the submenu. If the submenu file is the same as the
|
||||
// parent file someone is trying to link back to the parent manually. In
|
||||
// as the first item in the submenu. If the submenu file is the same as the
|
||||
// parent file someone is trying to link back to the parent manually. In
|
||||
// this case, don't automatically add a link back to avoid duplication.
|
||||
if (!isset( $submenu[$parent_slug] ) && $menu_slug != $parent_slug ) {
|
||||
foreach ( (array)$menu as $parent_menu ) {
|
||||
@@ -1002,7 +1002,7 @@ function add_submenu_page( $parent_slug, $page_title, $menu_title, $capability,
|
||||
add_action( $hookname, $function );
|
||||
|
||||
$_registered_pages[$hookname] = true;
|
||||
// backwards-compatibility for plugins using add_management page. See wp-admin/admin.php for redirect from edit.php to tools.php
|
||||
// backwards-compatibility for plugins using add_management page. See wp-admin/admin.php for redirect from edit.php to tools.php
|
||||
if ( 'tools.php' == $parent_slug )
|
||||
$_registered_pages[get_plugin_page_hookname( $menu_slug, 'edit.php')] = true;
|
||||
|
||||
@@ -1589,7 +1589,7 @@ function user_can_access_admin_page() {
|
||||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
* @param string $option_group A settings group name. Should correspond to a whitelisted option key name.
|
||||
* @param string $option_group A settings group name. Should correspond to a whitelisted option key name.
|
||||
* Default whitelisted option key names include "general," "discussion," and "reading," among others.
|
||||
* @param string $option_name The name of an option to sanitize and save.
|
||||
* @param unknown_type $sanitize_callback A callback function that sanitizes the option's value.
|
||||
@@ -1715,7 +1715,7 @@ function remove_option_whitelist( $del_options, $options = '' ) {
|
||||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
* @param string $option_group A settings group name. This should match the group name used in register_setting().
|
||||
* @param string $option_group A settings group name. This should match the group name used in register_setting().
|
||||
*/
|
||||
function settings_fields($option_group) {
|
||||
echo "<input type='hidden' name='option_page' value='" . esc_attr($option_group) . "' />";
|
||||
|
||||
Reference in New Issue
Block a user