Changeset 59584
- Timestamp:
- 01/07/2025 03:46:25 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r59575 r59584 7208 7208 function wp_check_for_changed_slugs( $post_id, $post, $post_before ) { 7209 7209 // Don't bother if it hasn't changed. 7210 if ( $post->post_name == $post_before->post_name ) {7210 if ( $post->post_name === $post_before->post_name ) { 7211 7211 return; 7212 7212 } 7213 7213 7214 7214 // We're only concerned with published, non-hierarchical objects. 7215 if ( ! ( 'publish' === $post->post_status || ( 'attachment' === get_post_type( $post ) && 'inherit' === $post->post_status ) ) || is_post_type_hierarchical( $post->post_type ) ) { 7215 if ( ! ( 'publish' === $post->post_status || ( 'attachment' === $post->post_type && 'inherit' === $post->post_status ) ) 7216 || is_post_type_hierarchical( $post->post_type ) 7217 ) { 7216 7218 return; 7217 7219 }
Note: See TracChangeset
for help on using the changeset viewer.