Ticket #47125: 47125-patch.3.diff
File 47125-patch.3.diff, 6.3 KB (added by , 13 months ago) |
---|
-
src/wp-admin/menu.php
66 66 $menu[10] = array( __( 'Media' ), 'upload_files', 'upload.php', '', 'menu-top menu-icon-media', 'menu-media', 'dashicons-admin-media' ); 67 67 $submenu['upload.php'][5] = array( __( 'Library' ), 'upload_files', 'upload.php' ); 68 68 /* translators: Add new file. */ 69 $submenu['upload.php'][10] = array( _ x( 'Add New', 'file' ), 'upload_files', 'media-new.php' );69 $submenu['upload.php'][10] = array( __( 'Add New Media File' ), 'upload_files', 'media-new.php' ); 70 70 $i = 15; 71 71 foreach ( get_taxonomies_for_attachments( 'objects' ) as $tax ) { 72 72 if ( ! $tax->show_ui || ! $tax->show_in_menu ) { … … 80 80 $menu[15] = array( __( 'Links' ), 'manage_links', 'link-manager.php', '', 'menu-top menu-icon-links', 'menu-links', 'dashicons-admin-links' ); 81 81 $submenu['link-manager.php'][5] = array( _x( 'All Links', 'admin menu' ), 'manage_links', 'link-manager.php' ); 82 82 /* translators: Add new links. */ 83 $submenu['link-manager.php'][10] = array( _ x( 'Add New', 'link' ), 'manage_links', 'link-add.php' );83 $submenu['link-manager.php'][10] = array( __( 'Add New Link' ), 'manage_links', 'link-add.php' ); 84 84 $submenu['link-manager.php'][15] = array( __( 'Link Categories' ), 'manage_categories', 'edit-tags.php?taxonomy=link_category' ); 85 85 86 86 // $menu[20] = Pages. … … 305 305 306 306 if ( ! is_multisite() ) { 307 307 /* translators: Add new plugin. */ 308 $submenu['plugins.php'][10] = array( _ x( 'Add New', 'plugin' ), 'install_plugins', 'plugin-install.php' );308 $submenu['plugins.php'][10] = array( __( 'Add New Plugin' ), 'install_plugins', 'plugin-install.php' ); 309 309 if ( wp_is_block_theme() ) { 310 310 // Place the menu item below the Theme File Editor menu item. 311 311 add_action( 'admin_menu', '_add_plugin_file_editor_to_tools', 101 ); … … 326 326 $_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php. 327 327 $submenu['users.php'][5] = array( __( 'All Users' ), 'list_users', 'users.php' ); 328 328 if ( current_user_can( 'create_users' ) ) { 329 $submenu['users.php'][10] = array( _ x( 'Add New', 'user' ), 'create_users', 'user-new.php' );329 $submenu['users.php'][10] = array( __( 'Add New User' ), 'create_users', 'user-new.php' ); 330 330 } elseif ( is_multisite() ) { 331 $submenu['users.php'][10] = array( _ x( 'Add New', 'user' ), 'promote_users', 'user-new.php' );331 $submenu['users.php'][10] = array( __( 'Add New User' ), 'promote_users', 'user-new.php' ); 332 332 } 333 333 334 334 $submenu['users.php'][15] = array( __( 'Profile' ), 'read', 'profile.php' ); -
src/wp-admin/network/menu.php
50 50 /* translators: Sites menu item. */ 51 51 $menu[5] = array( __( 'Sites' ), 'manage_sites', 'sites.php', '', 'menu-top menu-icon-site', 'menu-site', 'dashicons-admin-multisite' ); 52 52 $submenu['sites.php'][5] = array( __( 'All Sites' ), 'manage_sites', 'sites.php' ); 53 $submenu['sites.php'][10] = array( _ x( 'Add New', 'site' ), 'create_sites', 'site-new.php' );53 $submenu['sites.php'][10] = array( __( 'Add New Site' ), 'create_sites', 'site-new.php' ); 54 54 55 55 $menu[10] = array( __( 'Users' ), 'manage_network_users', 'users.php', '', 'menu-top menu-icon-users', 'menu-users', 'dashicons-admin-users' ); 56 56 $submenu['users.php'][5] = array( __( 'All Users' ), 'manage_network_users', 'users.php' ); 57 $submenu['users.php'][10] = array( _ x( 'Add New', 'user' ), 'create_users', 'user-new.php' );57 $submenu['users.php'][10] = array( __( 'Add New User' ), 'create_users', 'user-new.php' ); 58 58 59 59 if ( current_user_can( 'update_themes' ) && $update_data['counts']['themes'] ) { 60 60 $menu[15] = array( … … 78 78 $menu[15] = array( __( 'Themes' ), 'manage_network_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' ); 79 79 } 80 80 $submenu['themes.php'][5] = array( __( 'Installed Themes' ), 'manage_network_themes', 'themes.php' ); 81 $submenu['themes.php'][10] = array( _ x( 'Add New', 'theme' ), 'install_themes', 'theme-install.php' );81 $submenu['themes.php'][10] = array( __( 'Add New Theme' ), 'install_themes', 'theme-install.php' ); 82 82 $submenu['themes.php'][15] = array( __( 'Theme File Editor' ), 'edit_themes', 'theme-editor.php' ); 83 83 84 84 if ( current_user_can( 'update_plugins' ) && $update_data['counts']['plugins'] ) { … … 103 103 $menu[20] = array( __( 'Plugins' ), 'manage_network_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'dashicons-admin-plugins' ); 104 104 } 105 105 $submenu['plugins.php'][5] = array( __( 'Installed Plugins' ), 'manage_network_plugins', 'plugins.php' ); 106 $submenu['plugins.php'][10] = array( _ x( 'Add New', 'plugin' ), 'install_plugins', 'plugin-install.php' );106 $submenu['plugins.php'][10] = array( __( 'Add New Plugin' ), 'install_plugins', 'plugin-install.php' ); 107 107 $submenu['plugins.php'][15] = array( __( 'Plugin File Editor' ), 'edit_plugins', 'plugin-editor.php' ); 108 108 109 109 $menu[25] = array( __( 'Settings' ), 'manage_network_options', 'settings.php', '', 'menu-top menu-icon-settings', 'menu-settings', 'dashicons-admin-settings' ); -
src/wp-includes/class-wp-post-type.php
831 831 self::$default_labels = array( 832 832 'name' => array( _x( 'Posts', 'post type general name' ), _x( 'Pages', 'post type general name' ) ), 833 833 'singular_name' => array( _x( 'Post', 'post type singular name' ), _x( 'Page', 'post type singular name' ) ), 834 'add_new' => array( _ x( 'Add New', 'post' ), _x( 'Add New', 'page' ) ),834 'add_new' => array( __( 'Add New Post' ), __( 'Add New Page' ) ), 835 835 'add_new_item' => array( __( 'Add New Post' ), __( 'Add New Page' ) ), 836 836 'edit_item' => array( __( 'Edit Post' ), __( 'Edit Page' ) ), 837 837 'new_item' => array( __( 'New Post' ), __( 'New Page' ) ),