Ticket #48455: 48455.1.patch
File 48455.1.patch, 5.6 KB (added by , 4 years ago) |
---|
-
install.php
386 386 $error = true; 387 387 } 388 388 389 if ( $error === false) {389 if ( false === $error ) { 390 390 $wpdb->show_errors(); 391 391 $result = wp_install( $weblog_title, $user_name, $admin_email, $public, '', wp_slash( $admin_password ), $loaded_language ); 392 392 ?> -
media-upload.php
33 33 $post_id = isset( $post_id ) ? (int) $post_id : 0; 34 34 35 35 // Require an ID for the edit screen. 36 if ( isset( $action ) && $action == 'edit'&& ! $ID ) {36 if ( isset( $action ) && 'edit' == $action && ! $ID ) { 37 37 wp_die( 38 38 '<h1>' . __( 'Something went wrong.' ) . '</h1>' . 39 39 '<p>' . __( 'Invalid item ID.' ) . '</p>', … … 81 81 $body_id = 'media-upload'; 82 82 83 83 // Let the action code decide how to handle the request. 84 if ( $tab == 'type' || $tab == 'type_url'|| ! array_key_exists( $tab, media_upload_tabs() ) ) {84 if ( 'type' == $tab || 'type_url' == $tab || ! array_key_exists( $tab, media_upload_tabs() ) ) { 85 85 /** 86 86 * Fires inside specific upload-type views in the legacy (pre-3.5.0) 87 87 * media popup based on the current tab. -
media.php
69 69 if ( 'attachment' !== $att->post_type ) { 70 70 wp_die( __( 'You attempted to edit an item that isn’t an attachment. Please go back and try again.' ) ); 71 71 } 72 if ( $att->post_status == 'trash') {72 if ( 'trash' == $att->post_status ) { 73 73 wp_die( __( 'You can’t edit this attachment because it is in the Trash. Please move it out of the Trash and try again.' ) ); 74 74 } 75 75 -
ms-delete-site.php
42 42 echo '<div class="wrap">'; 43 43 echo '<h1>' . esc_html( $title ) . '</h1>'; 44 44 45 if ( isset( $_POST['action'] ) && $_POST['action'] == 'deleteblog'&& isset( $_POST['confirmdelete'] ) && $_POST['confirmdelete'] == '1' ) {45 if ( isset( $_POST['action'] ) && 'deleteblog' == $_POST['action'] && isset( $_POST['confirmdelete'] ) && $_POST['confirmdelete'] == '1' ) { 46 46 check_admin_referer( 'delete-blog' ); 47 47 48 48 $hash = wp_generate_password( 20, false ); -
options.php
333 333 334 334 foreach ( (array) $options as $option ) : 335 335 $disabled = false; 336 if ( $option->option_name == '') {336 if ( '' == $option->option_name ) { 337 337 continue; 338 338 } 339 339 if ( is_serialized( $option->option_value ) ) { -
post.php
301 301 wp_die( __( 'Sorry, you are not allowed to delete this item.' ) ); 302 302 } 303 303 304 if ( $post->post_type == 'attachment') {304 if ( 'attachment' == $post->post_type ) { 305 305 $force = ( ! MEDIA_TRASH ); 306 306 if ( ! wp_delete_attachment( $post_id, $force ) ) { 307 307 wp_die( __( 'Error in deleting.' ) ); -
update-core.php
164 164 echo '<p class="hint">' . sprintf( 165 165 /* translators: %s: WordPress version. */ 166 166 __( 'You are about to install WordPress %s <strong>in English (US).</strong> There is a chance this update will break your translation. You may prefer to wait for the localized version to be released.' ), 167 $update->response != 'development'? $update->current : ''167 'development' != $update->response ? $update->current : '' 168 168 ) . '</p>'; 169 169 } 170 170 echo '</form>'; … … 252 252 echo '</h2>'; 253 253 } 254 254 255 if ( isset( $updates[0] ) && $updates[0]->response == 'development') {255 if ( isset( $updates[0] ) && 'development' == $updates[0]->response ) { 256 256 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; 257 257 $upgrader = new WP_Automatic_Updater; 258 258 if ( wp_http_supports( 'ssl' ) && $upgrader->should_update( 'core', $updates[0], ABSPATH ) ) { … … 688 688 $upgrade_error = false; 689 689 if ( ( 'do-theme-upgrade' == $action || ( 'do-plugin-upgrade' == $action && ! isset( $_GET['plugins'] ) ) ) 690 690 && ! isset( $_POST['checked'] ) ) { 691 $upgrade_error = $action == 'do-theme-upgrade'? 'themes' : 'plugins';691 $upgrade_error = 'do-theme-upgrade' == $action ? 'themes' : 'plugins'; 692 692 $action = 'upgrade-core'; 693 693 } 694 694 … … 739 739 <?php 740 740 if ( $upgrade_error ) { 741 741 echo '<div class="error"><p>'; 742 if ( $upgrade_error == 'themes') {742 if ( 'themes' == $upgrade_error ) { 743 743 _e( 'Please select one or more themes to update.' ); 744 744 } else { 745 745 _e( 'Please select one or more plugins to update.' ); -
user-new.php
63 63 $redirect = 'user-new.php'; 64 64 $username = $user_details->user_login; 65 65 $user_id = $user_details->ID; 66 if ( $username != null&& array_key_exists( $blog_id, get_blogs_of_user( $user_id ) ) ) {66 if ( null != $username && array_key_exists( $blog_id, get_blogs_of_user( $user_id ) ) ) { 67 67 $redirect = add_query_arg( array( 'update' => 'addexisting' ), 'user-new.php' ); 68 68 } else { 69 69 if ( isset( $_POST['noconfirmation'] ) && current_user_can( 'manage_network_users' ) ) {