Administration: Add improved context for `add new` links.
Consistently expand `Add New` links to include the type of content to add. Improve consistency of text casing to use initial caps throughout. Props afercia, gonzomir, alexstine, swissspidy, joedolson. Fixes #47125. Built from https://develop.svn.wordpress.org/trunk@56515 git-svn-id: http://core.svn.wordpress.org/trunk@56027 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
70d853b9cd
commit
0aa0c763e2
|
@ -87,7 +87,7 @@ echo esc_html( $title );
|
|||
?>
|
||||
</h1>
|
||||
|
||||
<a href="link-add.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'link' ); ?></a>
|
||||
<a href="link-add.php" class="page-title-action"><?php echo esc_html__( 'Add New Link' ); ?></a>
|
||||
|
||||
<hr class="wp-header-end">
|
||||
|
||||
|
|
|
@ -461,7 +461,7 @@ function wp_comment_reply( $position = 1, $checkbox = false, $mode = 'single', $
|
|||
<legend>
|
||||
<span class="hidden" id="editlegend"><?php _e( 'Edit Comment' ); ?></span>
|
||||
<span class="hidden" id="replyhead"><?php _e( 'Reply to Comment' ); ?></span>
|
||||
<span class="hidden" id="addhead"><?php _e( 'Add new Comment' ); ?></span>
|
||||
<span class="hidden" id="addhead"><?php _e( 'Add New Comment' ); ?></span>
|
||||
</legend>
|
||||
|
||||
<div id="replycontainer">
|
||||
|
|
|
@ -101,7 +101,7 @@ echo esc_html( $title );
|
|||
?>
|
||||
</h1>
|
||||
|
||||
<a href="link-add.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'link' ); ?></a>
|
||||
<a href="link-add.php" class="page-title-action"><?php echo esc_html__( 'Add New Link' ); ?></a>
|
||||
|
||||
<?php
|
||||
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
|
||||
|
|
|
@ -65,8 +65,7 @@ $menu[4] = array( '', 'read', 'separator1', '', 'wp-menu-separator' );
|
|||
|
||||
$menu[10] = array( __( 'Media' ), 'upload_files', 'upload.php', '', 'menu-top menu-icon-media', 'menu-media', 'dashicons-admin-media' );
|
||||
$submenu['upload.php'][5] = array( __( 'Library' ), 'upload_files', 'upload.php' );
|
||||
/* translators: Add new file. */
|
||||
$submenu['upload.php'][10] = array( _x( 'Add New', 'file' ), 'upload_files', 'media-new.php' );
|
||||
$submenu['upload.php'][10] = array( __( 'Add New Media File' ), 'upload_files', 'media-new.php' );
|
||||
$i = 15;
|
||||
foreach ( get_taxonomies_for_attachments( 'objects' ) as $tax ) {
|
||||
if ( ! $tax->show_ui || ! $tax->show_in_menu ) {
|
||||
|
@ -79,8 +78,7 @@ foreach ( get_taxonomies_for_attachments( 'objects' ) as $tax ) {
|
|||
|
||||
$menu[15] = array( __( 'Links' ), 'manage_links', 'link-manager.php', '', 'menu-top menu-icon-links', 'menu-links', 'dashicons-admin-links' );
|
||||
$submenu['link-manager.php'][5] = array( _x( 'All Links', 'admin menu' ), 'manage_links', 'link-manager.php' );
|
||||
/* translators: Add new links. */
|
||||
$submenu['link-manager.php'][10] = array( _x( 'Add New', 'link' ), 'manage_links', 'link-add.php' );
|
||||
$submenu['link-manager.php'][10] = array( __( 'Add New Link' ), 'manage_links', 'link-add.php' );
|
||||
$submenu['link-manager.php'][15] = array( __( 'Link Categories' ), 'manage_categories', 'edit-tags.php?taxonomy=link_category' );
|
||||
|
||||
// $menu[20] = Pages.
|
||||
|
@ -304,8 +302,7 @@ $menu[65] = array( sprintf( __( 'Plugins %s' ), $count ), 'activate_plugins', 'p
|
|||
$submenu['plugins.php'][5] = array( __( 'Installed Plugins' ), 'activate_plugins', 'plugins.php' );
|
||||
|
||||
if ( ! is_multisite() ) {
|
||||
/* translators: Add new plugin. */
|
||||
$submenu['plugins.php'][10] = array( _x( 'Add New', 'plugin' ), 'install_plugins', 'plugin-install.php' );
|
||||
$submenu['plugins.php'][10] = array( __( 'Add New Plugin' ), 'install_plugins', 'plugin-install.php' );
|
||||
if ( wp_is_block_theme() ) {
|
||||
// Place the menu item below the Theme File Editor menu item.
|
||||
add_action( 'admin_menu', '_add_plugin_file_editor_to_tools', 101 );
|
||||
|
@ -326,9 +323,9 @@ if ( current_user_can( 'list_users' ) ) {
|
|||
$_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php.
|
||||
$submenu['users.php'][5] = array( __( 'All Users' ), 'list_users', 'users.php' );
|
||||
if ( current_user_can( 'create_users' ) ) {
|
||||
$submenu['users.php'][10] = array( _x( 'Add New', 'user' ), 'create_users', 'user-new.php' );
|
||||
$submenu['users.php'][10] = array( __( 'Add New User' ), 'create_users', 'user-new.php' );
|
||||
} elseif ( is_multisite() ) {
|
||||
$submenu['users.php'][10] = array( _x( 'Add New', 'user' ), 'promote_users', 'user-new.php' );
|
||||
$submenu['users.php'][10] = array( __( 'Add New User' ), 'promote_users', 'user-new.php' );
|
||||
}
|
||||
|
||||
$submenu['users.php'][15] = array( __( 'Profile' ), 'read', 'profile.php' );
|
||||
|
|
|
@ -78,7 +78,7 @@ echo esc_html( $title );
|
|||
if ( in_array( get_site_option( 'registration' ), array( 'all', 'blog' ), true ) ) {
|
||||
/** This filter is documented in wp-login.php */
|
||||
$sign_up_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) );
|
||||
printf( ' <a href="%s" class="page-title-action">%s</a>', esc_url( $sign_up_url ), esc_html_x( 'Add New', 'site' ) );
|
||||
printf( ' <a href="%s" class="page-title-action">%s</a>', esc_url( $sign_up_url ), esc_html__( 'Add New Site' ) );
|
||||
}
|
||||
|
||||
if ( empty( $blogs ) ) :
|
||||
|
|
|
@ -50,11 +50,11 @@ $menu[4] = array( '', 'read', 'separator1', '', 'wp-menu-separator' );
|
|||
/* translators: Sites menu item. */
|
||||
$menu[5] = array( __( 'Sites' ), 'manage_sites', 'sites.php', '', 'menu-top menu-icon-site', 'menu-site', 'dashicons-admin-multisite' );
|
||||
$submenu['sites.php'][5] = array( __( 'All Sites' ), 'manage_sites', 'sites.php' );
|
||||
$submenu['sites.php'][10] = array( _x( 'Add New', 'site' ), 'create_sites', 'site-new.php' );
|
||||
$submenu['sites.php'][10] = array( __( 'Add New Site' ), 'create_sites', 'site-new.php' );
|
||||
|
||||
$menu[10] = array( __( 'Users' ), 'manage_network_users', 'users.php', '', 'menu-top menu-icon-users', 'menu-users', 'dashicons-admin-users' );
|
||||
$submenu['users.php'][5] = array( __( 'All Users' ), 'manage_network_users', 'users.php' );
|
||||
$submenu['users.php'][10] = array( _x( 'Add New', 'user' ), 'create_users', 'user-new.php' );
|
||||
$submenu['users.php'][10] = array( __( 'Add New User' ), 'create_users', 'user-new.php' );
|
||||
|
||||
if ( current_user_can( 'update_themes' ) && $update_data['counts']['themes'] ) {
|
||||
$menu[15] = array(
|
||||
|
@ -78,7 +78,7 @@ if ( current_user_can( 'update_themes' ) && $update_data['counts']['themes'] ) {
|
|||
$menu[15] = array( __( 'Themes' ), 'manage_network_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' );
|
||||
}
|
||||
$submenu['themes.php'][5] = array( __( 'Installed Themes' ), 'manage_network_themes', 'themes.php' );
|
||||
$submenu['themes.php'][10] = array( _x( 'Add New', 'theme' ), 'install_themes', 'theme-install.php' );
|
||||
$submenu['themes.php'][10] = array( __( 'Add New Theme' ), 'install_themes', 'theme-install.php' );
|
||||
$submenu['themes.php'][15] = array( __( 'Theme File Editor' ), 'edit_themes', 'theme-editor.php' );
|
||||
|
||||
if ( current_user_can( 'update_plugins' ) && $update_data['counts']['plugins'] ) {
|
||||
|
@ -103,7 +103,7 @@ if ( current_user_can( 'update_plugins' ) && $update_data['counts']['plugins'] )
|
|||
$menu[20] = array( __( 'Plugins' ), 'manage_network_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'dashicons-admin-plugins' );
|
||||
}
|
||||
$submenu['plugins.php'][5] = array( __( 'Installed Plugins' ), 'manage_network_plugins', 'plugins.php' );
|
||||
$submenu['plugins.php'][10] = array( _x( 'Add New', 'plugin' ), 'install_plugins', 'plugin-install.php' );
|
||||
$submenu['plugins.php'][10] = array( __( 'Add New Plugin' ), 'install_plugins', 'plugin-install.php' );
|
||||
$submenu['plugins.php'][15] = array( __( 'Plugin File Editor' ), 'edit_plugins', 'plugin-editor.php' );
|
||||
|
||||
$menu[25] = array( __( 'Settings' ), 'manage_network_options', 'settings.php', '', 'menu-top menu-icon-settings', 'menu-settings', 'dashicons-admin-settings' );
|
||||
|
|
|
@ -378,7 +378,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
|||
<h1 class="wp-heading-inline"><?php _e( 'Sites' ); ?></h1>
|
||||
|
||||
<?php if ( current_user_can( 'create_sites' ) ) : ?>
|
||||
<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>
|
||||
<a href="<?php echo esc_url( network_admin_url( 'site-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add New Site' ); ?></a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
|
|
|
@ -349,7 +349,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
|||
<h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1>
|
||||
|
||||
<?php if ( current_user_can( 'install_themes' ) ) : ?>
|
||||
<a href="theme-install.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'theme' ); ?></a>
|
||||
<a href="theme-install.php" class="page-title-action"><?php echo esc_html__( 'Add New Theme' ); ?></a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
|
|
|
@ -289,7 +289,7 @@ if ( isset( $_REQUEST['updated'] ) && 'true' === $_REQUEST['updated'] && ! empty
|
|||
<?php
|
||||
if ( current_user_can( 'create_users' ) ) :
|
||||
?>
|
||||
<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>
|
||||
<a href="<?php echo esc_url( network_admin_url( 'user-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add New User' ); ?></a>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
|
|
|
@ -547,7 +547,7 @@ get_current_screen()->add_help_tab(
|
|||
'<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>' .
|
||||
'<p>' . sprintf(
|
||||
/* translators: %s: WordPress Plugin Directory URL. */
|
||||
__( '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!' ),
|
||||
__( '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!' ),
|
||||
__( 'https://wordpress.org/plugins/' )
|
||||
) . '</p>',
|
||||
)
|
||||
|
@ -726,7 +726,7 @@ echo esc_html( $title );
|
|||
<?php
|
||||
if ( ( ! is_multisite() || is_network_admin() ) && current_user_can( 'install_plugins' ) ) {
|
||||
?>
|
||||
<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>
|
||||
<a href="<?php echo esc_url( self_admin_url( 'plugin-install.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add New Plugin' ); ?></a>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
|
|
@ -153,7 +153,7 @@ if ( current_user_can( 'install_themes' ) ) {
|
|||
} else {
|
||||
$help_install = '<p>' . sprintf(
|
||||
/* translators: %s: https://wordpress.org/themes/ */
|
||||
__( '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!' ),
|
||||
__( '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!' ),
|
||||
__( 'https://wordpress.org/themes/' )
|
||||
) . '</p>';
|
||||
}
|
||||
|
@ -252,7 +252,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
|||
</h1>
|
||||
|
||||
<?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
|
||||
<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>
|
||||
<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>
|
||||
<?php endif; ?>
|
||||
|
||||
<form class="search-form"></form>
|
||||
|
|
|
@ -211,7 +211,7 @@ if ( 'grid' === $mode ) {
|
|||
<?php
|
||||
if ( current_user_can( 'upload_files' ) ) {
|
||||
?>
|
||||
<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>
|
||||
<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>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
@ -409,7 +409,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
|||
<?php
|
||||
if ( current_user_can( 'upload_files' ) ) {
|
||||
?>
|
||||
<a href="<?php echo esc_url( admin_url( 'media-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'file' ); ?></a>
|
||||
<a href="<?php echo esc_url( admin_url( 'media-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add New Media File' ); ?></a>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
|
|
@ -238,9 +238,9 @@ switch ( $action ) {
|
|||
|
||||
<?php if ( ! IS_PROFILE_PAGE ) : ?>
|
||||
<?php if ( current_user_can( 'create_users' ) ) : ?>
|
||||
<a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user' ); ?></a>
|
||||
<a href="user-new.php" class="page-title-action"><?php echo esc_html__( 'Add New User' ); ?></a>
|
||||
<?php elseif ( is_multisite() && current_user_can( 'promote_users' ) ) : ?>
|
||||
<a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a>
|
||||
<a href="user-new.php" class="page-title-action"><?php echo esc_html__( 'Add Existing User' ); ?></a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
|
|
|
@ -694,13 +694,13 @@ switch ( $wp_list_table->current_action() ) {
|
|||
printf(
|
||||
'<a href="%1$s" class="page-title-action">%2$s</a>',
|
||||
esc_url( admin_url( 'user-new.php' ) ),
|
||||
esc_html_x( 'Add New', 'user' )
|
||||
esc_html__( 'Add New User' )
|
||||
);
|
||||
} elseif ( is_multisite() && current_user_can( 'promote_users' ) ) {
|
||||
printf(
|
||||
'<a href="%1$s" class="page-title-action">%2$s</a>',
|
||||
esc_url( admin_url( 'user-new.php' ) ),
|
||||
esc_html_x( 'Add Existing', 'user' )
|
||||
esc_html__( 'Add Existing User' )
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -831,7 +831,7 @@ final class WP_Post_Type {
|
|||
self::$default_labels = array(
|
||||
'name' => array( _x( 'Posts', 'post type general name' ), _x( 'Pages', 'post type general name' ) ),
|
||||
'singular_name' => array( _x( 'Post', 'post type singular name' ), _x( 'Page', 'post type singular name' ) ),
|
||||
'add_new' => array( _x( 'Add New', 'post' ), _x( 'Add New', 'page' ) ),
|
||||
'add_new' => array( __( 'Add New Post' ), __( 'Add New Page' ) ),
|
||||
'add_new_item' => array( __( 'Add New Post' ), __( 'Add New Page' ) ),
|
||||
'edit_item' => array( __( 'Edit Post' ), __( 'Edit Page' ) ),
|
||||
'new_item' => array( __( 'New Post' ), __( 'New Page' ) ),
|
||||
|
|
|
@ -213,23 +213,23 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
|
|||
<p class="customizer-section-intro customize-control-description">
|
||||
<?php
|
||||
if ( current_theme_supports( 'custom-header', 'video' ) ) {
|
||||
_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.' );
|
||||
_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.' );
|
||||
} elseif ( $width && $height ) {
|
||||
printf(
|
||||
/* translators: %s: Header size in pixels. */
|
||||
__( '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.' ),
|
||||
__( '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.' ),
|
||||
sprintf( '<strong>%s × %s</strong>', $width, $height )
|
||||
);
|
||||
} elseif ( $width ) {
|
||||
printf(
|
||||
/* translators: %s: Header width in pixels. */
|
||||
__( '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.' ),
|
||||
__( '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.' ),
|
||||
sprintf( '<strong>%s</strong>', $width )
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
/* translators: %s: Header height in pixels. */
|
||||
__( '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.' ),
|
||||
__( '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.' ),
|
||||
sprintf( '<strong>%s</strong>', $height )
|
||||
);
|
||||
}
|
||||
|
@ -247,7 +247,7 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
|
|||
<div class="actions">
|
||||
<?php if ( current_user_can( 'upload_files' ) ) : ?>
|
||||
<button type="button"<?php echo $visibility; ?> class="button remove" aria-label="<?php esc_attr_e( 'Hide header image' ); ?>"><?php _e( 'Hide image' ); ?></button>
|
||||
<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>
|
||||
<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>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="choices">
|
||||
|
|
|
@ -75,7 +75,7 @@ function create_initial_post_types() {
|
|||
'labels' => array(
|
||||
'name' => _x( 'Media', 'post type general name' ),
|
||||
'name_admin_bar' => _x( 'Media', 'add new from admin bar' ),
|
||||
'add_new' => _x( 'Add New', 'file' ),
|
||||
'add_new' => __( 'Add New Media File' ),
|
||||
'edit_item' => __( 'Edit Media' ),
|
||||
'view_item' => __( 'View Attachment Page' ),
|
||||
'attributes' => __( 'Attachment Attributes' ),
|
||||
|
@ -202,7 +202,7 @@ function create_initial_post_types() {
|
|||
'labels' => array(
|
||||
'name' => _x( 'Changesets', 'post type general name' ),
|
||||
'singular_name' => _x( 'Changeset', 'post type singular name' ),
|
||||
'add_new' => _x( 'Add New', 'Customize Changeset' ),
|
||||
'add_new' => __( 'Add New Changeset' ),
|
||||
'add_new_item' => __( 'Add New Changeset' ),
|
||||
'new_item' => __( 'New Changeset' ),
|
||||
'edit_item' => __( 'Edit Changeset' ),
|
||||
|
@ -284,8 +284,8 @@ function create_initial_post_types() {
|
|||
'labels' => array(
|
||||
'name' => _x( 'Patterns', 'post type general name' ),
|
||||
'singular_name' => _x( 'Pattern', 'post type singular name' ),
|
||||
'add_new' => _x( 'Add New', 'Pattern' ),
|
||||
'add_new_item' => __( 'Add new Pattern' ),
|
||||
'add_new' => __( 'Add New Pattern' ),
|
||||
'add_new_item' => __( 'Add New Pattern' ),
|
||||
'new_item' => __( 'New Pattern' ),
|
||||
'edit_item' => __( 'Edit Block Pattern' ),
|
||||
'view_item' => __( 'View Pattern' ),
|
||||
|
@ -347,7 +347,7 @@ function create_initial_post_types() {
|
|||
'labels' => array(
|
||||
'name' => _x( 'Templates', 'post type general name' ),
|
||||
'singular_name' => _x( 'Template', 'post type singular name' ),
|
||||
'add_new' => _x( 'Add New', 'Template' ),
|
||||
'add_new' => __( 'Add New Template' ),
|
||||
'add_new_item' => __( 'Add New Template' ),
|
||||
'new_item' => __( 'New Template' ),
|
||||
'edit_item' => __( 'Edit Template' ),
|
||||
|
@ -408,7 +408,7 @@ function create_initial_post_types() {
|
|||
'labels' => array(
|
||||
'name' => _x( 'Template Parts', 'post type general name' ),
|
||||
'singular_name' => _x( 'Template Part', 'post type singular name' ),
|
||||
'add_new' => _x( 'Add New', 'Template Part' ),
|
||||
'add_new' => __( 'Add New Template Part' ),
|
||||
'add_new_item' => __( 'Add New Template Part' ),
|
||||
'new_item' => __( 'New Template Part' ),
|
||||
'edit_item' => __( 'Edit Template Part' ),
|
||||
|
@ -505,7 +505,7 @@ function create_initial_post_types() {
|
|||
'labels' => array(
|
||||
'name' => _x( 'Navigation Menus', 'post type general name' ),
|
||||
'singular_name' => _x( 'Navigation Menu', 'post type singular name' ),
|
||||
'add_new' => _x( 'Add New', 'Navigation Menu' ),
|
||||
'add_new' => __( 'Add New Navigation Menu' ),
|
||||
'add_new_item' => __( 'Add New Navigation Menu' ),
|
||||
'new_item' => __( 'New Navigation Menu' ),
|
||||
'edit_item' => __( 'Edit Navigation Menu' ),
|
||||
|
@ -1931,9 +1931,9 @@ function _post_type_meta_capabilities( $capabilities = null ) {
|
|||
* - `name` - General name for the post type, usually plural. The same and overridden
|
||||
* by `$post_type_object->label`. Default is 'Posts' / 'Pages'.
|
||||
* - `singular_name` - Name for one object of this post type. Default is 'Post' / 'Page'.
|
||||
* - `add_new` - Default is 'Add New' for both hierarchical and non-hierarchical types.
|
||||
* - `add_new` - Default is 'Add New Type' for both hierarchical and non-hierarchical types.
|
||||
* When internationalizing this string, please use a {@link https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/#disambiguation-by-context gettext context}
|
||||
* matching your post type. Example: `_x( 'Add New', 'product', 'textdomain' );`.
|
||||
* matching your post type. Example: `__( 'Add New Product', 'textdomain' );`.
|
||||
* - `add_new_item` - Label for adding a new singular item. Default is 'Add New Post' / 'Add New Page'.
|
||||
* - `edit_item` - Label for editing a singular item. Default is 'Edit Post' / 'Edit Page'.
|
||||
* - `new_item` - Label for the new item page title. Default is 'New Post' / 'New Page'.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.4-alpha-56514';
|
||||
$wp_version = '6.4-alpha-56515';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue