Ticket #41167: 41167.2.patch
File 41167.2.patch, 12.7 KB (added by , 8 years ago) |
---|
-
src/wp-admin/network/site-info.php
14 14 wp_die( __( 'Sorry, you are not allowed to edit this site.' ) ); 15 15 } 16 16 17 get_current_screen()->add_help_tab( array( 18 'id' => 'overview', 19 'title' => __( 'Overview' ), 20 'content' => 21 '<p>' . __( 'The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.' ) . '</p>' . 22 '<p>' . __( '<strong>Info</strong> — The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network admins can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.' ) . '</p>' . 23 '<p>' . __( '<strong>Users</strong> — This displays the users associated with this site. You can also change their role, reset their password, or remove them from the site. Removing the user from the site does not remove the user from the network.' ) . '</p>' . 24 '<p>' . sprintf( __( '<strong>Themes</strong> — This area shows themes that are not already enabled across the network. Enabling a theme in this menu makes it accessible to this site. It does not activate the theme, but allows it to show in the site’s Appearance menu. To enable a theme for the entire network, see the <a href="%s">Network Themes</a> screen.' ), network_admin_url( 'themes.php' ) ) . '</p>' . 25 '<p>' . __( '<strong>Settings</strong> — This page shows a list of all settings associated with this site. Some are created by WordPress and others are created by plugins you activate. Note that some fields are grayed out and say Serialized Data. You cannot modify these values due to the way the setting is stored in the database.' ) . '</p>' 26 ) ); 17 get_current_screen()->add_help_tab( get_site_screen_help_tab_args() ); 27 18 28 get_current_screen()->set_help_sidebar( 29 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 30 '<p>' . __( '<a href="https://codex.wordpress.org/Network_Admin_Sites_Screen">Documentation on Site Management</a>' ) . '</p>' . 31 '<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support Forums</a>' ) . '</p>' 32 ); 19 get_current_screen()->set_help_sidebar( get_site_screen_help_sidebar_content() ); 33 20 34 21 $id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0; 35 22 -
src/wp-admin/network/site-settings.php
13 13 if ( ! current_user_can( 'manage_sites' ) ) 14 14 wp_die( __( 'Sorry, you are not allowed to edit this site.' ) ); 15 15 16 get_current_screen()->add_help_tab( array( 17 'id' => 'overview', 18 'title' => __('Overview'), 19 'content' => 20 '<p>' . __('The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.') . '</p>' . 21 '<p>' . __('<strong>Info</strong> — The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network admins can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.') . '</p>' . 22 '<p>' . __('<strong>Users</strong> — This displays the users associated with this site. You can also change their role, reset their password, or remove them from the site. Removing the user from the site does not remove the user from the network.') . '</p>' . 23 '<p>' . sprintf( __('<strong>Themes</strong> — This area shows themes that are not already enabled across the network. Enabling a theme in this menu makes it accessible to this site. It does not activate the theme, but allows it to show in the site’s Appearance menu. To enable a theme for the entire network, see the <a href="%s">Network Themes</a> screen.' ), network_admin_url( 'themes.php' ) ) . '</p>' . 24 '<p>' . __('<strong>Settings</strong> — This page shows a list of all settings associated with this site. Some are created by WordPress and others are created by plugins you activate. Note that some fields are grayed out and say Serialized Data. You cannot modify these values due to the way the setting is stored in the database.') . '</p>' 25 ) ); 16 get_current_screen()->add_help_tab( get_site_screen_help_tab_args() ); 26 17 27 get_current_screen()->set_help_sidebar( 28 '<p><strong>' . __('For more information:') . '</strong></p>' . 29 '<p>' . __('<a href="https://codex.wordpress.org/Network_Admin_Sites_Screen">Documentation on Site Management</a>') . '</p>' . 30 '<p>' . __('<a href="https://wordpress.org/support/forum/multisite/">Support Forums</a>') . '</p>' 31 ); 18 get_current_screen()->set_help_sidebar( get_site_screen_help_sidebar_content() ); 32 19 33 20 $id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0; 34 21 -
src/wp-admin/network/site-themes.php
13 13 if ( ! current_user_can( 'manage_sites' ) ) 14 14 wp_die( __( 'Sorry, you are not allowed to manage themes for this site.' ) ); 15 15 16 get_current_screen()->add_help_tab( array( 17 'id' => 'overview', 18 'title' => __('Overview'), 19 'content' => 20 '<p>' . __('The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.') . '</p>' . 21 '<p>' . __('<strong>Info</strong> — The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network admins can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.') . '</p>' . 22 '<p>' . __('<strong>Users</strong> — This displays the users associated with this site. You can also change their role, reset their password, or remove them from the site. Removing the user from the site does not remove the user from the network.') . '</p>' . 23 '<p>' . sprintf( __('<strong>Themes</strong> — This area shows themes that are not already enabled across the network. Enabling a theme in this menu makes it accessible to this site. It does not activate the theme, but allows it to show in the site’s Appearance menu. To enable a theme for the entire network, see the <a href="%s">Network Themes</a> screen.' ), network_admin_url( 'themes.php' ) ) . '</p>' . 24 '<p>' . __('<strong>Settings</strong> — This page shows a list of all settings associated with this site. Some are created by WordPress and others are created by plugins you activate. Note that some fields are grayed out and say Serialized Data. You cannot modify these values due to the way the setting is stored in the database.') . '</p>' 25 ) ); 16 get_current_screen()->add_help_tab( get_site_screen_help_tab_args() ); 26 17 27 get_current_screen()->set_help_sidebar( 28 '<p><strong>' . __('For more information:') . '</strong></p>' . 29 '<p>' . __('<a href="https://codex.wordpress.org/Network_Admin_Sites_Screen">Documentation on Site Management</a>') . '</p>' . 30 '<p>' . __('<a href="https://wordpress.org/support/forum/multisite/">Support Forums</a>') . '</p>' 31 ); 18 get_current_screen()->set_help_sidebar( get_site_screen_help_sidebar_content() ); 32 19 33 20 get_current_screen()->set_screen_reader_content( array( 34 21 'heading_views' => __( 'Filter site themes list' ), -
src/wp-admin/network/site-users.php
16 16 $wp_list_table = _get_list_table('WP_Users_List_Table'); 17 17 $wp_list_table->prepare_items(); 18 18 19 get_current_screen()->add_help_tab( array( 20 'id' => 'overview', 21 'title' => __('Overview'), 22 'content' => 23 '<p>' . __('The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.') . '</p>' . 24 '<p>' . __('<strong>Info</strong> — The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network admins can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.') . '</p>' . 25 '<p>' . __('<strong>Users</strong> — This displays the users associated with this site. You can also change their role, reset their password, or remove them from the site. Removing the user from the site does not remove the user from the network.') . '</p>' . 26 '<p>' . sprintf( __('<strong>Themes</strong> — This area shows themes that are not already enabled across the network. Enabling a theme in this menu makes it accessible to this site. It does not activate the theme, but allows it to show in the site’s Appearance menu. To enable a theme for the entire network, see the <a href="%s">Network Themes</a> screen.' ), network_admin_url( 'themes.php' ) ) . '</p>' . 27 '<p>' . __('<strong>Settings</strong> — This page shows a list of all settings associated with this site. Some are created by WordPress and others are created by plugins you activate. Note that some fields are grayed out and say Serialized Data. You cannot modify these values due to the way the setting is stored in the database.') . '</p>' 28 ) ); 19 get_current_screen()->add_help_tab( get_site_screen_help_tab_args() ); 29 20 30 get_current_screen()->set_help_sidebar( 31 '<p><strong>' . __('For more information:') . '</strong></p>' . 32 '<p>' . __('<a href="https://codex.wordpress.org/Network_Admin_Sites_Screen">Documentation on Site Management</a>') . '</p>' . 33 '<p>' . __('<a href="https://wordpress.org/support/forum/multisite/">Support Forums</a>') . '</p>' 34 ); 21 get_current_screen()->set_help_sidebar( get_site_screen_help_sidebar_content() ); 35 22 36 23 get_current_screen()->set_screen_reader_content( array( 37 24 'heading_views' => __( 'Filter site users list' ), -
src/wp-includes/ms-functions.php
2557 2557 */ 2558 2558 return apply_filters( 'subdirectory_reserved_names', $names ); 2559 2559 } 2560 2561 /** 2562 * Retrieves an array of help tab arguments suitable for site edit screens 2563 * e.g. site-info.php, site-users.php, site-themes.php, site-settings.php 2564 * 2565 * @return array $args 2566 */ 2567 function get_site_screen_help_tab_args() { 2568 return array( 2569 'id' => 'overview', 2570 'title' => __( 'Overview' ), 2571 'content' => 2572 '<p>' . __( 'The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.' ) . '</p>' . 2573 '<p>' . __( '<strong>Info</strong> — The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network admins can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.' ) . '</p>' . 2574 '<p>' . __( '<strong>Users</strong> — This displays the users associated with this site. You can also change their role, reset their password, or remove them from the site. Removing the user from the site does not remove the user from the network.' ) . '</p>' . 2575 '<p>' . sprintf( __( '<strong>Themes</strong> — This area shows themes that are not already enabled across the network. Enabling a theme in this menu makes it accessible to this site. It does not activate the theme, but allows it to show in the site’s Appearance menu. To enable a theme for the entire network, see the <a href="%s">Network Themes</a> screen.' ), network_admin_url( 'themes.php' ) ) . '</p>' . 2576 '<p>' . __( '<strong>Settings</strong> — This page shows a list of all settings associated with this site. Some are created by WordPress and others are created by plugins you activate. Note that some fields are grayed out and say Serialized Data. You cannot modify these values due to the way the setting is stored in the database.' ) . '</p>' 2577 ); 2578 } 2579 2580 /** 2581 * Retrieves help sidebar text suitable for site edit screens 2582 * e.g. site-info.php, site-users.php, site-themes.php, site-settings.php 2583 * 2584 * @return string $content 2585 */ 2586 function get_site_screen_help_sidebar_content() { 2587 return '<p><strong>' . __('For more information:') . '</strong></p>' . 2588 '<p>' . __('<a href="https://codex.wordpress.org/Network_Admin_Sites_Screen">Documentation on Site Management</a>') . '</p>' . 2589 '<p>' . __('<a href="https://wordpress.org/support/forum/multisite/">Support Forums</a>') . '</p>'; 2590 }