Changeset 47219 for trunk/src/wp-admin/includes/post.php
- Timestamp:
- 02/09/2020 04:52:28 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r47206 r47219 110 110 $post_data['post_status'] = 'private'; 111 111 } 112 if ( isset( $post_data['publish'] ) && ( '' != $post_data['publish'] ) && ( ! isset( $post_data['post_status'] ) || $post_data['post_status'] != 'private') ) {112 if ( isset( $post_data['publish'] ) && ( '' != $post_data['publish'] ) && ( ! isset( $post_data['post_status'] ) || 'private' !== $post_data['post_status'] ) ) { 113 113 $post_data['post_status'] = 'publish'; 114 114 } … … 378 378 $image_alt = wp_unslash( $post_data['_wp_attachment_image_alt'] ); 379 379 380 if ( $image_alt != get_post_meta( $post_ID, '_wp_attachment_image_alt', true )) {380 if ( get_post_meta( $post_ID, '_wp_attachment_image_alt', true ) !== $image_alt ) { 381 381 $image_alt = wp_strip_all_tags( $image_alt, true ); 382 382 … … 1453 1453 1454 1454 // Encourage a pretty permalink setting. 1455 if ( '' == get_option( 'permalink_structure' ) && current_user_can( 'manage_options' ) && ! ( 'page' == get_option( 'show_on_front' ) && $id == get_option( 'page_on_front' )) ) {1455 if ( '' == get_option( 'permalink_structure' ) && current_user_can( 'manage_options' ) && ! ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_on_front' ) == $id ) ) { 1456 1456 $return .= '<span id="change-permalinks"><a href="options-permalink.php" class="button button-small" target="_blank">' . __( 'Change Permalinks' ) . "</a></span>\n"; 1457 1457 } … … 1597 1597 $time_window = apply_filters( 'wp_check_post_lock_window', 150 ); 1598 1598 1599 if ( $time && $time > time() - $time_window && $user != get_current_user_id()) {1599 if ( $time && $time > time() - $time_window && get_current_user_id() != $user ) { 1600 1600 return $user; 1601 1601 } … … 1952 1952 } 1953 1953 1954 if ( $post_data['post_type'] != 'page'&& ! empty( $post_data['catslist'] ) ) {1954 if ( 'page' !== $post_data['post_type'] && ! empty( $post_data['catslist'] ) ) { 1955 1955 $post_data['post_category'] = explode( ',', $post_data['catslist'] ); 1956 1956 }
Note: See TracChangeset
for help on using the changeset viewer.