Changeset 19577
- Timestamp:
- 12/08/2011 11:02:33 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
-
wp-admin/css/wp-admin-rtl.dev.css (modified) (1 diff)
-
wp-admin/includes/update-core.php (modified) (1 diff)
-
wp-admin/network/site-themes.php (modified) (3 diffs)
-
wp-admin/network/site-users.php (modified) (5 diffs)
-
wp-admin/network/themes.php (modified) (4 diffs)
-
wp-admin/network/user-new.php (modified) (2 diffs)
-
wp-admin/network/users.php (modified) (2 diffs)
-
wp-includes/js/tinymce/plugins/wpdialogs/js/popup.dev.js (modified) (2 diffs)
-
wp-includes/js/tinymce/wp-mce-help.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/css/wp-admin-rtl.dev.css
r19575 r19577 1421 1421 1422 1422 .about-wrap .feature-section .feature-images img { 1423 margin-right: auto; 1423 margin-right: auto; 1424 1424 margin-left: 5px; 1425 1425 } -
trunk/wp-admin/includes/update-core.php
r19532 r19577 548 548 if ( 'do-core-upgrade' != $action && 'do-core-reinstall' != $action ) 549 549 return; 550 550 551 551 // Load the updated default text localization domain for new strings 552 552 load_default_textdomain(); -
trunk/wp-admin/network/site-themes.php
r19514 r19577 46 46 47 47 // Clean up request URI from temporary args for screen options/paging uri's to work as expected. 48 $temp_args = array( 'enabled', 'disabled', 'error' ); 49 $_SERVER['REQUEST_URI'] = remove_query_arg( $temp_args, $_SERVER['REQUEST_URI'] ); 48 $temp_args = array( 'enabled', 'disabled', 'error' ); 49 $_SERVER['REQUEST_URI'] = remove_query_arg( $temp_args, $_SERVER['REQUEST_URI'] ); 50 50 $referer = remove_query_arg( $temp_args, wp_get_referer() ); 51 51 … … 82 82 $theme = $_GET['theme']; 83 83 $action = 'disabled'; 84 $n = 1; 84 $n = 1; 85 85 if ( !$allowed_themes ) 86 86 $allowed_themes = array(); … … 159 159 160 160 if ( isset( $_GET['enabled'] ) ) { 161 $_GET['enabled'] = absint( $_GET['enabled'] ); 162 echo '<div id="message" class="updated"><p>' . sprintf( _n( 'Theme enabled.', '%s themes enabled.', $_GET['enabled'] ), number_format_i18n( $_GET['enabled'] ) ) . '</p></div>'; 163 } elseif ( isset( $_GET['disabled'] ) ) { 164 $_GET['disabled'] = absint( $_GET['disabled'] ); 165 echo '<div id="message" class="updated"><p>' . sprintf( _n( 'Theme disabled.', '%s themes disabled.', $_GET['disabled'] ), number_format_i18n( $_GET['disabled'] ) ) . '</p></div>'; 166 } elseif ( isset( $_GET['error'] ) && 'none' == $_GET['error'] ) { 167 echo '<div id="message" class="error"><p>' . __( 'No theme selected.' ) . '</p></div>'; 161 $_GET['enabled'] = absint( $_GET['enabled'] ); 162 echo '<div id="message" class="updated"><p>' . sprintf( _n( 'Theme enabled.', '%s themes enabled.', $_GET['enabled'] ), number_format_i18n( $_GET['enabled'] ) ) . '</p></div>'; 163 } elseif ( isset( $_GET['disabled'] ) ) { 164 $_GET['disabled'] = absint( $_GET['disabled'] ); 165 echo '<div id="message" class="updated"><p>' . sprintf( _n( 'Theme disabled.', '%s themes disabled.', $_GET['disabled'] ), number_format_i18n( $_GET['disabled'] ) ) . '</p></div>'; 166 } elseif ( isset( $_GET['error'] ) && 'none' == $_GET['error'] ) { 167 echo '<div id="message" class="error"><p>' . __( 'No theme selected.' ) . '</p></div>'; 168 168 } ?> 169 169 -
trunk/wp-admin/network/site-users.php
r19514 r19577 37 37 ); 38 38 39 $_SERVER['REQUEST_URI'] = remove_query_arg( 'update', $_SERVER['REQUEST_URI'] ); 39 $_SERVER['REQUEST_URI'] = remove_query_arg( 'update', $_SERVER['REQUEST_URI'] ); 40 40 $referer = remove_query_arg( 'update', wp_get_referer() ); 41 41 … … 67 67 if ( $action ) { 68 68 switch_to_blog( $id ); 69 69 70 70 switch ( $action ) { 71 71 case 'newuser': … … 92 92 if ( !empty( $_POST['newuser'] ) ) { 93 93 $update = 'adduser'; 94 $newuser = $_POST['newuser']; 94 $newuser = $_POST['newuser']; 95 95 $userid = $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM " . $wpdb->users . " WHERE user_login = %s", $newuser ) ); 96 96 if ( $userid ) { … … 107 107 } 108 108 break; 109 109 110 110 case 'remove': 111 111 if ( !current_user_can('remove_users') ) 112 112 die(__('You can’t remove users.')); 113 113 check_admin_referer( 'bulk-users' ); 114 114 115 115 $update = 'remove'; 116 116 if ( isset( $_REQUEST['users'] ) ) { … … 152 152 break; 153 153 } 154 154 155 155 restore_current_blog(); 156 156 wp_redirect( add_query_arg( 'update', $update, $referer ) ); -
trunk/wp-admin/network/themes.php
r19514 r19577 35 35 36 36 if ( $action ) { 37 $allowed_themes = get_site_option( 'allowedthemes' ); 37 $allowed_themes = get_site_option( 'allowedthemes' ); 38 38 switch ( $action ) { 39 39 case 'enable': … … 129 129 unset( $themes[$key] ); 130 130 } else { 131 $files_to_delete = array_merge( $files_to_delete, list_files( WP_CONTENT_DIR . "/themes/$theme" ) ); 131 $files_to_delete = array_merge( $files_to_delete, list_files( WP_CONTENT_DIR . "/themes/$theme" ) ); 132 132 $theme_info[ $theme ] = $data; 133 133 } 134 134 } 135 135 136 136 if ( empty( $themes ) ) { 137 137 wp_redirect( add_query_arg( 'error', 'main', $referer ) ); … … 191 191 foreach ( $themes as $theme ) 192 192 $delete_result = delete_theme( $theme, esc_url( add_query_arg( array('verify-delete' => 1), $_SERVER['REQUEST_URI'] ) ) ); 193 $paged = ( $_REQUEST['paged'] ) ? $_REQUEST['paged'] : 1; 193 $paged = ( $_REQUEST['paged'] ) ? $_REQUEST['paged'] : 1; 194 194 wp_redirect( network_admin_url( "themes.php?deleted=".count( $themes )."&paged=$paged&s=$s" ) ); 195 195 exit; … … 229 229 <?php screen_icon('themes'); ?> 230 230 <h2><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php } 231 if ( $s ) 232 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $s ) ); ?> 231 if ( $s ) 232 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $s ) ); ?> 233 233 </h2> 234 234 -
trunk/wp-admin/network/user-new.php
r19514 r19577 42 42 $user = $_POST['user']; 43 43 44 $user_details = wpmu_validate_user_signup( $user['username'], $user['email'] ); 44 $user_details = wpmu_validate_user_signup( $user['username'], $user['email'] ); 45 45 if ( is_wp_error( $user_details[ 'errors' ] ) && ! empty( $user_details[ 'errors' ]->errors ) ) { 46 46 $add_user_errors = $user_details[ 'errors' ]; … … 87 87 </div> 88 88 <?php } ?> 89 <form action="<?php echo network_admin_url('user-new.php?action=add-user'); ?>" id="adduser" method="post"> 89 <form action="<?php echo network_admin_url('user-new.php?action=add-user'); ?>" id="adduser" method="post"> 90 90 <table class="form-table"> 91 91 <tr class="form-field form-required"> -
trunk/wp-admin/network/users.php
r19514 r19577 212 212 wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => $deletefunction ), network_admin_url( 'users.php' ) ) ); 213 213 exit(); 214 break; 214 break; 215 215 } 216 216 } … … 282 282 <a href="<?php echo network_admin_url('user-new.php'); ?>" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a><?php 283 283 endif; 284 284 285 285 if ( !empty( $usersearch ) ) 286 286 printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $usersearch ) ); -
trunk/wp-includes/js/tinymce/plugins/wpdialogs/js/popup.dev.js
r18639 r19577 1 1 /** 2 2 * popup.js 3 * 3 * 4 4 * An altered version of tinyMCEPopup to work in the same window as tinymce. 5 * 5 * 6 6 * ------------------------------------------------------------------ 7 7 * … … 279 279 }, 280 280 281 // Internal functions 281 // Internal functions 282 282 283 283 _restoreSelection : function() { -
trunk/wp-includes/js/tinymce/wp-mce-help.php
r19227 r19577 144 144 display: table-row; 145 145 } 146 146 147 147 </style> 148 148 <?php if ( is_rtl() ) : ?> … … 182 182 document.getElementById('version').innerHTML = tinymce.majorVersion + "." + tinymce.minorVersion; 183 183 document.getElementById('date').innerHTML = tinymce.releaseDate; 184 184 185 185 if ( win.fullscreen && win.fullscreen.settings.visible ) { 186 186 d('content1').className = 'hidden'; … … 191 191 if ( tinymce.isMac ) 192 192 document.body.className = 'macos'; 193 193 194 194 if ( tinymce.isMac && tinymce.isWebKit ) 195 195 document.body.className = 'macos macwebkit';
Note: See TracChangeset
for help on using the changeset viewer.