~canonical-sysadmins/wordpress/4.5.2

« back to all changes in this revision

Viewing changes to wp-admin/widgets.php

  • Committer: Ryan Finnie
  • Date: 2015-08-31 16:09:47 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: ryan.finnie@canonical.com-20150831160947-1h6rfxby9z1ec62u
Merge WP4.3 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
        set_user_setting( 'widgets_access', $widgets_access );
22
22
}
23
23
 
 
24
/**
 
25
 *
 
26
 * @param string $classes
 
27
 * @return string
 
28
 */
24
29
function wp_widgets_access_body_class($classes) {
25
30
        return "$classes widgets_access ";
26
31
}
230
235
 
231
236
        require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
232
237
        <div class="wrap">
233
 
        <h2><?php echo esc_html( $title ); ?></h2>
 
238
        <h1><?php echo esc_html( $title ); ?></h1>
234
239
        <div class="editwidget"<?php echo $width; ?>>
235
240
        <h3><?php printf( __( 'Widget %s' ), $name ); ?></h3>
236
241
 
310
315
require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
311
316
 
312
317
<div class="wrap">
313
 
<h2>
 
318
<h1>
314
319
<?php
315
320
        echo esc_html( $title );
316
321
        if ( current_user_can( 'customize' ) ) {
317
322
                printf(
318
 
                        ' <a class="add-new-h2 hide-if-no-customize" href="%1$s">%2$s</a>',
 
323
                        ' <a class="page-title-action hide-if-no-customize" href="%1$s">%2$s</a>',
319
324
                        esc_url( add_query_arg(
320
325
                                array(
321
326
                                        array( 'autofocus' => array( 'panel' => 'widgets' ) ),
327
332
                );
328
333
        }
329
334
?>
330
 
</h2>
 
335
</h1>
331
336
 
332
337
<?php if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) { ?>
333
338
<div id="message" class="updated notice is-dismissible"><p><?php echo $messages[$_GET['message']]; ?></p></div>