Ticket #47125: 47125.6.diff
File 47125.6.diff, 24.7 KB (added by , 13 months ago) |
---|
-
src/wp-admin/edit-link-form.php
87 87 ?> 88 88 </h1> 89 89 90 <a href="link-add.php" class="page-title-action"><?php echo esc_html_ x( 'Add New', 'link' ); ?></a>90 <a href="link-add.php" class="page-title-action"><?php echo esc_html__( 'Add New Link' ); ?></a> 91 91 92 92 <hr class="wp-header-end"> 93 93 -
src/wp-admin/includes/template.php
461 461 <legend> 462 462 <span class="hidden" id="editlegend"><?php _e( 'Edit Comment' ); ?></span> 463 463 <span class="hidden" id="replyhead"><?php _e( 'Reply to Comment' ); ?></span> 464 <span class="hidden" id="addhead"><?php _e( 'Add new Comment' ); ?></span>464 <span class="hidden" id="addhead"><?php _e( 'Add New Comment' ); ?></span> 465 465 </legend> 466 466 467 467 <div id="replycontainer"> -
src/wp-admin/link-manager.php
101 101 ?> 102 102 </h1> 103 103 104 <a href="link-add.php" class="page-title-action"><?php echo esc_html_ x( 'Add New', 'link' ); ?></a>104 <a href="link-add.php" class="page-title-action"><?php echo esc_html__( 'Add New Link' ); ?></a> 105 105 106 106 <?php 107 107 if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { -
src/wp-admin/menu.php
65 65 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 /* translators: Add new file. */ 69 $submenu['upload.php'][10] = array( _x( 'Add New', 'file' ), 'upload_files', 'media-new.php' ); 68 $submenu['upload.php'][10] = array( __( 'Add New Media File' ), 'upload_files', 'media-new.php' ); 70 69 $i = 15; 71 70 foreach ( get_taxonomies_for_attachments( 'objects' ) as $tax ) { 72 71 if ( ! $tax->show_ui || ! $tax->show_in_menu ) { … … 79 78 80 79 $menu[15] = array( __( 'Links' ), 'manage_links', 'link-manager.php', '', 'menu-top menu-icon-links', 'menu-links', 'dashicons-admin-links' ); 81 80 $submenu['link-manager.php'][5] = array( _x( 'All Links', 'admin menu' ), 'manage_links', 'link-manager.php' ); 82 /* translators: Add new links. */ 83 $submenu['link-manager.php'][10] = array( _x( 'Add New', 'link' ), 'manage_links', 'link-add.php' ); 81 $submenu['link-manager.php'][10] = array( __( 'Add New Link' ), 'manage_links', 'link-add.php' ); 84 82 $submenu['link-manager.php'][15] = array( __( 'Link Categories' ), 'manage_categories', 'edit-tags.php?taxonomy=link_category' ); 85 83 86 84 // $menu[20] = Pages. … … 304 302 $submenu['plugins.php'][5] = array( __( 'Installed Plugins' ), 'activate_plugins', 'plugins.php' ); 305 303 306 304 if ( ! is_multisite() ) { 307 /* translators: Add new plugin. */ 308 $submenu['plugins.php'][10] = array( _x( 'Add New', 'plugin' ), 'install_plugins', 'plugin-install.php' ); 305 $submenu['plugins.php'][10] = array( __( 'Add New Plugin' ), 'install_plugins', 'plugin-install.php' ); 309 306 if ( wp_is_block_theme() ) { 310 307 // Place the menu item below the Theme File Editor menu item. 311 308 add_action( 'admin_menu', '_add_plugin_file_editor_to_tools', 101 ); … … 326 323 $_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php. 327 324 $submenu['users.php'][5] = array( __( 'All Users' ), 'list_users', 'users.php' ); 328 325 if ( current_user_can( 'create_users' ) ) { 329 $submenu['users.php'][10] = array( _ x( 'Add New', 'user' ), 'create_users', 'user-new.php' );326 $submenu['users.php'][10] = array( __( 'Add New User' ), 'create_users', 'user-new.php' ); 330 327 } elseif ( is_multisite() ) { 331 $submenu['users.php'][10] = array( _ x( 'Add New', 'user' ), 'promote_users', 'user-new.php' );328 $submenu['users.php'][10] = array( __( 'Add New User' ), 'promote_users', 'user-new.php' ); 332 329 } 333 330 334 331 $submenu['users.php'][15] = array( __( 'Profile' ), 'read', 'profile.php' ); -
src/wp-admin/my-sites.php
78 78 if ( in_array( get_site_option( 'registration' ), array( 'all', 'blog' ), true ) ) { 79 79 /** This filter is documented in wp-login.php */ 80 80 $sign_up_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) ); 81 printf( ' <a href="%s" class="page-title-action">%s</a>', esc_url( $sign_up_url ), esc_html_ x( 'Add New', 'site' ) );81 printf( ' <a href="%s" class="page-title-action">%s</a>', esc_url( $sign_up_url ), esc_html__( 'Add New Site' ) ); 82 82 } 83 83 84 84 if ( empty( $blogs ) ) : -
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-admin/network/sites.php
378 378 <h1 class="wp-heading-inline"><?php _e( 'Sites' ); ?></h1> 379 379 380 380 <?php if ( current_user_can( 'create_sites' ) ) : ?> 381 <a href="<?php echo esc_url( network_admin_url( 'site-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html_ x( 'Add New', 'site' ); ?></a>381 <a href="<?php echo esc_url( network_admin_url( 'site-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add New Site' ); ?></a> 382 382 <?php endif; ?> 383 383 384 384 <?php -
src/wp-admin/network/themes.php
349 349 <h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1> 350 350 351 351 <?php if ( current_user_can( 'install_themes' ) ) : ?> 352 <a href="theme-install.php" class="page-title-action"><?php echo esc_html_ x( 'Add New', 'theme' ); ?></a>352 <a href="theme-install.php" class="page-title-action"><?php echo esc_html__( 'Add New Theme' ); ?></a> 353 353 <?php endif; ?> 354 354 355 355 <?php -
src/wp-admin/network/users.php
289 289 <?php 290 290 if ( current_user_can( 'create_users' ) ) : 291 291 ?> 292 <a href="<?php echo esc_url( network_admin_url( 'user-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html_ x( 'Add New', 'user' ); ?></a>292 <a href="<?php echo esc_url( network_admin_url( 'user-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add New User' ); ?></a> 293 293 <?php 294 294 endif; 295 295 -
src/wp-admin/plugins.php
547 547 '<p>' . __( 'The search for installed plugins will search for terms in their name, description, or author.' ) . ' <span id="live-search-desc" class="hide-if-no-js">' . __( 'The search results will be updated as you type.' ) . '</span></p>' . 548 548 '<p>' . sprintf( 549 549 /* translators: %s: WordPress Plugin Directory URL. */ 550 __( 'If you would like to see more plugins to choose from, click on the “Add New ” button and you will be able to browse or search for additional plugins from the <a href="%s">WordPress Plugin Directory</a>. Plugins in the WordPress Plugin Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they’re free!' ),550 __( 'If you would like to see more plugins to choose from, click on the “Add New Plugin” button and you will be able to browse or search for additional plugins from the <a href="%s">WordPress Plugin Directory</a>. Plugins in the WordPress Plugin Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they’re free!' ), 551 551 __( 'https://wordpress.org/plugins/' ) 552 552 ) . '</p>', 553 553 ) … … 726 726 <?php 727 727 if ( ( ! is_multisite() || is_network_admin() ) && current_user_can( 'install_plugins' ) ) { 728 728 ?> 729 <a href="<?php echo esc_url( self_admin_url( 'plugin-install.php' ) ); ?>" class="page-title-action"><?php echo esc_html_ x( 'Add New', 'plugin' ); ?></a>729 <a href="<?php echo esc_url( self_admin_url( 'plugin-install.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add New Plugin' ); ?></a> 730 730 <?php 731 731 } 732 732 -
src/wp-admin/themes.php
153 153 } else { 154 154 $help_install = '<p>' . sprintf( 155 155 /* translators: %s: https://wordpress.org/themes/ */ 156 __( 'If you would like to see more themes to choose from, click on the “Add New ” button and you will be able to browse or search for additional themes from the <a href="%s">WordPress Theme Directory</a>. Themes in the WordPress Theme Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they’re free!' ),156 __( 'If you would like to see more themes to choose from, click on the “Add New Theme” button and you will be able to browse or search for additional themes from the <a href="%s">WordPress Theme Directory</a>. Themes in the WordPress Theme Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they’re free!' ), 157 157 __( 'https://wordpress.org/themes/' ) 158 158 ) . '</p>'; 159 159 } … … 252 252 </h1> 253 253 254 254 <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?> 255 <a href="<?php echo esc_url( admin_url( 'theme-install.php' ) ); ?>" class="hide-if-no-js page-title-action"><?php echo esc_html_ x( 'Add New', 'theme' ); ?></a>255 <a href="<?php echo esc_url( admin_url( 'theme-install.php' ) ); ?>" class="hide-if-no-js page-title-action"><?php echo esc_html__( 'Add New Theme' ); ?></a> 256 256 <?php endif; ?> 257 257 258 258 <form class="search-form"></form> -
src/wp-admin/upload.php
211 211 <?php 212 212 if ( current_user_can( 'upload_files' ) ) { 213 213 ?> 214 <a href="<?php echo esc_url( admin_url( 'media-new.php' ) ); ?>" class="page-title-action aria-button-if-js"><?php echo esc_html_ x( 'Add New', 'file' ); ?></a>214 <a href="<?php echo esc_url( admin_url( 'media-new.php' ) ); ?>" class="page-title-action aria-button-if-js"><?php echo esc_html__( 'Add New Media File' ); ?></a> 215 215 <?php 216 216 } 217 217 ?> … … 409 409 <?php 410 410 if ( current_user_can( 'upload_files' ) ) { 411 411 ?> 412 <a href="<?php echo esc_url( admin_url( 'media-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html_ x( 'Add New', 'file' ); ?></a>412 <a href="<?php echo esc_url( admin_url( 'media-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add New Media File' ); ?></a> 413 413 <?php 414 414 } 415 415 -
src/wp-admin/user-edit.php
238 238 239 239 <?php if ( ! IS_PROFILE_PAGE ) : ?> 240 240 <?php if ( current_user_can( 'create_users' ) ) : ?> 241 <a href="user-new.php" class="page-title-action"><?php echo esc_html_ x( 'Add New', 'user' ); ?></a>241 <a href="user-new.php" class="page-title-action"><?php echo esc_html__( 'Add New User' ); ?></a> 242 242 <?php elseif ( is_multisite() && current_user_can( 'promote_users' ) ) : ?> 243 <a href="user-new.php" class="page-title-action"><?php echo esc_html_ x( 'Add Existing', 'user' ); ?></a>243 <a href="user-new.php" class="page-title-action"><?php echo esc_html__( 'Add Existing User' ); ?></a> 244 244 <?php endif; ?> 245 245 <?php endif; ?> 246 246 -
src/wp-admin/users.php
694 694 printf( 695 695 '<a href="%1$s" class="page-title-action">%2$s</a>', 696 696 esc_url( admin_url( 'user-new.php' ) ), 697 esc_html_ x( 'Add New', 'user' )697 esc_html__( 'Add New User' ) 698 698 ); 699 699 } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) { 700 700 printf( 701 701 '<a href="%1$s" class="page-title-action">%2$s</a>', 702 702 esc_url( admin_url( 'user-new.php' ) ), 703 esc_html_ x( 'Add Existing', 'user' )703 esc_html__( 'Add Existing User' ) 704 704 ); 705 705 } 706 706 -
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' ) ), -
src/wp-includes/customize/class-wp-customize-header-image-control.php
213 213 <p class="customizer-section-intro customize-control-description"> 214 214 <?php 215 215 if ( current_theme_supports( 'custom-header', 'video' ) ) { 216 _e( 'Click “Add new image” to upload an image file from your computer. Your theme works best with an image that matches the size of your video — you’ll be able to crop your image once you upload it for a perfect fit.' );216 _e( 'Click “Add New Image” to upload an image file from your computer. Your theme works best with an image that matches the size of your video — you’ll be able to crop your image once you upload it for a perfect fit.' ); 217 217 } elseif ( $width && $height ) { 218 218 printf( 219 219 /* translators: %s: Header size in pixels. */ 220 __( 'Click “Add new image” to upload an image file from your computer. Your theme works best with an image with a header size of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ),220 __( 'Click “Add New Image” to upload an image file from your computer. Your theme works best with an image with a header size of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ), 221 221 sprintf( '<strong>%s × %s</strong>', $width, $height ) 222 222 ); 223 223 } elseif ( $width ) { 224 224 printf( 225 225 /* translators: %s: Header width in pixels. */ 226 __( 'Click “Add new image” to upload an image file from your computer. Your theme works best with an image with a header width of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ),226 __( 'Click “Add New Image” to upload an image file from your computer. Your theme works best with an image with a header width of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ), 227 227 sprintf( '<strong>%s</strong>', $width ) 228 228 ); 229 229 } else { 230 230 printf( 231 231 /* translators: %s: Header height in pixels. */ 232 __( 'Click “Add new image” to upload an image file from your computer. Your theme works best with an image with a header height of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ),232 __( 'Click “Add New Image” to upload an image file from your computer. Your theme works best with an image with a header height of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ), 233 233 sprintf( '<strong>%s</strong>', $height ) 234 234 ); 235 235 } … … 247 247 <div class="actions"> 248 248 <?php if ( current_user_can( 'upload_files' ) ) : ?> 249 249 <button type="button"<?php echo $visibility; ?> class="button remove" aria-label="<?php esc_attr_e( 'Hide header image' ); ?>"><?php _e( 'Hide image' ); ?></button> 250 <button type="button" class="button new" id="header_image-button" aria-label="<?php esc_attr_e( 'Add new header image' ); ?>"><?php _e( 'Add new image' ); ?></button>250 <button type="button" class="button new" id="header_image-button" aria-label="<?php esc_attr_e( 'Add New Header Image' ); ?>"><?php _e( 'Add New Image' ); ?></button> 251 251 <?php endif; ?> 252 252 </div> 253 253 <div class="choices"> -
src/wp-includes/post.php
75 75 'labels' => array( 76 76 'name' => _x( 'Media', 'post type general name' ), 77 77 'name_admin_bar' => _x( 'Media', 'add new from admin bar' ), 78 'add_new' => _ x( 'Add New', 'file' ),78 'add_new' => __( 'Add New Media File' ), 79 79 'edit_item' => __( 'Edit Media' ), 80 80 'view_item' => __( 'View Attachment Page' ), 81 81 'attributes' => __( 'Attachment Attributes' ), … … 202 202 'labels' => array( 203 203 'name' => _x( 'Changesets', 'post type general name' ), 204 204 'singular_name' => _x( 'Changeset', 'post type singular name' ), 205 'add_new' => _ x( 'Add New', 'CustomizeChangeset' ),205 'add_new' => __( 'Add New Changeset' ), 206 206 'add_new_item' => __( 'Add New Changeset' ), 207 207 'new_item' => __( 'New Changeset' ), 208 208 'edit_item' => __( 'Edit Changeset' ), … … 284 284 'labels' => array( 285 285 'name' => _x( 'Patterns', 'post type general name' ), 286 286 'singular_name' => _x( 'Pattern', 'post type singular name' ), 287 'add_new' => _ x( 'Add New', 'Pattern' ),288 'add_new_item' => __( 'Add new Pattern' ),287 'add_new' => __( 'Add New Pattern' ), 288 'add_new_item' => __( 'Add New Pattern' ), 289 289 'new_item' => __( 'New Pattern' ), 290 290 'edit_item' => __( 'Edit Block Pattern' ), 291 291 'view_item' => __( 'View Pattern' ), … … 347 347 'labels' => array( 348 348 'name' => _x( 'Templates', 'post type general name' ), 349 349 'singular_name' => _x( 'Template', 'post type singular name' ), 350 'add_new' => _ x( 'Add New', 'Template' ),350 'add_new' => __( 'Add New Template' ), 351 351 'add_new_item' => __( 'Add New Template' ), 352 352 'new_item' => __( 'New Template' ), 353 353 'edit_item' => __( 'Edit Template' ), … … 408 408 'labels' => array( 409 409 'name' => _x( 'Template Parts', 'post type general name' ), 410 410 'singular_name' => _x( 'Template Part', 'post type singular name' ), 411 'add_new' => _ x( 'Add New', 'Template Part' ),411 'add_new' => __( 'Add New Template Part' ), 412 412 'add_new_item' => __( 'Add New Template Part' ), 413 413 'new_item' => __( 'New Template Part' ), 414 414 'edit_item' => __( 'Edit Template Part' ), … … 505 505 'labels' => array( 506 506 'name' => _x( 'Navigation Menus', 'post type general name' ), 507 507 'singular_name' => _x( 'Navigation Menu', 'post type singular name' ), 508 'add_new' => _ x( 'Add New', 'Navigation Menu' ),508 'add_new' => __( 'Add New Navigation Menu' ), 509 509 'add_new_item' => __( 'Add New Navigation Menu' ), 510 510 'new_item' => __( 'New Navigation Menu' ), 511 511 'edit_item' => __( 'Edit Navigation Menu' ), … … 1931 1931 * - `name` - General name for the post type, usually plural. The same and overridden 1932 1932 * by `$post_type_object->label`. Default is 'Posts' / 'Pages'. 1933 1933 * - `singular_name` - Name for one object of this post type. Default is 'Post' / 'Page'. 1934 * - `add_new` - Default is 'Add New ' for both hierarchical and non-hierarchical types.1934 * - `add_new` - Default is 'Add New Type' for both hierarchical and non-hierarchical types. 1935 1935 * When internationalizing this string, please use a {@link https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/#disambiguation-by-context gettext context} 1936 * matching your post type. Example: `_ x( 'Add New', 'product', 'textdomain' );`.1936 * matching your post type. Example: `__( 'Add New Product', 'textdomain' );`. 1937 1937 * - `add_new_item` - Label for adding a new singular item. Default is 'Add New Post' / 'Add New Page'. 1938 1938 * - `edit_item` - Label for editing a singular item. Default is 'Edit Post' / 'Edit Page'. 1939 1939 * - `new_item` - Label for the new item page title. Default is 'New Post' / 'New Page'.