]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/widgets.php
WordPress 4.3
[autoinstalls/wordpress.git] / wp-admin / widgets.php
index 1e34d81bb016be22536fee2a6586c032dbfdbbf7..679f1032b04a451cf0190c6303187f5a44677e4f 100644 (file)
@@ -21,6 +21,11 @@ if ( isset($_GET['widgets-access']) ) {
        set_user_setting( 'widgets_access', $widgets_access );
 }
 
+/**
+ *
+ * @param string $classes
+ * @return string
+ */
 function wp_widgets_access_body_class($classes) {
        return "$classes widgets_access ";
 }
@@ -230,7 +235,7 @@ if ( isset($_GET['editwidget']) && $_GET['editwidget'] ) {
 
        require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
        <div class="wrap">
-       <h2><?php echo esc_html( $title ); ?></h2>
+       <h1><?php echo esc_html( $title ); ?></h1>
        <div class="editwidget"<?php echo $width; ?>>
        <h3><?php printf( __( 'Widget %s' ), $name ); ?></h3>
 
@@ -310,12 +315,12 @@ $errors = array(
 require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
 
 <div class="wrap">
-<h2>
+<h1>
 <?php
        echo esc_html( $title );
        if ( current_user_can( 'customize' ) ) {
                printf(
-                       ' <a class="add-new-h2 hide-if-no-customize" href="%1$s">%2$s</a>',
+                       ' <a class="page-title-action hide-if-no-customize" href="%1$s">%2$s</a>',
                        esc_url( add_query_arg(
                                array(
                                        array( 'autofocus' => array( 'panel' => 'widgets' ) ),
@@ -327,7 +332,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
                );
        }
 ?>
-</h2>
+</h1>
 
 <?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>