Changeset 12546
- Timestamp:
- 12/26/2009 09:00:58 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/categories.php
r12467 r12546 142 142 <?php 143 143 if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?> 144 <div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div>144 <div id="message" class="updated"><p><?php echo $messages[$msg]; ?></p></div> 145 145 <?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']); 146 146 endif; ?> -
trunk/wp-admin/custom-header.php
r12524 r12546 269 269 function step_1() { 270 270 if ( $_GET['updated'] ) { ?> 271 <div id="message" class="updated fade">271 <div id="message" class="updated"> 272 272 <p><?php _e('Header updated.') ?></p> 273 273 </div> -
trunk/wp-admin/edit-comments.php
r12461 r12546 136 136 137 137 if ( $approved > 0 || $deleted > 0 || $trashed > 0 || $untrashed > 0 || $spammed > 0 || $unspammed > 0 ) { 138 echo '<div id="moderated" class="updated fade"><p>';138 echo '<div id="moderated" class="updated"><p>'; 139 139 140 140 if ( $approved > 0 ) { -
trunk/wp-admin/edit-form-advanced.php
r12406 r12546 137 137 <?php endif; ?> 138 138 <?php if ( $message ) : ?> 139 <div id="message" class="updated fade"><p><?php echo $message; ?></p></div>139 <div id="message" class="updated"><p><?php echo $message; ?></p></div> 140 140 <?php endif; ?> 141 141 <form name="post" action="post.php" method="post" id="post"> -
trunk/wp-admin/edit-link-categories.php
r12317 r12546 69 69 70 70 <?php if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?> 71 <div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div>71 <div id="message" class="updated"><p><?php echo $messages[$msg]; ?></p></div> 72 72 <?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']); 73 73 endif; ?> -
trunk/wp-admin/edit-link-form.php
r11815 r12546 43 43 44 44 <?php if ( isset( $_GET['added'] ) ) : ?> 45 <div id="message" class="updated fade"><p><?php _e('Link added.'); ?></p></div>45 <div id="message" class="updated"><p><?php _e('Link added.'); ?></p></div> 46 46 <?php endif; ?> 47 47 -
trunk/wp-admin/edit-page-form.php
r12406 r12546 109 109 <?php endif; ?> 110 110 <?php if ( $message ) : ?> 111 <div id="message" class="updated fade"><p><?php echo $message; ?></p></div>111 <div id="message" class="updated"><p><?php echo $message; ?></p></div> 112 112 <?php endif; ?> 113 113 -
trunk/wp-admin/edit-pages.php
r12375 r12546 148 148 149 149 <?php if ( isset($_GET['locked']) || isset($_GET['skipped']) || isset($_GET['updated']) || isset($_GET['deleted']) || isset($_GET['trashed']) || isset($_GET['untrashed']) ) { ?> 150 <div id="message" class="updated fade"><p>150 <div id="message" class="updated"><p> 151 151 <?php if ( isset($_GET['updated']) && (int) $_GET['updated'] ) { 152 152 printf( _n( '%s page updated.', '%s pages updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) ); … … 181 181 182 182 <?php if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?> 183 <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>183 <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> 184 184 <?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']); 185 185 endif; ?> -
trunk/wp-admin/edit-tag-form.php
r12228 r12546 15 15 16 16 if ( empty($tag_ID) ) { ?> 17 <div id="message" class="updated fade"><p><strong><?php _e('A tag was not selected for editing.'); ?></strong></p></div>17 <div id="message" class="updated"><p><strong><?php _e('A tag was not selected for editing.'); ?></strong></p></div> 18 18 <?php 19 19 return; -
trunk/wp-admin/edit-tags.php
r12444 r12546 158 158 159 159 <?php if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?> 160 <div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div>160 <div id="message" class="updated"><p><?php echo $messages[$msg]; ?></p></div> 161 161 <?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']); 162 162 endif; ?> -
trunk/wp-admin/edit.php
r12390 r12546 142 142 <?php 143 143 if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?> 144 <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>144 <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> 145 145 <?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']); 146 146 endif; ?> 147 147 148 148 <?php if ( isset($_GET['locked']) || isset($_GET['skipped']) || isset($_GET['updated']) || isset($_GET['deleted']) || isset($_GET['trashed']) || isset($_GET['untrashed']) ) { ?> 149 <div id="message" class="updated fade"><p>149 <div id="message" class="updated"><p> 150 150 <?php if ( isset($_GET['updated']) && (int) $_GET['updated'] ) { 151 151 printf( _n( '%s post updated.', '%s posts updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) ); -
trunk/wp-admin/link-manager.php
r12515 r12546 80 80 <?php 81 81 if ( isset($_GET['deleted']) ) { 82 echo '<div id="message" class="updated fade"><p>';82 echo '<div id="message" class="updated"><p>'; 83 83 $deleted = (int) $_GET['deleted']; 84 84 printf(_n('%s link deleted.', '%s links deleted', $deleted), $deleted); -
trunk/wp-admin/media.php
r12543 r12546 77 77 case 'updated' : 78 78 $message = __('Media attachment updated.'); 79 $class = 'updated fade';79 $class = 'updated'; 80 80 break; 81 81 endswitch; -
trunk/wp-admin/options-head.php
r8645 r12546 14 14 15 15 <?php if (isset($_GET['updated'])) : ?> 16 <div id="message" class="updated fade"><p><strong><?php _e('Settings saved.') ?></strong></p></div>16 <div id="message" class="updated"><p><strong><?php _e('Settings saved.') ?></strong></p></div> 17 17 <?php endif; ?> -
trunk/wp-admin/options-permalink.php
r12264 r12546 126 126 127 127 <?php if (isset($_POST['submit'])) : ?> 128 <div id="message" class="updated fade"><p><?php128 <div id="message" class="updated"><p><?php 129 129 if ( $iis7_permalinks ) { 130 130 if ( $permalink_structure && ! $usingpi && ! $writable ) -
trunk/wp-admin/options-reading.php
r12101 r12546 46 46 </ul> 47 47 <?php if ( 'page' == get_option('show_on_front') && get_option('page_for_posts') == get_option('page_on_front') ) : ?> 48 <div id="front-page-warning" class="updated fade-ff0000">48 <div id="front-page-warning" class="updated"> 49 49 <p> 50 50 <?php _e('<strong>Warning:</strong> these pages should not be the same!'); ?> -
trunk/wp-admin/plugin-editor.php
r12310 r12546 124 124 ?> 125 125 <?php if (isset($_GET['a'])) : ?> 126 <div id="message" class="updated fade"><p><?php _e('File edited successfully.') ?></p></div>126 <div id="message" class="updated"><p><?php _e('File edited successfully.') ?></p></div> 127 127 <?php elseif (isset($_GET['phperror'])) : ?> 128 <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>128 <div id="message" class="updated"><p><?php _e('This plugin has been deactivated because your changes resulted in a <strong>fatal error</strong>.') ?></p> 129 129 <?php 130 130 if ( wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $file) ) { ?> -
trunk/wp-admin/plugins.php
r12383 r12546 247 247 248 248 <?php if ( isset($_GET['error']) ) : ?> 249 <div id="message" class="updated fade"><p><?php _e('Plugin could not be activated because it triggered a <strong>fatal error</strong>.') ?></p>249 <div id="message" class="updated"><p><?php _e('Plugin could not be activated because it triggered a <strong>fatal error</strong>.') ?></p> 250 250 <?php 251 251 if ( wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $plugin) ) { ?> … … 260 260 261 261 if ( is_wp_error($delete_result) ) : ?> 262 <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>262 <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> 263 263 <?php else : ?> 264 <div id="message" class="updated fade"><p><?php _e('The selected plugins have been <strong>deleted</strong>.'); ?></p></div>264 <div id="message" class="updated"><p><?php _e('The selected plugins have been <strong>deleted</strong>.'); ?></p></div> 265 265 <?php endif; ?> 266 266 <?php elseif ( isset($_GET['activate']) ) : ?> 267 <div id="message" class="updated fade"><p><?php _e('Plugin <strong>activated</strong>.') ?></p></div>267 <div id="message" class="updated"><p><?php _e('Plugin <strong>activated</strong>.') ?></p></div> 268 268 <?php elseif (isset($_GET['activate-multi'])) : ?> 269 <div id="message" class="updated fade"><p><?php _e('Selected plugins <strong>activated</strong>.'); ?></p></div>269 <div id="message" class="updated"><p><?php _e('Selected plugins <strong>activated</strong>.'); ?></p></div> 270 270 <?php elseif ( isset($_GET['deactivate']) ) : ?> 271 <div id="message" class="updated fade"><p><?php _e('Plugin <strong>deactivated</strong>.') ?></p></div>271 <div id="message" class="updated"><p><?php _e('Plugin <strong>deactivated</strong>.') ?></p></div> 272 272 <?php elseif (isset($_GET['deactivate-multi'])) : ?> 273 <div id="message" class="updated fade"><p><?php _e('Selected plugins <strong>deactivated</strong>.'); ?></p></div>273 <div id="message" class="updated"><p><?php _e('Selected plugins <strong>deactivated</strong>.'); ?></p></div> 274 274 <?php endif; ?> 275 275 -
trunk/wp-admin/press-this.php
r12371 r12546 543 543 <div class="posting"> 544 544 <?php if ( isset($posted) && intval($posted) ) { $post_ID = intval($posted); ?> 545 <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>545 <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> 546 546 <?php } ?> 547 547 -
trunk/wp-admin/theme-editor.php
r12541 r12546 108 108 ?> 109 109 <?php if (isset($_GET['a'])) : ?> 110 <div id="message" class="updated fade"><p><?php _e('File edited successfully.') ?></p></div>110 <div id="message" class="updated"><p><?php _e('File edited successfully.') ?></p></div> 111 111 <?php endif; 112 112 -
trunk/wp-admin/themes.php
r12231 r12546 47 47 48 48 <?php if ( ! validate_current_theme() ) : ?> 49 <div id="message1" class="updated fade"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div>49 <div id="message1" class="updated"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div> 50 50 <?php elseif ( isset($_GET['activated']) ) : 51 51 if ( isset($wp_registered_sidebars) && count( (array) $wp_registered_sidebars ) ) { ?> 52 <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><?php52 <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 53 53 } else { ?> 54 <div id="message2" class="updated fade"><p><?php printf(__('New theme activated. <a href="%s">Visit site</a>'), get_bloginfo('url') . '/'); ?></p></div><?php54 <div id="message2" class="updated"><p><?php printf(__('New theme activated. <a href="%s">Visit site</a>'), get_bloginfo('url') . '/'); ?></p></div><?php 55 55 } 56 56 elseif ( isset($_GET['deleted']) ) : ?> 57 <div id="message3" class="updated fade"><p><?php _e('Theme deleted.') ?></p></div>57 <div id="message3" class="updated"><p><?php _e('Theme deleted.') ?></p></div> 58 58 <?php endif; ?> 59 59 -
trunk/wp-admin/update-core.php
r12523 r12546 131 131 echo '</h3>'; 132 132 } else { 133 echo '<div class="updated fade"><p>';133 echo '<div class="updated"><p>'; 134 134 _e('<strong>Important:</strong> before upgrading, please <a href="http://codex.wordpress.org/WordPress_Backups">backup your database and files</a>.'); 135 135 echo '</p></div>'; -
trunk/wp-admin/upload.php
r12377 r12546 217 217 218 218 if ( !empty($message) ) { ?> 219 <div id="message" class="updated fade"><p><?php echo $message; ?></p></div>219 <div id="message" class="updated"><p><?php echo $message; ?></p></div> 220 220 <?php } ?> 221 221 -
trunk/wp-admin/user-edit.php
r11930 r12546 101 101 102 102 <?php if ( isset($_GET['updated']) ) : ?> 103 <div id="message" class="updated fade">103 <div id="message" class="updated"> 104 104 <p><strong><?php _e('User updated.') ?></strong></p> 105 105 <?php if ( $wp_http_referer && !IS_PROFILE_PAGE ) : ?> -
trunk/wp-admin/users.php
r12231 r12546 203 203 case 'del_many': 204 204 $delete_count = isset($_GET['delete_count']) ? (int) $_GET['delete_count'] : 0; 205 $messages[] = '<div id="message" class="updated fade"><p>' . sprintf(_n('%s user deleted', '%s users deleted', $delete_count), $delete_count) . '</p></div>';205 $messages[] = '<div id="message" class="updated"><p>' . sprintf(_n('%s user deleted', '%s users deleted', $delete_count), $delete_count) . '</p></div>'; 206 206 break; 207 207 case 'add': 208 $messages[] = '<div id="message" class="updated fade"><p>' . __('New user created.') . '</p></div>';208 $messages[] = '<div id="message" class="updated"><p>' . __('New user created.') . '</p></div>'; 209 209 break; 210 210 case 'promote': 211 $messages[] = '<div id="message" class="updated fade"><p>' . __('Changed roles.') . '</p></div>';211 $messages[] = '<div id="message" class="updated"><p>' . __('Changed roles.') . '</p></div>'; 212 212 break; 213 213 case 'err_admin_role': 214 214 $messages[] = '<div id="message" class="error"><p>' . __('The current user’s role must have user editing capabilities.') . '</p></div>'; 215 $messages[] = '<div id="message" class="updated fade"><p>' . __('Other user roles have been changed.') . '</p></div>';215 $messages[] = '<div id="message" class="updated"><p>' . __('Other user roles have been changed.') . '</p></div>'; 216 216 break; 217 217 case 'err_admin_del': 218 218 $messages[] = '<div id="message" class="error"><p>' . __('You can’t delete the current user.') . '</p></div>'; 219 $messages[] = '<div id="message" class="updated fade"><p>' . __('Other users have been deleted.') . '</p></div>';219 $messages[] = '<div id="message" class="updated"><p>' . __('Other users have been deleted.') . '</p></div>'; 220 220 break; 221 221 } -
trunk/wp-admin/widgets.php
r12360 r12546 330 330 331 331 <?php if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) { ?> 332 <div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div>332 <div id="message" class="updated"><p><?php echo $messages[$_GET['message']]; ?></p></div> 333 333 <?php } ?> 334 334 <?php if ( isset($_GET['error']) && isset($errors[$_GET['error']]) ) { ?> -
trunk/wp-content/themes/default/functions.php
r12180 r12546 372 372 373 373 function kubrick_theme_page() { 374 if ( isset( $_REQUEST['saved'] ) ) echo '<div id="message" class="updated fade"><p><strong>'.__('Options saved.').'</strong></p></div>';374 if ( isset( $_REQUEST['saved'] ) ) echo '<div id="message" class="updated"><p><strong>'.__('Options saved.').'</strong></p></div>'; 375 375 ?> 376 376 <div class='wrap'>
Note: See TracChangeset
for help on using the changeset viewer.