mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-16 07:35:39 +01:00
Remove unused .fade CSS class, props nacin, fixes #11628
git-svn-id: http://svn.automattic.com/wordpress/trunk@12546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b3871f9247
commit
4134133d53
@ -141,7 +141,7 @@ if ( isset($_GET['s']) && $_GET['s'] )
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
|
if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
|
||||||
<div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div>
|
<div id="message" class="updated"><p><?php echo $messages[$msg]; ?></p></div>
|
||||||
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
|
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
|
||||||
endif; ?>
|
endif; ?>
|
||||||
|
|
||||||
|
@ -268,7 +268,7 @@ class Custom_Image_Header {
|
|||||||
*/
|
*/
|
||||||
function step_1() {
|
function step_1() {
|
||||||
if ( $_GET['updated'] ) { ?>
|
if ( $_GET['updated'] ) { ?>
|
||||||
<div id="message" class="updated fade">
|
<div id="message" class="updated">
|
||||||
<p><?php _e('Header updated.') ?></p>
|
<p><?php _e('Header updated.') ?></p>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
@ -135,7 +135,7 @@ if ( isset($_GET['approved']) || isset($_GET['deleted']) || isset($_GET['trashed
|
|||||||
$unspammed = isset($_GET['unspammed']) ? (int) $_GET['unspammed'] : 0;
|
$unspammed = isset($_GET['unspammed']) ? (int) $_GET['unspammed'] : 0;
|
||||||
|
|
||||||
if ( $approved > 0 || $deleted > 0 || $trashed > 0 || $untrashed > 0 || $spammed > 0 || $unspammed > 0 ) {
|
if ( $approved > 0 || $deleted > 0 || $trashed > 0 || $untrashed > 0 || $spammed > 0 || $unspammed > 0 ) {
|
||||||
echo '<div id="moderated" class="updated fade"><p>';
|
echo '<div id="moderated" class="updated"><p>';
|
||||||
|
|
||||||
if ( $approved > 0 ) {
|
if ( $approved > 0 ) {
|
||||||
printf( _n( '%s comment approved', '%s comments approved', $approved ), $approved );
|
printf( _n( '%s comment approved', '%s comments approved', $approved ), $approved );
|
||||||
|
@ -136,7 +136,7 @@ require_once('admin-header.php');
|
|||||||
<div id="notice" class="error"><p><?php echo $notice ?></p></div>
|
<div id="notice" class="error"><p><?php echo $notice ?></p></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if ( $message ) : ?>
|
<?php if ( $message ) : ?>
|
||||||
<div id="message" class="updated fade"><p><?php echo $message; ?></p></div>
|
<div id="message" class="updated"><p><?php echo $message; ?></p></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<form name="post" action="post.php" method="post" id="post">
|
<form name="post" action="post.php" method="post" id="post">
|
||||||
<?php
|
<?php
|
||||||
|
@ -68,7 +68,7 @@ if ( isset($_GET['s']) && $_GET['s'] )
|
|||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<?php if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
|
<?php if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
|
||||||
<div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div>
|
<div id="message" class="updated"><p><?php echo $messages[$msg]; ?></p></div>
|
||||||
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
|
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
|
||||||
endif; ?>
|
endif; ?>
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ require_once ('admin-header.php');
|
|||||||
<h2><?php echo esc_html( $title ); ?></h2>
|
<h2><?php echo esc_html( $title ); ?></h2>
|
||||||
|
|
||||||
<?php if ( isset( $_GET['added'] ) ) : ?>
|
<?php if ( isset( $_GET['added'] ) ) : ?>
|
||||||
<div id="message" class="updated fade"><p><?php _e('Link added.'); ?></p></div>
|
<div id="message" class="updated"><p><?php _e('Link added.'); ?></p></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
@ -108,7 +108,7 @@ require_once('admin-header.php');
|
|||||||
<div id="notice" class="error"><p><?php echo $notice ?></p></div>
|
<div id="notice" class="error"><p><?php echo $notice ?></p></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if ( $message ) : ?>
|
<?php if ( $message ) : ?>
|
||||||
<div id="message" class="updated fade"><p><?php echo $message; ?></p></div>
|
<div id="message" class="updated"><p><?php echo $message; ?></p></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php wp_nonce_field($nonce_action); ?>
|
<?php wp_nonce_field($nonce_action); ?>
|
||||||
|
@ -147,7 +147,7 @@ if ( isset($_GET['s']) && $_GET['s'] )
|
|||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<?php if ( isset($_GET['locked']) || isset($_GET['skipped']) || isset($_GET['updated']) || isset($_GET['deleted']) || isset($_GET['trashed']) || isset($_GET['untrashed']) ) { ?>
|
<?php if ( isset($_GET['locked']) || isset($_GET['skipped']) || isset($_GET['updated']) || isset($_GET['deleted']) || isset($_GET['trashed']) || isset($_GET['untrashed']) ) { ?>
|
||||||
<div id="message" class="updated fade"><p>
|
<div id="message" class="updated"><p>
|
||||||
<?php if ( isset($_GET['updated']) && (int) $_GET['updated'] ) {
|
<?php if ( isset($_GET['updated']) && (int) $_GET['updated'] ) {
|
||||||
printf( _n( '%s page updated.', '%s pages updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) );
|
printf( _n( '%s page updated.', '%s pages updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) );
|
||||||
unset($_GET['updated']);
|
unset($_GET['updated']);
|
||||||
@ -180,7 +180,7 @@ $_SERVER['REQUEST_URI'] = remove_query_arg( array('locked', 'skipped', 'updated'
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?>
|
<?php if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?>
|
||||||
<div id="message" class="updated fade"><p><strong><?php _e('Your page has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View page'); ?></a> | <a href="<?php echo get_edit_post_link( $_GET['posted'] ); ?>"><?php _e('Edit page'); ?></a></p></div>
|
<div id="message" class="updated"><p><strong><?php _e('Your page has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View page'); ?></a> | <a href="<?php echo get_edit_post_link( $_GET['posted'] ); ?>"><?php _e('Edit page'); ?></a></p></div>
|
||||||
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);
|
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);
|
||||||
endif; ?>
|
endif; ?>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ if ( !current_user_can('manage_categories') )
|
|||||||
wp_die(__('You do not have sufficient permissions to edit tags for this blog.'));
|
wp_die(__('You do not have sufficient permissions to edit tags for this blog.'));
|
||||||
|
|
||||||
if ( empty($tag_ID) ) { ?>
|
if ( empty($tag_ID) ) { ?>
|
||||||
<div id="message" class="updated fade"><p><strong><?php _e('A tag was not selected for editing.'); ?></strong></p></div>
|
<div id="message" class="updated"><p><strong><?php _e('A tag was not selected for editing.'); ?></strong></p></div>
|
||||||
<?php
|
<?php
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -157,7 +157,7 @@ if ( isset($_GET['s']) && $_GET['s'] )
|
|||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<?php if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
|
<?php if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
|
||||||
<div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div>
|
<div id="message" class="updated"><p><?php echo $messages[$msg]; ?></p></div>
|
||||||
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
|
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
|
||||||
endif; ?>
|
endif; ?>
|
||||||
<div id="ajax-response"></div>
|
<div id="ajax-response"></div>
|
||||||
|
@ -141,12 +141,12 @@ if ( isset($_GET['s']) && $_GET['s'] )
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?>
|
if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?>
|
||||||
<div id="message" class="updated fade"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View post'); ?></a> | <a href="<?php echo get_edit_post_link( $_GET['posted'] ); ?>"><?php _e('Edit post'); ?></a></p></div>
|
<div id="message" class="updated"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View post'); ?></a> | <a href="<?php echo get_edit_post_link( $_GET['posted'] ); ?>"><?php _e('Edit post'); ?></a></p></div>
|
||||||
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);
|
<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);
|
||||||
endif; ?>
|
endif; ?>
|
||||||
|
|
||||||
<?php if ( isset($_GET['locked']) || isset($_GET['skipped']) || isset($_GET['updated']) || isset($_GET['deleted']) || isset($_GET['trashed']) || isset($_GET['untrashed']) ) { ?>
|
<?php if ( isset($_GET['locked']) || isset($_GET['skipped']) || isset($_GET['updated']) || isset($_GET['deleted']) || isset($_GET['trashed']) || isset($_GET['untrashed']) ) { ?>
|
||||||
<div id="message" class="updated fade"><p>
|
<div id="message" class="updated"><p>
|
||||||
<?php if ( isset($_GET['updated']) && (int) $_GET['updated'] ) {
|
<?php if ( isset($_GET['updated']) && (int) $_GET['updated'] ) {
|
||||||
printf( _n( '%s post updated.', '%s posts updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) );
|
printf( _n( '%s post updated.', '%s posts updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) );
|
||||||
unset($_GET['updated']);
|
unset($_GET['updated']);
|
||||||
|
@ -79,7 +79,7 @@ if ( isset($_GET['s']) && $_GET['s'] )
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ( isset($_GET['deleted']) ) {
|
if ( isset($_GET['deleted']) ) {
|
||||||
echo '<div id="message" class="updated fade"><p>';
|
echo '<div id="message" class="updated"><p>';
|
||||||
$deleted = (int) $_GET['deleted'];
|
$deleted = (int) $_GET['deleted'];
|
||||||
printf(_n('%s link deleted.', '%s links deleted', $deleted), $deleted);
|
printf(_n('%s link deleted.', '%s links deleted', $deleted), $deleted);
|
||||||
echo '</p></div>';
|
echo '</p></div>';
|
||||||
|
@ -76,7 +76,7 @@ case 'edit' :
|
|||||||
switch ( $_GET['message'] ) :
|
switch ( $_GET['message'] ) :
|
||||||
case 'updated' :
|
case 'updated' :
|
||||||
$message = __('Media attachment updated.');
|
$message = __('Media attachment updated.');
|
||||||
$class = 'updated fade';
|
$class = 'updated';
|
||||||
break;
|
break;
|
||||||
endswitch;
|
endswitch;
|
||||||
}
|
}
|
||||||
|
@ -13,5 +13,5 @@ wp_reset_vars(array('action', 'standalone', 'option_group_id'));
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if (isset($_GET['updated'])) : ?>
|
<?php if (isset($_GET['updated'])) : ?>
|
||||||
<div id="message" class="updated fade"><p><strong><?php _e('Settings saved.') ?></strong></p></div>
|
<div id="message" class="updated"><p><strong><?php _e('Settings saved.') ?></strong></p></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
@ -125,7 +125,7 @@ $wp_rewrite->flush_rules();
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if (isset($_POST['submit'])) : ?>
|
<?php if (isset($_POST['submit'])) : ?>
|
||||||
<div id="message" class="updated fade"><p><?php
|
<div id="message" class="updated"><p><?php
|
||||||
if ( $iis7_permalinks ) {
|
if ( $iis7_permalinks ) {
|
||||||
if ( $permalink_structure && ! $usingpi && ! $writable )
|
if ( $permalink_structure && ! $usingpi && ! $writable )
|
||||||
_e('You should update your web.config now');
|
_e('You should update your web.config now');
|
||||||
|
@ -45,7 +45,7 @@ include('admin-header.php');
|
|||||||
<li><?php printf("<label for='page_for_posts'>".__('Posts page: %s')."</label>", wp_dropdown_pages("name=page_for_posts&echo=0&show_option_none=".__('- Select -')."&selected=" . get_option('page_for_posts'))); ?></li>
|
<li><?php printf("<label for='page_for_posts'>".__('Posts page: %s')."</label>", wp_dropdown_pages("name=page_for_posts&echo=0&show_option_none=".__('- Select -')."&selected=" . get_option('page_for_posts'))); ?></li>
|
||||||
</ul>
|
</ul>
|
||||||
<?php if ( 'page' == get_option('show_on_front') && get_option('page_for_posts') == get_option('page_on_front') ) : ?>
|
<?php if ( 'page' == get_option('show_on_front') && get_option('page_for_posts') == get_option('page_on_front') ) : ?>
|
||||||
<div id="front-page-warning" class="updated fade-ff0000">
|
<div id="front-page-warning" class="updated">
|
||||||
<p>
|
<p>
|
||||||
<?php _e('<strong>Warning:</strong> these pages should not be the same!'); ?>
|
<?php _e('<strong>Warning:</strong> these pages should not be the same!'); ?>
|
||||||
</p>
|
</p>
|
||||||
|
@ -123,9 +123,9 @@ default:
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<?php if (isset($_GET['a'])) : ?>
|
<?php if (isset($_GET['a'])) : ?>
|
||||||
<div id="message" class="updated fade"><p><?php _e('File edited successfully.') ?></p></div>
|
<div id="message" class="updated"><p><?php _e('File edited successfully.') ?></p></div>
|
||||||
<?php elseif (isset($_GET['phperror'])) : ?>
|
<?php elseif (isset($_GET['phperror'])) : ?>
|
||||||
<div id="message" class="updated fade"><p><?php _e('This plugin has been deactivated because your changes resulted in a <strong>fatal error</strong>.') ?></p>
|
<div id="message" class="updated"><p><?php _e('This plugin has been deactivated because your changes resulted in a <strong>fatal error</strong>.') ?></p>
|
||||||
<?php
|
<?php
|
||||||
if ( wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $file) ) { ?>
|
if ( wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $file) ) { ?>
|
||||||
<iframe style="border:0" width="100%" height="70px" src="<?php bloginfo('wpurl'); ?>/wp-admin/plugins.php?action=error_scrape&plugin=<?php echo esc_attr($file); ?>&_wpnonce=<?php echo esc_attr($_GET['_error_nonce']); ?>"></iframe>
|
<iframe style="border:0" width="100%" height="70px" src="<?php bloginfo('wpurl'); ?>/wp-admin/plugins.php?action=error_scrape&plugin=<?php echo esc_attr($file); ?>&_wpnonce=<?php echo esc_attr($_GET['_error_nonce']); ?>"></iframe>
|
||||||
|
@ -246,7 +246,7 @@ if ( !empty($invalid) )
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if ( isset($_GET['error']) ) : ?>
|
<?php if ( isset($_GET['error']) ) : ?>
|
||||||
<div id="message" class="updated fade"><p><?php _e('Plugin could not be activated because it triggered a <strong>fatal error</strong>.') ?></p>
|
<div id="message" class="updated"><p><?php _e('Plugin could not be activated because it triggered a <strong>fatal error</strong>.') ?></p>
|
||||||
<?php
|
<?php
|
||||||
if ( wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $plugin) ) { ?>
|
if ( wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $plugin) ) { ?>
|
||||||
<iframe style="border:0" width="100%" height="70px" src="<?php echo admin_url('plugins.php?action=error_scrape&plugin=' . esc_attr($plugin) . '&_wpnonce=' . esc_attr($_GET['_error_nonce'])); ?>"></iframe>
|
<iframe style="border:0" width="100%" height="70px" src="<?php echo admin_url('plugins.php?action=error_scrape&plugin=' . esc_attr($plugin) . '&_wpnonce=' . esc_attr($_GET['_error_nonce'])); ?>"></iframe>
|
||||||
@ -259,18 +259,18 @@ if ( !empty($invalid) )
|
|||||||
delete_transient('plugins_delete_result'); //Delete it once we're done.
|
delete_transient('plugins_delete_result'); //Delete it once we're done.
|
||||||
|
|
||||||
if ( is_wp_error($delete_result) ) : ?>
|
if ( is_wp_error($delete_result) ) : ?>
|
||||||
<div id="message" class="updated fade"><p><?php printf( __('Plugin could not be deleted due to an error: %s'), $delete_result->get_error_message() ); ?></p></div>
|
<div id="message" class="updated"><p><?php printf( __('Plugin could not be deleted due to an error: %s'), $delete_result->get_error_message() ); ?></p></div>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<div id="message" class="updated fade"><p><?php _e('The selected plugins have been <strong>deleted</strong>.'); ?></p></div>
|
<div id="message" class="updated"><p><?php _e('The selected plugins have been <strong>deleted</strong>.'); ?></p></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php elseif ( isset($_GET['activate']) ) : ?>
|
<?php elseif ( isset($_GET['activate']) ) : ?>
|
||||||
<div id="message" class="updated fade"><p><?php _e('Plugin <strong>activated</strong>.') ?></p></div>
|
<div id="message" class="updated"><p><?php _e('Plugin <strong>activated</strong>.') ?></p></div>
|
||||||
<?php elseif (isset($_GET['activate-multi'])) : ?>
|
<?php elseif (isset($_GET['activate-multi'])) : ?>
|
||||||
<div id="message" class="updated fade"><p><?php _e('Selected plugins <strong>activated</strong>.'); ?></p></div>
|
<div id="message" class="updated"><p><?php _e('Selected plugins <strong>activated</strong>.'); ?></p></div>
|
||||||
<?php elseif ( isset($_GET['deactivate']) ) : ?>
|
<?php elseif ( isset($_GET['deactivate']) ) : ?>
|
||||||
<div id="message" class="updated fade"><p><?php _e('Plugin <strong>deactivated</strong>.') ?></p></div>
|
<div id="message" class="updated"><p><?php _e('Plugin <strong>deactivated</strong>.') ?></p></div>
|
||||||
<?php elseif (isset($_GET['deactivate-multi'])) : ?>
|
<?php elseif (isset($_GET['deactivate-multi'])) : ?>
|
||||||
<div id="message" class="updated fade"><p><?php _e('Selected plugins <strong>deactivated</strong>.'); ?></p></div>
|
<div id="message" class="updated"><p><?php _e('Selected plugins <strong>deactivated</strong>.'); ?></p></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
|
@ -542,7 +542,7 @@ var photostorage = false;
|
|||||||
</div>
|
</div>
|
||||||
<div class="posting">
|
<div class="posting">
|
||||||
<?php if ( isset($posted) && intval($posted) ) { $post_ID = intval($posted); ?>
|
<?php if ( isset($posted) && intval($posted) ) { $post_ID = intval($posted); ?>
|
||||||
<div id="message" class="updated fade"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a onclick="window.opener.location.replace(this.href); window.close();" href="<?php echo get_permalink( $post_ID); ?>"><?php _e('View post'); ?></a> | <a href="<?php echo get_edit_post_link( $post_ID ); ?>" onclick="window.opener.location.replace(this.href); window.close();"><?php _e('Edit post'); ?></a> | <a href="#" onclick="window.close();"><?php _e('Close Window'); ?></a></p></div>
|
<div id="message" class="updated"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a onclick="window.opener.location.replace(this.href); window.close();" href="<?php echo get_permalink( $post_ID); ?>"><?php _e('View post'); ?></a> | <a href="<?php echo get_edit_post_link( $post_ID ); ?>" onclick="window.opener.location.replace(this.href); window.close();"><?php _e('Edit post'); ?></a> | <a href="#" onclick="window.close();"><?php _e('Close Window'); ?></a></p></div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<div id="titlediv">
|
<div id="titlediv">
|
||||||
|
@ -107,7 +107,7 @@ default:
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<?php if (isset($_GET['a'])) : ?>
|
<?php if (isset($_GET['a'])) : ?>
|
||||||
<div id="message" class="updated fade"><p><?php _e('File edited successfully.') ?></p></div>
|
<div id="message" class="updated"><p><?php _e('File edited successfully.') ?></p></div>
|
||||||
<?php endif;
|
<?php endif;
|
||||||
|
|
||||||
$description = get_file_description($file);
|
$description = get_file_description($file);
|
||||||
|
@ -46,15 +46,15 @@ require_once('admin-header.php');
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if ( ! validate_current_theme() ) : ?>
|
<?php if ( ! validate_current_theme() ) : ?>
|
||||||
<div id="message1" class="updated fade"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div>
|
<div id="message1" class="updated"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div>
|
||||||
<?php elseif ( isset($_GET['activated']) ) :
|
<?php elseif ( isset($_GET['activated']) ) :
|
||||||
if ( isset($wp_registered_sidebars) && count( (array) $wp_registered_sidebars ) ) { ?>
|
if ( isset($wp_registered_sidebars) && count( (array) $wp_registered_sidebars ) ) { ?>
|
||||||
<div id="message2" class="updated fade"><p><?php printf(__('New theme activated. This theme supports widgets, please visit the <a href="%s">widgets settings page</a> to configure them.'), admin_url('widgets.php') ); ?></p></div><?php
|
<div id="message2" class="updated"><p><?php printf(__('New theme activated. This theme supports widgets, please visit the <a href="%s">widgets settings page</a> to configure them.'), admin_url('widgets.php') ); ?></p></div><?php
|
||||||
} else { ?>
|
} else { ?>
|
||||||
<div id="message2" class="updated fade"><p><?php printf(__('New theme activated. <a href="%s">Visit site</a>'), get_bloginfo('url') . '/'); ?></p></div><?php
|
<div id="message2" class="updated"><p><?php printf(__('New theme activated. <a href="%s">Visit site</a>'), get_bloginfo('url') . '/'); ?></p></div><?php
|
||||||
}
|
}
|
||||||
elseif ( isset($_GET['deleted']) ) : ?>
|
elseif ( isset($_GET['deleted']) ) : ?>
|
||||||
<div id="message3" class="updated fade"><p><?php _e('Theme deleted.') ?></p></div>
|
<div id="message3" class="updated"><p><?php _e('Theme deleted.') ?></p></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
@ -130,7 +130,7 @@ function core_upgrade_preamble() {
|
|||||||
_e('You have the latest version of WordPress. You do not need to upgrade');
|
_e('You have the latest version of WordPress. You do not need to upgrade');
|
||||||
echo '</h3>';
|
echo '</h3>';
|
||||||
} else {
|
} else {
|
||||||
echo '<div class="updated fade"><p>';
|
echo '<div class="updated"><p>';
|
||||||
_e('<strong>Important:</strong> before upgrading, please <a href="http://codex.wordpress.org/WordPress_Backups">backup your database and files</a>.');
|
_e('<strong>Important:</strong> before upgrading, please <a href="http://codex.wordpress.org/WordPress_Backups">backup your database and files</a>.');
|
||||||
echo '</p></div>';
|
echo '</p></div>';
|
||||||
|
|
||||||
|
@ -216,7 +216,7 @@ if ( isset($_GET['message']) && (int) $_GET['message'] ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( !empty($message) ) { ?>
|
if ( !empty($message) ) { ?>
|
||||||
<div id="message" class="updated fade"><p><?php echo $message; ?></p></div>
|
<div id="message" class="updated"><p><?php echo $message; ?></p></div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<ul class="subsubsub">
|
<ul class="subsubsub">
|
||||||
|
@ -100,7 +100,7 @@ include ('admin-header.php');
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if ( isset($_GET['updated']) ) : ?>
|
<?php if ( isset($_GET['updated']) ) : ?>
|
||||||
<div id="message" class="updated fade">
|
<div id="message" class="updated">
|
||||||
<p><strong><?php _e('User updated.') ?></strong></p>
|
<p><strong><?php _e('User updated.') ?></strong></p>
|
||||||
<?php if ( $wp_http_referer && !IS_PROFILE_PAGE ) : ?>
|
<?php if ( $wp_http_referer && !IS_PROFILE_PAGE ) : ?>
|
||||||
<p><a href="users.php"><?php _e('← Back to Authors and Users'); ?></a></p>
|
<p><a href="users.php"><?php _e('← Back to Authors and Users'); ?></a></p>
|
||||||
|
@ -202,21 +202,21 @@ default:
|
|||||||
case 'del':
|
case 'del':
|
||||||
case 'del_many':
|
case 'del_many':
|
||||||
$delete_count = isset($_GET['delete_count']) ? (int) $_GET['delete_count'] : 0;
|
$delete_count = isset($_GET['delete_count']) ? (int) $_GET['delete_count'] : 0;
|
||||||
$messages[] = '<div id="message" class="updated fade"><p>' . sprintf(_n('%s user deleted', '%s users deleted', $delete_count), $delete_count) . '</p></div>';
|
$messages[] = '<div id="message" class="updated"><p>' . sprintf(_n('%s user deleted', '%s users deleted', $delete_count), $delete_count) . '</p></div>';
|
||||||
break;
|
break;
|
||||||
case 'add':
|
case 'add':
|
||||||
$messages[] = '<div id="message" class="updated fade"><p>' . __('New user created.') . '</p></div>';
|
$messages[] = '<div id="message" class="updated"><p>' . __('New user created.') . '</p></div>';
|
||||||
break;
|
break;
|
||||||
case 'promote':
|
case 'promote':
|
||||||
$messages[] = '<div id="message" class="updated fade"><p>' . __('Changed roles.') . '</p></div>';
|
$messages[] = '<div id="message" class="updated"><p>' . __('Changed roles.') . '</p></div>';
|
||||||
break;
|
break;
|
||||||
case 'err_admin_role':
|
case 'err_admin_role':
|
||||||
$messages[] = '<div id="message" class="error"><p>' . __('The current user’s role must have user editing capabilities.') . '</p></div>';
|
$messages[] = '<div id="message" class="error"><p>' . __('The current user’s role must have user editing capabilities.') . '</p></div>';
|
||||||
$messages[] = '<div id="message" class="updated fade"><p>' . __('Other user roles have been changed.') . '</p></div>';
|
$messages[] = '<div id="message" class="updated"><p>' . __('Other user roles have been changed.') . '</p></div>';
|
||||||
break;
|
break;
|
||||||
case 'err_admin_del':
|
case 'err_admin_del':
|
||||||
$messages[] = '<div id="message" class="error"><p>' . __('You can’t delete the current user.') . '</p></div>';
|
$messages[] = '<div id="message" class="error"><p>' . __('You can’t delete the current user.') . '</p></div>';
|
||||||
$messages[] = '<div id="message" class="updated fade"><p>' . __('Other users have been deleted.') . '</p></div>';
|
$messages[] = '<div id="message" class="updated"><p>' . __('Other users have been deleted.') . '</p></div>';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
endif; ?>
|
endif; ?>
|
||||||
|
@ -329,7 +329,7 @@ require_once( 'admin-header.php' ); ?>
|
|||||||
<h2><?php echo esc_html( $title ); ?></h2>
|
<h2><?php echo esc_html( $title ); ?></h2>
|
||||||
|
|
||||||
<?php if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) { ?>
|
<?php if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) { ?>
|
||||||
<div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div>
|
<div id="message" class="updated"><p><?php echo $messages[$_GET['message']]; ?></p></div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php if ( isset($_GET['error']) && isset($errors[$_GET['error']]) ) { ?>
|
<?php if ( isset($_GET['error']) && isset($errors[$_GET['error']]) ) { ?>
|
||||||
<div id="message" class="error"><p><?php echo $errors[$_GET['error']]; ?></p></div>
|
<div id="message" class="error"><p><?php echo $errors[$_GET['error']]; ?></p></div>
|
||||||
|
@ -371,7 +371,7 @@ function kubrick_theme_page_head() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function kubrick_theme_page() {
|
function kubrick_theme_page() {
|
||||||
if ( isset( $_REQUEST['saved'] ) ) echo '<div id="message" class="updated fade"><p><strong>'.__('Options saved.').'</strong></p></div>';
|
if ( isset( $_REQUEST['saved'] ) ) echo '<div id="message" class="updated"><p><strong>'.__('Options saved.').'</strong></p></div>';
|
||||||
?>
|
?>
|
||||||
<div class='wrap'>
|
<div class='wrap'>
|
||||||
<h2><?php _e('Customize Header'); ?></h2>
|
<h2><?php _e('Customize Header'); ?></h2>
|
||||||
|
Loading…
Reference in New Issue
Block a user