Proper heading for admin screens.
First step towards restoring a good heading structure in wp-admin. The previous `<h1>` contained the site title and a link to the front page and was removed with the toolbar refactoring in 3.2. Props joedolson, afercia. Fixes #31650. Built from https://develop.svn.wordpress.org/trunk@32974 git-svn-id: http://core.svn.wordpress.org/trunk@32945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
aa6a58f155
commit
7dc1d06e64
|
@ -117,7 +117,7 @@ case 'spam' :
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
|
|
||||||
<h2><?php echo esc_html( $title ); ?></h2>
|
<h1><?php echo esc_html( $title ); ?></h1>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
switch ( $action ) {
|
switch ( $action ) {
|
||||||
|
|
|
@ -328,6 +328,7 @@ h1 {
|
||||||
margin: .67em 0;
|
margin: .67em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wrap > h1,
|
||||||
h2 {
|
h2 {
|
||||||
color: #23282d;
|
color: #23282d;
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
|
@ -564,12 +565,14 @@ code {
|
||||||
color: #00a0d2;
|
color: #00a0d2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wrap h1,
|
||||||
.wrap h2,
|
.wrap h2,
|
||||||
.subtitle {
|
.subtitle {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wrap h1,
|
||||||
.wrap h2 {
|
.wrap h2 {
|
||||||
font-size: 23px;
|
font-size: 23px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
|
|
@ -328,6 +328,7 @@ h1 {
|
||||||
margin: .67em 0;
|
margin: .67em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wrap > h1,
|
||||||
h2 {
|
h2 {
|
||||||
color: #23282d;
|
color: #23282d;
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
|
@ -564,12 +565,14 @@ code {
|
||||||
color: #00a0d2;
|
color: #00a0d2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wrap h1,
|
||||||
.wrap h2,
|
.wrap h2,
|
||||||
.subtitle {
|
.subtitle {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wrap h1,
|
||||||
.wrap h2 {
|
.wrap h2 {
|
||||||
font-size: 23px;
|
font-size: 23px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -176,7 +176,7 @@ class Custom_Background {
|
||||||
public function admin_page() {
|
public function admin_page() {
|
||||||
?>
|
?>
|
||||||
<div class="wrap" id="custom-background">
|
<div class="wrap" id="custom-background">
|
||||||
<h2><?php _e( 'Custom Background' ); ?></h2>
|
<h1><?php _e( 'Custom Background' ); ?></h1>
|
||||||
|
|
||||||
<?php if ( current_user_can( 'customize' ) ) { ?>
|
<?php if ( current_user_can( 'customize' ) ) { ?>
|
||||||
<div class="notice notice-info hide-if-no-customize">
|
<div class="notice notice-info hide-if-no-customize">
|
||||||
|
|
|
@ -446,7 +446,7 @@ class Custom_Image_Header {
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php _e( 'Custom Header' ); ?></h2>
|
<h1><?php _e( 'Custom Header' ); ?></h1>
|
||||||
|
|
||||||
<?php if ( current_user_can( 'customize' ) ) { ?>
|
<?php if ( current_user_can( 'customize' ) ) { ?>
|
||||||
<div class="notice notice-info hide-if-no-customize">
|
<div class="notice notice-info hide-if-no-customize">
|
||||||
|
@ -754,7 +754,7 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php _e( 'Crop Header Image' ); ?></h2>
|
<h1><?php _e( 'Crop Header Image' ); ?></h1>
|
||||||
|
|
||||||
<form method="post" action="<?php echo esc_url(add_query_arg('step', 3)); ?>">
|
<form method="post" action="<?php echo esc_url(add_query_arg('step', 3)); ?>">
|
||||||
<p class="hide-if-no-js"><?php _e('Choose the part of the image you want to use as your header.'); ?></p>
|
<p class="hide-if-no-js"><?php _e('Choose the part of the image you want to use as your header.'); ?></p>
|
||||||
|
|
|
@ -140,7 +140,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php
|
<h1><?php
|
||||||
if ( $post_id )
|
if ( $post_id )
|
||||||
echo sprintf( __( 'Comments on “%s”' ),
|
echo sprintf( __( 'Comments on “%s”' ),
|
||||||
sprintf( '<a href="%s">%s</a>',
|
sprintf( '<a href="%s">%s</a>',
|
||||||
|
@ -153,7 +153,7 @@ else
|
||||||
|
|
||||||
if ( isset($_REQUEST['s']) && $_REQUEST['s'] )
|
if ( isset($_REQUEST['s']) && $_REQUEST['s'] )
|
||||||
echo '<span class="subtitle">' . sprintf( __( 'Search results for “%s”' ), wp_html_excerpt( esc_html( wp_unslash( $_REQUEST['s'] ) ), 50, '…' ) ) . '</span>'; ?>
|
echo '<span class="subtitle">' . sprintf( __( 'Search results for “%s”' ), wp_html_excerpt( esc_html( wp_unslash( $_REQUEST['s'] ) ), 50, '…' ) ) . '</span>'; ?>
|
||||||
</h2>
|
</h1>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ( isset( $_REQUEST['error'] ) ) {
|
if ( isset( $_REQUEST['error'] ) ) {
|
||||||
|
|
|
@ -414,11 +414,11 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php
|
<h1><?php
|
||||||
echo esc_html( $title );
|
echo esc_html( $title );
|
||||||
if ( isset( $post_new_file ) && current_user_can( $post_type_object->cap->create_posts ) )
|
if ( isset( $post_new_file ) && current_user_can( $post_type_object->cap->create_posts ) )
|
||||||
echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>';
|
echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>';
|
||||||
?></h2>
|
?></h1>
|
||||||
<?php if ( $notice ) : ?>
|
<?php if ( $notice ) : ?>
|
||||||
<div id="notice" class="notice notice-warning"><p id="has-newer-autosave"><?php echo $notice ?></p></div>
|
<div id="notice" class="notice notice-warning"><p id="has-newer-autosave"><?php echo $notice ?></p></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
@ -13,7 +13,7 @@ if ( !defined('ABSPATH') )
|
||||||
<form name="post" action="comment.php" method="post" id="post">
|
<form name="post" action="comment.php" method="post" id="post">
|
||||||
<?php wp_nonce_field('update-comment_' . $comment->comment_ID) ?>
|
<?php wp_nonce_field('update-comment_' . $comment->comment_ID) ?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php _e('Edit Comment'); ?></h2>
|
<h1><?php _e( 'Edit Comment' ); ?></h1>
|
||||||
|
|
||||||
<div id="poststuff">
|
<div id="poststuff">
|
||||||
<input type="hidden" name="action" value="editedcomment" />
|
<input type="hidden" name="action" value="editedcomment" />
|
||||||
|
|
|
@ -70,7 +70,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo esc_html( $title ); ?> <a href="link-add.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a></h2>
|
<h1><?php echo esc_html( $title ); ?> <a href="link-add.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a></h1>
|
||||||
|
|
||||||
<?php if ( isset( $_GET['added'] ) ) : ?>
|
<?php if ( isset( $_GET['added'] ) ) : ?>
|
||||||
<div id="message" class="updated notice is-dismissible"><p><?php _e('Link added.'); ?></p></div>
|
<div id="message" class="updated notice is-dismissible"><p><?php _e('Link added.'); ?></p></div>
|
||||||
|
|
|
@ -62,7 +62,7 @@ if ( 'category' == $taxonomy ) {
|
||||||
do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?>
|
do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo $tax->labels->edit_item; ?></h2>
|
<h1><?php echo $tax->labels->edit_item; ?></h1>
|
||||||
<div id="ajax-response"></div>
|
<div id="ajax-response"></div>
|
||||||
<form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate"
|
<form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate"
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -312,10 +312,10 @@ if ( is_plugin_active( 'wpcat2tag-importer/wpcat2tag-importer.php' ) ) {
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap nosubsub">
|
<div class="wrap nosubsub">
|
||||||
<h2><?php echo esc_html( $title );
|
<h1><?php echo esc_html( $title );
|
||||||
if ( !empty($_REQUEST['s']) )
|
if ( !empty($_REQUEST['s']) )
|
||||||
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( wp_unslash($_REQUEST['s']) ) ); ?>
|
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( wp_unslash($_REQUEST['s']) ) ); ?>
|
||||||
</h2>
|
</h1>
|
||||||
|
|
||||||
<?php if ( $message ) : ?>
|
<?php if ( $message ) : ?>
|
||||||
<div id="message" class="<?php echo $class; ?> notice is-dismissible"><p><?php echo $message; ?></p></div>
|
<div id="message" class="<?php echo $class; ?> notice is-dismissible"><p><?php echo $message; ?></p></div>
|
||||||
|
|
|
@ -283,13 +283,13 @@ $bulk_counts = array_filter( $bulk_counts );
|
||||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php
|
<h1><?php
|
||||||
echo esc_html( $post_type_object->labels->name );
|
echo esc_html( $post_type_object->labels->name );
|
||||||
if ( current_user_can( $post_type_object->cap->create_posts ) )
|
if ( current_user_can( $post_type_object->cap->create_posts ) )
|
||||||
echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>';
|
echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>';
|
||||||
if ( ! empty( $_REQUEST['s'] ) )
|
if ( ! empty( $_REQUEST['s'] ) )
|
||||||
printf( ' <span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() );
|
printf( ' <span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() );
|
||||||
?></h2>
|
?></h1>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
// If we have a bulk message to issue:
|
// If we have a bulk message to issue:
|
||||||
|
|
|
@ -143,7 +143,7 @@ function export_date_options( $post_type = 'post' ) {
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo esc_html( $title ); ?></h2>
|
<h1><?php echo esc_html( $title ); ?></h1>
|
||||||
|
|
||||||
<p><?php _e('When you click the button below WordPress will create an XML file for you to save to your computer.'); ?></p>
|
<p><?php _e('When you click the button below WordPress will create an XML file for you to save to your computer.'); ?></p>
|
||||||
<p><?php _e('This format, which we call WordPress eXtended RSS or WXR, will contain your posts, pages, comments, custom fields, categories, and tags.'); ?></p>
|
<p><?php _e('This format, which we call WordPress eXtended RSS or WXR, will contain your posts, pages, comments, custom fields, categories, and tags.'); ?></p>
|
||||||
|
|
|
@ -52,7 +52,7 @@ $parent_file = 'tools.php';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo esc_html( $title ); ?></h2>
|
<h1><?php echo esc_html( $title ); ?></h1>
|
||||||
<?php if ( ! empty( $_GET['invalid'] ) ) : ?>
|
<?php if ( ! empty( $_GET['invalid'] ) ) : ?>
|
||||||
<div class="error"><p><strong><?php _e('ERROR:')?></strong> <?php printf( __('The <strong>%s</strong> importer is invalid or is not installed.'), esc_html( $_GET['invalid'] ) ); ?></p></div>
|
<div class="error"><p><strong><?php _e('ERROR:')?></strong> <?php printf( __('The <strong>%s</strong> importer is invalid or is not installed.'), esc_html( $_GET['invalid'] ) ); ?></p></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
@ -84,7 +84,7 @@ class WP_Upgrader_Skin {
|
||||||
}
|
}
|
||||||
$this->done_header = true;
|
$this->done_header = true;
|
||||||
echo '<div class="wrap">';
|
echo '<div class="wrap">';
|
||||||
echo '<h2>' . $this->options['title'] . '</h2>';
|
echo '<h1>' . $this->options['title'] . '</h1>';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -93,7 +93,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo esc_html( $title ); ?></h2>
|
<h1><?php echo esc_html( $title ); ?></h1>
|
||||||
|
|
||||||
<?php if ( has_action( 'welcome_panel' ) && current_user_can( 'edit_theme_options' ) ) :
|
<?php if ( has_action( 'welcome_panel' ) && current_user_can( 'edit_theme_options' ) ) :
|
||||||
$classes = 'welcome-panel';
|
$classes = 'welcome-panel';
|
||||||
|
|
|
@ -370,7 +370,13 @@ $(document).ready( function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Move .notice, .updated and .error alert boxes. Don't move boxes designed to be inline.
|
// Move .notice, .updated and .error alert boxes. Don't move boxes designed to be inline.
|
||||||
$firstHeading = $( 'div.wrap h2:first' );
|
$firstHeading = $( '.wrap > h1:first' );
|
||||||
|
|
||||||
|
// Back compatibility: if there is no H1, apply to first H2.
|
||||||
|
if ( ! $firstHeading.length ) {
|
||||||
|
$firstHeading = $( '.wrap h2:first' );
|
||||||
|
}
|
||||||
|
|
||||||
$firstHeading.nextAll( 'div.updated, div.error, div.notice' ).addClass( 'below-h2' );
|
$firstHeading.nextAll( 'div.updated, div.error, div.notice' ).addClass( 'below-h2' );
|
||||||
$( 'div.updated, div.error, div.notice' ).not( '.below-h2, .inline' ).insertAfter( $firstHeading );
|
$( 'div.updated, div.error, div.notice' ).not( '.below-h2, .inline' ).insertAfter( $firstHeading );
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -84,7 +84,7 @@ themes.view.Appearance = wp.Backbone.View.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
// Defines search element container
|
// Defines search element container
|
||||||
searchContainer: $( '#wpbody h2:first' ),
|
searchContainer: $( '#wpbody h1:first' ),
|
||||||
|
|
||||||
// Search input and view
|
// Search input and view
|
||||||
// for current theme collection
|
// for current theme collection
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -69,10 +69,10 @@ if ( ! current_user_can('manage_links') )
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap nosubsub">
|
<div class="wrap nosubsub">
|
||||||
<h2><?php echo esc_html( $title ); ?> <a href="link-add.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a> <?php
|
<h1><?php echo esc_html( $title ); ?> <a href="link-add.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a> <?php
|
||||||
if ( !empty($_REQUEST['s']) )
|
if ( !empty($_REQUEST['s']) )
|
||||||
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( wp_unslash($_REQUEST['s']) ) ); ?>
|
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( wp_unslash($_REQUEST['s']) ) ); ?>
|
||||||
</h2>
|
</h1>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ( isset($_REQUEST['deleted']) ) {
|
if ( isset($_REQUEST['deleted']) ) {
|
||||||
|
|
|
@ -65,7 +65,7 @@ if ( get_user_setting('uploader') || isset( $_GET['browser-uploader'] ) )
|
||||||
$form_class .= ' html-uploader';
|
$form_class .= ' html-uploader';
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo esc_html( $title ); ?></h2>
|
<h1><?php echo esc_html( $title ); ?></h1>
|
||||||
|
|
||||||
<form enctype="multipart/form-data" method="post" action="<?php echo admin_url('media-new.php'); ?>" class="<?php echo esc_attr( $form_class ); ?>" id="file-form">
|
<form enctype="multipart/form-data" method="post" action="<?php echo admin_url('media-new.php'); ?>" class="<?php echo esc_attr( $form_class ); ?>" id="file-form">
|
||||||
|
|
||||||
|
|
|
@ -103,13 +103,13 @@ case 'edit' :
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2>
|
<h1>
|
||||||
<?php
|
<?php
|
||||||
echo esc_html( $title );
|
echo esc_html( $title );
|
||||||
if ( current_user_can( 'upload_files' ) ) { ?>
|
if ( current_user_can( 'upload_files' ) ) { ?>
|
||||||
<a href="media-new.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a>
|
<a href="media-new.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</h2>
|
</h1>
|
||||||
|
|
||||||
<form method="post" class="media-upload-form" id="media-single-form">
|
<form method="post" class="media-upload-form" id="media-single-form">
|
||||||
<p class="submit" style="padding-bottom: 0;">
|
<p class="submit" style="padding-bottom: 0;">
|
||||||
|
|
|
@ -32,7 +32,7 @@ $parent_file = 'tools.php';
|
||||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
|
|
||||||
echo '<div class="wrap">';
|
echo '<div class="wrap">';
|
||||||
echo '<h2>' . esc_html( $title ) . '</h2>';
|
echo '<h1>' . esc_html( $title ) . '</h1>';
|
||||||
|
|
||||||
if ( isset( $_POST['action'] ) && $_POST['action'] == 'deleteblog' && isset( $_POST['confirmdelete'] ) && $_POST['confirmdelete'] == '1' ) {
|
if ( isset( $_POST['action'] ) && $_POST['action'] == 'deleteblog' && isset( $_POST['confirmdelete'] ) && $_POST['confirmdelete'] == '1' ) {
|
||||||
check_admin_referer( 'delete-blog' );
|
check_admin_referer( 'delete-blog' );
|
||||||
|
|
|
@ -56,7 +56,7 @@ if ( $updated ) { ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo esc_html( $title ); ?></h2>
|
<h1><?php echo esc_html( $title ); ?></h1>
|
||||||
<?php
|
<?php
|
||||||
if ( empty( $blogs ) ) :
|
if ( empty( $blogs ) ) :
|
||||||
echo '<p>';
|
echo '<p>';
|
||||||
|
|
|
@ -558,12 +558,12 @@ get_current_screen()->set_help_sidebar(
|
||||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2 class="nav-tab-wrapper">
|
<h1 class="nav-tab-wrapper">
|
||||||
<a href="<?php echo admin_url( 'nav-menus.php' ); ?>" class="nav-tab<?php if ( ! isset( $_GET['action'] ) || isset( $_GET['action'] ) && 'locations' != $_GET['action'] ) echo ' nav-tab-active'; ?>"><?php esc_html_e( 'Edit Menus' ); ?></a>
|
<a href="<?php echo admin_url( 'nav-menus.php' ); ?>" class="nav-tab<?php if ( ! isset( $_GET['action'] ) || isset( $_GET['action'] ) && 'locations' != $_GET['action'] ) echo ' nav-tab-active'; ?>"><?php esc_html_e( 'Edit Menus' ); ?></a>
|
||||||
<?php if ( $num_locations && $menu_count ) : ?>
|
<?php if ( $num_locations && $menu_count ) : ?>
|
||||||
<a href="<?php echo esc_url( add_query_arg( array( 'action' => 'locations' ), admin_url( 'nav-menus.php' ) ) ); ?>" class="nav-tab<?php if ( $locations_screen ) echo ' nav-tab-active'; ?>"><?php esc_html_e( 'Manage Locations' ); ?></a>
|
<a href="<?php echo esc_url( add_query_arg( array( 'action' => 'locations' ), admin_url( 'nav-menus.php' ) ) ); ?>" class="nav-tab<?php if ( $locations_screen ) echo ' nav-tab-active'; ?>"><?php esc_html_e( 'Manage Locations' ); ?></a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</h2>
|
</h1>
|
||||||
<?php
|
<?php
|
||||||
foreach( $messages as $message ) :
|
foreach( $messages as $message ) :
|
||||||
echo $message . "\n";
|
echo $message . "\n";
|
||||||
|
|
|
@ -145,7 +145,7 @@ get_current_screen()->set_help_sidebar(
|
||||||
include( ABSPATH . 'wp-admin/admin-header.php' );
|
include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo esc_html( $title ); ?></h2>
|
<h1><?php echo esc_html( $title ); ?></h1>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -65,7 +65,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo esc_html( $title ); ?></h2>
|
<h1><?php echo esc_html( $title ); ?></h1>
|
||||||
|
|
||||||
<div id="dashboard-widgets-wrap">
|
<div id="dashboard-widgets-wrap">
|
||||||
|
|
||||||
|
|
|
@ -119,7 +119,7 @@ if ( isset( $_GET['updated'] ) ) {
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo esc_html( $title ); ?></h2>
|
<h1><?php echo esc_html( $title ); ?></h1>
|
||||||
<form method="post" action="settings.php" novalidate="novalidate">
|
<form method="post" action="settings.php" novalidate="novalidate">
|
||||||
<?php wp_nonce_field( 'siteoptions' ); ?>
|
<?php wp_nonce_field( 'siteoptions' ); ?>
|
||||||
<h3><?php _e( 'Operational Settings' ); ?></h3>
|
<h3><?php _e( 'Operational Settings' ); ?></h3>
|
||||||
|
|
|
@ -137,7 +137,7 @@ require( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2 id="edit-site"><?php echo $title_site_url_linked ?></h2>
|
<h1 id="edit-site"><?php echo $title_site_url_linked; ?></h1>
|
||||||
<h3 class="nav-tab-wrapper">
|
<h3 class="nav-tab-wrapper">
|
||||||
<?php
|
<?php
|
||||||
$tabs = array(
|
$tabs = array(
|
||||||
|
|
|
@ -130,7 +130,7 @@ require( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2 id="add-new-site"><?php _e('Add New Site') ?></h2>
|
<h1 id="add-new-site"><?php _e( 'Add New Site' ); ?></h1>
|
||||||
<?php
|
<?php
|
||||||
if ( ! empty( $messages ) ) {
|
if ( ! empty( $messages ) ) {
|
||||||
foreach ( $messages as $msg )
|
foreach ( $messages as $msg )
|
||||||
|
|
|
@ -87,7 +87,7 @@ require( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2 id="edit-site"><?php echo $title_site_url_linked ?></h2>
|
<h1 id="edit-site"><?php echo $title_site_url_linked; ?></h1>
|
||||||
<h3 class="nav-tab-wrapper">
|
<h3 class="nav-tab-wrapper">
|
||||||
<?php
|
<?php
|
||||||
$tabs = array(
|
$tabs = array(
|
||||||
|
|
|
@ -139,7 +139,7 @@ $submenu_file = 'sites.php';
|
||||||
require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
|
require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2 id="edit-site"><?php echo $title_site_url_linked ?></h2>
|
<h1 id="edit-site"><?php echo $title_site_url_linked; ?></h1>
|
||||||
<h3 class="nav-tab-wrapper">
|
<h3 class="nav-tab-wrapper">
|
||||||
<?php
|
<?php
|
||||||
$tabs = array(
|
$tabs = array(
|
||||||
|
|
|
@ -182,7 +182,7 @@ var current_site_id = <?php echo $id; ?>;
|
||||||
|
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2 id="edit-site"><?php echo $title_site_url_linked ?></h2>
|
<h1 id="edit-site"><?php echo $title_site_url_linked; ?></h1>
|
||||||
<h3 class="nav-tab-wrapper">
|
<h3 class="nav-tab-wrapper">
|
||||||
<?php
|
<?php
|
||||||
$tabs = array(
|
$tabs = array(
|
||||||
|
|
|
@ -67,7 +67,7 @@ if ( isset( $_GET['action'] ) ) {
|
||||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php _e( 'Confirm your action' ); ?></h2>
|
<h1><?php _e( 'Confirm your action' ); ?></h1>
|
||||||
<form action="sites.php?action=<?php echo esc_attr( $_GET['action2'] ) ?>" method="post">
|
<form action="sites.php?action=<?php echo esc_attr( $_GET['action2'] ) ?>" method="post">
|
||||||
<input type="hidden" name="action" value="<?php echo esc_attr( $_GET['action2'] ) ?>" />
|
<input type="hidden" name="action" value="<?php echo esc_attr( $_GET['action2'] ) ?>" />
|
||||||
<input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
|
<input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
|
||||||
|
@ -248,7 +248,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php _e( 'Sites' ) ?>
|
<h1><?php _e( 'Sites' ); ?>
|
||||||
|
|
||||||
<?php if ( current_user_can( 'create_sites') ) : ?>
|
<?php if ( current_user_can( 'create_sites') ) : ?>
|
||||||
<a href="<?php echo network_admin_url('site-new.php'); ?>" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'site' ); ?></a>
|
<a href="<?php echo network_admin_url('site-new.php'); ?>" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'site' ); ?></a>
|
||||||
|
@ -257,7 +257,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
<?php if ( isset( $_REQUEST['s'] ) && $_REQUEST['s'] ) {
|
<?php if ( isset( $_REQUEST['s'] ) && $_REQUEST['s'] ) {
|
||||||
printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $s ) );
|
printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $s ) );
|
||||||
} ?>
|
} ?>
|
||||||
</h2>
|
</h1>
|
||||||
|
|
||||||
<?php echo $msg; ?>
|
<?php echo $msg; ?>
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,7 @@ if ( $action ) {
|
||||||
require_once(ABSPATH . 'wp-admin/admin-header.php');
|
require_once(ABSPATH . 'wp-admin/admin-header.php');
|
||||||
|
|
||||||
echo '<div class="wrap">';
|
echo '<div class="wrap">';
|
||||||
echo '<h2>' . esc_html( $title ) . '</h2>';
|
echo '<h1>' . esc_html( $title ) . '</h1>';
|
||||||
|
|
||||||
$url = self_admin_url('update.php?action=update-selected-themes&themes=' . urlencode( join(',', $themes) ));
|
$url = self_admin_url('update.php?action=update-selected-themes&themes=' . urlencode( join(',', $themes) ));
|
||||||
$url = wp_nonce_url($url, 'bulk-update-themes');
|
$url = wp_nonce_url($url, 'bulk-update-themes');
|
||||||
|
@ -150,11 +150,11 @@ if ( $action ) {
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<?php if ( 1 == $themes_to_delete ) : ?>
|
<?php if ( 1 == $themes_to_delete ) : ?>
|
||||||
<h2><?php _e( 'Delete Theme' ); ?></h2>
|
<h1><?php _e( 'Delete Theme' ); ?></h1>
|
||||||
<div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'This theme may be active on other sites in the network.' ); ?></p></div>
|
<div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'This theme may be active on other sites in the network.' ); ?></p></div>
|
||||||
<p><?php _e( 'You are about to remove the following theme:' ); ?></p>
|
<p><?php _e( 'You are about to remove the following theme:' ); ?></p>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<h2><?php _e( 'Delete Themes' ); ?></h2>
|
<h1><?php _e( 'Delete Themes' ); ?></h1>
|
||||||
<div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'These themes may be active on other sites in the network.' ); ?></p></div>
|
<div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'These themes may be active on other sites in the network.' ); ?></p></div>
|
||||||
<p><?php _e( 'You are about to remove the following themes:' ); ?></p>
|
<p><?php _e( 'You are about to remove the following themes:' ); ?></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -261,10 +261,10 @@ require_once(ABSPATH . 'wp-admin/admin-header.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php }
|
<h1><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php }
|
||||||
if ( $s )
|
if ( $s )
|
||||||
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $s ) ); ?>
|
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $s ) ); ?>
|
||||||
</h2>
|
</h1>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ( isset( $_GET['enabled'] ) ) {
|
if ( isset( $_GET['enabled'] ) ) {
|
||||||
|
|
|
@ -39,7 +39,7 @@ if ( ! current_user_can( 'manage_network' ) )
|
||||||
wp_die( __( 'You do not have permission to access this page.' ), 403 );
|
wp_die( __( 'You do not have permission to access this page.' ), 403 );
|
||||||
|
|
||||||
echo '<div class="wrap">';
|
echo '<div class="wrap">';
|
||||||
echo '<h2>' . __( 'Upgrade Network' ) . '</h2>';
|
echo '<h1>' . __( 'Upgrade Network' ) . '</h1>';
|
||||||
|
|
||||||
$action = isset($_GET['action']) ? $_GET['action'] : 'show';
|
$action = isset($_GET['action']) ? $_GET['action'] : 'show';
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,7 @@ $parent_file = 'users.php';
|
||||||
require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
|
require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2 id="add-new-user"><?php _e('Add New User') ?></h2>
|
<h1 id="add-new-user"><?php _e( 'Add New User' ); ?></h1>
|
||||||
<?php
|
<?php
|
||||||
if ( ! empty( $messages ) ) {
|
if ( ! empty( $messages ) ) {
|
||||||
foreach ( $messages as $msg )
|
foreach ( $messages as $msg )
|
||||||
|
|
|
@ -26,7 +26,7 @@ function confirm_delete_users( $users ) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<h2><?php esc_html_e( 'Users' ); ?></h2>
|
<h1><?php esc_html_e( 'Users' ); ?></h1>
|
||||||
|
|
||||||
<?php if ( 1 == count( $users ) ) : ?>
|
<?php if ( 1 == count( $users ) ) : ?>
|
||||||
<p><?php _e( 'You have chosen to delete the user from all networks and sites.' ); ?></p>
|
<p><?php _e( 'You have chosen to delete the user from all networks and sites.' ); ?></p>
|
||||||
|
@ -309,7 +309,7 @@ if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty(
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php esc_html_e( 'Users' );
|
<h1><?php esc_html_e( 'Users' );
|
||||||
if ( current_user_can( 'create_users') ) : ?>
|
if ( current_user_can( 'create_users') ) : ?>
|
||||||
<a href="<?php echo network_admin_url('user-new.php'); ?>" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a><?php
|
<a href="<?php echo network_admin_url('user-new.php'); ?>" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a><?php
|
||||||
endif;
|
endif;
|
||||||
|
@ -317,7 +317,7 @@ if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty(
|
||||||
if ( !empty( $usersearch ) )
|
if ( !empty( $usersearch ) )
|
||||||
printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $usersearch ) );
|
printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $usersearch ) );
|
||||||
?>
|
?>
|
||||||
</h2>
|
</h1>
|
||||||
|
|
||||||
<?php $wp_list_table->views(); ?>
|
<?php $wp_list_table->views(); ?>
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo esc_html( $title ); ?></h2>
|
<h1><?php echo esc_html( $title ); ?></h1>
|
||||||
|
|
||||||
<form method="post" action="options.php">
|
<form method="post" action="options.php">
|
||||||
<?php settings_fields('discussion'); ?>
|
<?php settings_fields('discussion'); ?>
|
||||||
|
|
|
@ -109,7 +109,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo esc_html( $title ); ?></h2>
|
<h1><?php echo esc_html( $title ); ?></h1>
|
||||||
|
|
||||||
<form method="post" action="options.php" novalidate="novalidate">
|
<form method="post" action="options.php" novalidate="novalidate">
|
||||||
<?php settings_fields('general'); ?>
|
<?php settings_fields('general'); ?>
|
||||||
|
|
|
@ -40,7 +40,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo esc_html( $title ); ?></h2>
|
<h1><?php echo esc_html( $title ); ?></h1>
|
||||||
|
|
||||||
<form action="options.php" method="post">
|
<form action="options.php" method="post">
|
||||||
<?php settings_fields('media'); ?>
|
<?php settings_fields('media'); ?>
|
||||||
|
|
|
@ -175,7 +175,7 @@ if ( ! is_multisite() ) {
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo esc_html( $title ); ?></h2>
|
<h1><?php echo esc_html( $title ); ?></h1>
|
||||||
|
|
||||||
<form name="form" action="options-permalink.php" method="post">
|
<form name="form" action="options-permalink.php" method="post">
|
||||||
<?php wp_nonce_field('update-permalink') ?>
|
<?php wp_nonce_field('update-permalink') ?>
|
||||||
|
|
|
@ -74,7 +74,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo esc_html( $title ); ?></h2>
|
<h1><?php echo esc_html( $title ); ?></h1>
|
||||||
|
|
||||||
<form method="post" action="options.php">
|
<form method="post" action="options.php">
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -50,7 +50,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo esc_html( $title ); ?></h2>
|
<h1><?php echo esc_html( $title ); ?></h1>
|
||||||
|
|
||||||
<form method="post" action="options.php">
|
<form method="post" action="options.php">
|
||||||
<?php settings_fields('writing'); ?>
|
<?php settings_fields('writing'); ?>
|
||||||
|
|
|
@ -226,7 +226,7 @@ if ( 'update' == $action ) {
|
||||||
include( ABSPATH . 'wp-admin/admin-header.php' ); ?>
|
include( ABSPATH . 'wp-admin/admin-header.php' ); ?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php esc_html_e('All Settings'); ?></h2>
|
<h1><?php esc_html_e( 'All Settings' ); ?></h1>
|
||||||
<form name="form" action="options.php" method="post" id="all-options">
|
<form name="form" action="options.php" method="post" id="all-options">
|
||||||
<?php wp_nonce_field('options-options') ?>
|
<?php wp_nonce_field('options-options') ?>
|
||||||
<input type="hidden" name="action" value="update" />
|
<input type="hidden" name="action" value="update" />
|
||||||
|
|
|
@ -28,7 +28,7 @@ if ( empty( $plugins ) ) {
|
||||||
include( ABSPATH . 'wp-admin/admin-header.php' );
|
include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo esc_html( $title ); ?></h2>
|
<h1><?php echo esc_html( $title ); ?></h1>
|
||||||
<div id="message" class="error"><p><?php _e( 'You do not appear to have any plugins available at this time.' ); ?></p></div>
|
<div id="message" class="error"><p><?php _e( 'You do not appear to have any plugins available at this time.' ); ?></p></div>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
|
@ -174,7 +174,7 @@ default:
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo esc_html( $title ); ?></h2>
|
<h1><?php echo esc_html( $title ); ?></h1>
|
||||||
|
|
||||||
<div class="fileedit-sub">
|
<div class="fileedit-sub">
|
||||||
<div class="alignleft">
|
<div class="alignleft">
|
||||||
|
|
|
@ -94,7 +94,7 @@ get_current_screen()->set_help_sidebar(
|
||||||
include(ABSPATH . 'wp-admin/admin-header.php');
|
include(ABSPATH . 'wp-admin/admin-header.php');
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2>
|
<h1>
|
||||||
<?php
|
<?php
|
||||||
echo esc_html( $title );
|
echo esc_html( $title );
|
||||||
if ( ! empty( $tabs['upload'] ) && current_user_can( 'upload_plugins' ) ) {
|
if ( ! empty( $tabs['upload'] ) && current_user_can( 'upload_plugins' ) ) {
|
||||||
|
@ -108,7 +108,7 @@ include(ABSPATH . 'wp-admin/admin-header.php');
|
||||||
echo ' <a href="' . $href . '" class="upload add-new-h2">' . $text . '</a>';
|
echo ' <a href="' . $href . '" class="upload add-new-h2">' . $text . '</a>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</h2>
|
</h1>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ( $tab !== 'upload' ) {
|
if ( $tab !== 'upload' ) {
|
||||||
|
|
|
@ -122,7 +122,7 @@ if ( $action ) {
|
||||||
require_once(ABSPATH . 'wp-admin/admin-header.php');
|
require_once(ABSPATH . 'wp-admin/admin-header.php');
|
||||||
|
|
||||||
echo '<div class="wrap">';
|
echo '<div class="wrap">';
|
||||||
echo '<h2>' . esc_html( $title ) . '</h2>';
|
echo '<h1>' . esc_html( $title ) . '</h1>';
|
||||||
|
|
||||||
$url = self_admin_url('update.php?action=update-selected&plugins=' . urlencode( join(',', $plugins) ));
|
$url = self_admin_url('update.php?action=update-selected&plugins=' . urlencode( join(',', $plugins) ));
|
||||||
$url = wp_nonce_url($url, 'bulk-update-plugins');
|
$url = wp_nonce_url($url, 'bulk-update-plugins');
|
||||||
|
@ -288,13 +288,13 @@ if ( $action ) {
|
||||||
$plugins_to_delete = count( $plugin_info );
|
$plugins_to_delete = count( $plugin_info );
|
||||||
?>
|
?>
|
||||||
<?php if ( 1 == $plugins_to_delete ) : ?>
|
<?php if ( 1 == $plugins_to_delete ) : ?>
|
||||||
<h2><?php _e( 'Delete Plugin' ); ?></h2>
|
<h1><?php _e( 'Delete Plugin' ); ?></h1>
|
||||||
<?php if ( $have_non_network_plugins && is_network_admin() ) : ?>
|
<?php if ( $have_non_network_plugins && is_network_admin() ) : ?>
|
||||||
<div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'This plugin may be active on other sites in the network.' ); ?></p></div>
|
<div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'This plugin may be active on other sites in the network.' ); ?></p></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<p><?php _e( 'You are about to remove the following plugin:' ); ?></p>
|
<p><?php _e( 'You are about to remove the following plugin:' ); ?></p>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<h2><?php _e( 'Delete Plugins' ); ?></h2>
|
<h1><?php _e( 'Delete Plugins' ); ?></h1>
|
||||||
<?php if ( $have_non_network_plugins && is_network_admin() ) : ?>
|
<?php if ( $have_non_network_plugins && is_network_admin() ) : ?>
|
||||||
<div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'These plugins may be active on other sites in the network.' ); ?></p></div>
|
<div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'These plugins may be active on other sites in the network.' ); ?></p></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -446,13 +446,13 @@ if ( !empty($invalid) )
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo esc_html( $title );
|
<h1><?php echo esc_html( $title );
|
||||||
if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?>
|
if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?>
|
||||||
<a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a>
|
<a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a>
|
||||||
<?php }
|
<?php }
|
||||||
if ( $s )
|
if ( $s )
|
||||||
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $s ) ); ?>
|
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $s ) ); ?>
|
||||||
</h2>
|
</h1>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -74,7 +74,7 @@ default :
|
||||||
|
|
||||||
$post_edit_link = get_edit_post_link();
|
$post_edit_link = get_edit_post_link();
|
||||||
$post_title = '<a href="' . $post_edit_link . '">' . _draft_or_post_title() . '</a>';
|
$post_title = '<a href="' . $post_edit_link . '">' . _draft_or_post_title() . '</a>';
|
||||||
$h2 = sprintf( __( 'Compare Revisions of “%1$s”' ), $post_title );
|
$h1 = sprintf( __( 'Compare Revisions of “%1$s”' ), $post_title );
|
||||||
$return_to_post = '<a href="' . $post_edit_link . '">' . __( '← Return to post editor' ) . '</a>';
|
$return_to_post = '<a href="' . $post_edit_link . '">' . __( '← Return to post editor' ) . '</a>';
|
||||||
$title = __( 'Revisions' );
|
$title = __( 'Revisions' );
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2 class="long-header"><?php echo $h2; ?></h2>
|
<h1 class="long-header"><?php echo $h1; ?></h1>
|
||||||
<?php echo $return_to_post; ?>
|
<?php echo $return_to_post; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -131,7 +131,7 @@ if ( $description != $file_show )
|
||||||
$description .= ' <span>(' . $file_show . ')</span>';
|
$description .= ' <span>(' . $file_show . ')</span>';
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo esc_html( $title ); ?></h2>
|
<h1><?php echo esc_html( $title ); ?></h1>
|
||||||
|
|
||||||
<div class="fileedit-sub">
|
<div class="fileedit-sub">
|
||||||
<div class="alignleft">
|
<div class="alignleft">
|
||||||
|
|
|
@ -102,7 +102,7 @@ include(ABSPATH . 'wp-admin/admin-header.php');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php
|
<h1><?php
|
||||||
echo esc_html( $title );
|
echo esc_html( $title );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -120,7 +120,7 @@ include(ABSPATH . 'wp-admin/admin-header.php');
|
||||||
echo ' <a href="#" class="upload add-new-h2">' . __( 'Upload Theme' ) . '</a>';
|
echo ' <a href="#" class="upload add-new-h2">' . __( 'Upload Theme' ) . '</a>';
|
||||||
echo ' <a href="#" class="browse-themes add-new-h2">' . _x( 'Browse', 'themes' ) . '</a>';
|
echo ' <a href="#" class="browse-themes add-new-h2">' . _x( 'Browse', 'themes' ) . '</a>';
|
||||||
}
|
}
|
||||||
?></h2>
|
?></h1>
|
||||||
|
|
||||||
<div class="upload-theme">
|
<div class="upload-theme">
|
||||||
<?php install_themes_upload(); ?>
|
<?php install_themes_upload(); ?>
|
||||||
|
|
|
@ -124,12 +124,12 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php esc_html_e( 'Themes' ); ?>
|
<h1><?php esc_html_e( 'Themes' ); ?>
|
||||||
<span class="title-count theme-count"><?php echo count( $themes ); ?></span>
|
<span class="title-count theme-count"><?php echo count( $themes ); ?></span>
|
||||||
<?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
|
<?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
|
||||||
<a href="<?php echo admin_url( 'theme-install.php' ); ?>" class="hide-if-no-js add-new-h2"><?php echo esc_html_x( 'Add New', 'Add new theme' ); ?></a>
|
<a href="<?php echo admin_url( 'theme-install.php' ); ?>" class="hide-if-no-js add-new-h2"><?php echo esc_html_x( 'Add New', 'Add new theme' ); ?></a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</h2>
|
</h1>
|
||||||
<?php
|
<?php
|
||||||
if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) : ?>
|
if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) : ?>
|
||||||
<div id="message1" class="updated notice is-dismissible"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div>
|
<div id="message1" class="updated notice is-dismissible"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div>
|
||||||
|
|
|
@ -33,7 +33,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo esc_html( $title ); ?></h2>
|
<h1><?php echo esc_html( $title ); ?></h1>
|
||||||
|
|
||||||
<?php if ( current_user_can('edit_posts') ) : ?>
|
<?php if ( current_user_can('edit_posts') ) : ?>
|
||||||
<div class="card pressthis">
|
<div class="card pressthis">
|
||||||
|
|
|
@ -415,7 +415,7 @@ function do_core_upgrade( $reinstall = false ) {
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php _e('Update WordPress'); ?></h2>
|
<h1><?php _e( 'Update WordPress' ); ?></h1>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if ( false === ( $credentials = request_filesystem_credentials( $url, '', false, ABSPATH, array( 'version', 'locale' ), $allow_relaxed_file_ownership ) ) ) {
|
if ( false === ( $credentials = request_filesystem_credentials( $url, '', false, ABSPATH, array( 'version', 'locale' ), $allow_relaxed_file_ownership ) ) ) {
|
||||||
|
@ -542,7 +542,7 @@ if ( 'upgrade-core' == $action ) {
|
||||||
require_once(ABSPATH . 'wp-admin/admin-header.php');
|
require_once(ABSPATH . 'wp-admin/admin-header.php');
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php _e('WordPress Updates'); ?></h2>
|
<h1><?php _e( 'WordPress Updates' ); ?></h1>
|
||||||
<?php
|
<?php
|
||||||
if ( $upgrade_error ) {
|
if ( $upgrade_error ) {
|
||||||
echo '<div class="error"><p>';
|
echo '<div class="error"><p>';
|
||||||
|
@ -624,7 +624,7 @@ if ( 'upgrade-core' == $action ) {
|
||||||
|
|
||||||
require_once(ABSPATH . 'wp-admin/admin-header.php');
|
require_once(ABSPATH . 'wp-admin/admin-header.php');
|
||||||
echo '<div class="wrap">';
|
echo '<div class="wrap">';
|
||||||
echo '<h2>' . esc_html__('Update Plugins') . '</h2>';
|
echo '<h1>' . __( 'Update Plugins' ) . '</h1>';
|
||||||
echo '<iframe src="', $url, '" style="width: 100%; height: 100%; min-height: 750px;" frameborder="0"></iframe>';
|
echo '<iframe src="', $url, '" style="width: 100%; height: 100%; min-height: 750px;" frameborder="0"></iframe>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
include(ABSPATH . 'wp-admin/admin-footer.php');
|
include(ABSPATH . 'wp-admin/admin-footer.php');
|
||||||
|
@ -653,7 +653,7 @@ if ( 'upgrade-core' == $action ) {
|
||||||
require_once(ABSPATH . 'wp-admin/admin-header.php');
|
require_once(ABSPATH . 'wp-admin/admin-header.php');
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo esc_html__('Update Themes') ?></h2>
|
<h1><?php _e( 'Update Themes' ); ?></h1>
|
||||||
<iframe src="<?php echo $url ?>" style="width: 100%; height: 100%; min-height: 750px;" frameborder="0"></iframe>
|
<iframe src="<?php echo $url ?>" style="width: 100%; height: 100%; min-height: 750px;" frameborder="0"></iframe>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -71,14 +71,14 @@ if ( 'grid' === $mode ) {
|
||||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
<div class="wrap" id="wp-media-grid" data-search="<?php _admin_search_query() ?>">
|
<div class="wrap" id="wp-media-grid" data-search="<?php _admin_search_query() ?>">
|
||||||
<h2>
|
<h1>
|
||||||
<?php
|
<?php
|
||||||
echo esc_html( $title );
|
echo esc_html( $title );
|
||||||
if ( current_user_can( 'upload_files' ) ) { ?>
|
if ( current_user_can( 'upload_files' ) ) { ?>
|
||||||
<a href="media-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php
|
<a href="media-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</h2>
|
</h1>
|
||||||
<div class="error hide-if-js">
|
<div class="error hide-if-js">
|
||||||
<p><?php _e( 'The grid view for the Media Library requires JavaScript. <a href="upload.php?mode=list">Switch to the list view</a>.' ); ?></p>
|
<p><?php _e( 'The grid view for the Media Library requires JavaScript. <a href="upload.php?mode=list">Switch to the list view</a>.' ); ?></p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -206,7 +206,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2>
|
<h1>
|
||||||
<?php
|
<?php
|
||||||
echo esc_html( $title );
|
echo esc_html( $title );
|
||||||
if ( current_user_can( 'upload_files' ) ) { ?>
|
if ( current_user_can( 'upload_files' ) ) { ?>
|
||||||
|
@ -214,7 +214,7 @@ if ( current_user_can( 'upload_files' ) ) { ?>
|
||||||
}
|
}
|
||||||
if ( ! empty( $_REQUEST['s'] ) )
|
if ( ! empty( $_REQUEST['s'] ) )
|
||||||
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() ); ?>
|
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() ); ?>
|
||||||
</h2>
|
</h1>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$message = '';
|
$message = '';
|
||||||
|
|
|
@ -202,7 +202,7 @@ include(ABSPATH . 'wp-admin/admin-header.php');
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="wrap" id="profile-page">
|
<div class="wrap" id="profile-page">
|
||||||
<h2>
|
<h1>
|
||||||
<?php
|
<?php
|
||||||
echo esc_html( $title );
|
echo esc_html( $title );
|
||||||
if ( ! IS_PROFILE_PAGE ) {
|
if ( ! IS_PROFILE_PAGE ) {
|
||||||
|
@ -212,7 +212,7 @@ if ( ! IS_PROFILE_PAGE ) {
|
||||||
<a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a>
|
<a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a>
|
||||||
<?php }
|
<?php }
|
||||||
} ?>
|
} ?>
|
||||||
</h2>
|
</h1>
|
||||||
<form id="your-profile" action="<?php echo esc_url( self_admin_url( IS_PROFILE_PAGE ? 'profile.php' : 'user-edit.php' ) ); ?>" method="post" novalidate="novalidate"<?php
|
<form id="your-profile" action="<?php echo esc_url( self_admin_url( IS_PROFILE_PAGE ? 'profile.php' : 'user-edit.php' ) ); ?>" method="post" novalidate="novalidate"<?php
|
||||||
/**
|
/**
|
||||||
* Fires inside the your-profile form tag on the user editing screen.
|
* Fires inside the your-profile form tag on the user editing screen.
|
||||||
|
|
|
@ -237,13 +237,13 @@ if ( isset($_GET['update']) ) {
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2 id="add-new-user"> <?php
|
<h1 id="add-new-user"><?php
|
||||||
if ( current_user_can( 'create_users' ) ) {
|
if ( current_user_can( 'create_users' ) ) {
|
||||||
echo _x( 'Add New User', 'user' );
|
echo _x( 'Add New User', 'user' );
|
||||||
} elseif ( current_user_can( 'promote_users' ) ) {
|
} elseif ( current_user_can( 'promote_users' ) ) {
|
||||||
echo _x( 'Add Existing User', 'user' );
|
echo _x( 'Add Existing User', 'user' );
|
||||||
} ?>
|
} ?>
|
||||||
</h2>
|
</h1>
|
||||||
|
|
||||||
<?php if ( isset($errors) && is_wp_error( $errors ) ) : ?>
|
<?php if ( isset($errors) && is_wp_error( $errors ) ) : ?>
|
||||||
<div class="error">
|
<div class="error">
|
||||||
|
|
|
@ -214,7 +214,7 @@ case 'delete':
|
||||||
<?php echo $referer; ?>
|
<?php echo $referer; ?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php _e('Delete Users'); ?></h2>
|
<h1><?php _e( 'Delete Users' ); ?></h1>
|
||||||
<?php if ( isset( $_REQUEST['error'] ) ) : ?>
|
<?php if ( isset( $_REQUEST['error'] ) ) : ?>
|
||||||
<div class="error">
|
<div class="error">
|
||||||
<p><strong><?php _e( 'ERROR:' ); ?></strong> <?php _e( 'Please select an option.' ); ?></p>
|
<p><strong><?php _e( 'ERROR:' ); ?></strong> <?php _e( 'Please select an option.' ); ?></p>
|
||||||
|
@ -336,7 +336,7 @@ case 'remove':
|
||||||
<?php echo $referer; ?>
|
<?php echo $referer; ?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php _e('Remove Users from Site'); ?></h2>
|
<h1><?php _e( 'Remove Users from Site' ); ?></h1>
|
||||||
<p><?php _e('You have specified these users for removal:'); ?></p>
|
<p><?php _e('You have specified these users for removal:'); ?></p>
|
||||||
<ul>
|
<ul>
|
||||||
<?php
|
<?php
|
||||||
|
@ -443,7 +443,7 @@ if ( ! empty($messages) ) {
|
||||||
} ?>
|
} ?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2>
|
<h1>
|
||||||
<?php
|
<?php
|
||||||
echo esc_html( $title );
|
echo esc_html( $title );
|
||||||
if ( current_user_can( 'create_users' ) ) { ?>
|
if ( current_user_can( 'create_users' ) ) { ?>
|
||||||
|
@ -454,7 +454,7 @@ if ( current_user_can( 'create_users' ) ) { ?>
|
||||||
|
|
||||||
if ( $usersearch )
|
if ( $usersearch )
|
||||||
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $usersearch ) ); ?>
|
printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $usersearch ) ); ?>
|
||||||
</h2>
|
</h1>
|
||||||
|
|
||||||
<?php $wp_list_table->views(); ?>
|
<?php $wp_list_table->views(); ?>
|
||||||
|
|
||||||
|
|
|
@ -235,7 +235,7 @@ if ( isset($_GET['editwidget']) && $_GET['editwidget'] ) {
|
||||||
|
|
||||||
require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
|
require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php echo esc_html( $title ); ?></h2>
|
<h1><?php echo esc_html( $title ); ?></h1>
|
||||||
<div class="editwidget"<?php echo $width; ?>>
|
<div class="editwidget"<?php echo $width; ?>>
|
||||||
<h3><?php printf( __( 'Widget %s' ), $name ); ?></h3>
|
<h3><?php printf( __( 'Widget %s' ), $name ); ?></h3>
|
||||||
|
|
||||||
|
@ -315,7 +315,7 @@ $errors = array(
|
||||||
require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
|
require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2>
|
<h1>
|
||||||
<?php
|
<?php
|
||||||
echo esc_html( $title );
|
echo esc_html( $title );
|
||||||
if ( current_user_can( 'customize' ) ) {
|
if ( current_user_can( 'customize' ) ) {
|
||||||
|
@ -332,7 +332,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</h2>
|
</h1>
|
||||||
|
|
||||||
<?php if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) { ?>
|
<?php if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) { ?>
|
||||||
<div id="message" class="updated notice is-dismissible"><p><?php echo $messages[$_GET['message']]; ?></p></div>
|
<div id="message" class="updated notice is-dismissible"><p><?php echo $messages[$_GET['message']]; ?></p></div>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.3-alpha-32973';
|
$wp_version = '4.3-alpha-32974';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue