Wordpress++

This commit is contained in:
nikolark committed 2015-08-22 18:55:55 +02:00
1 parent 790f1487a2
commit 3f49ab1747
610 files changed
+58979 -36562

No files matched your search

+9 -4
View 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>