Changeset 19444 for trunk/wp-includes/post.php
- Timestamp:
- 11/24/2011 12:20:21 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r19305 r19444 2491 2491 $post_name = ''; 2492 2492 } else { 2493 $post_name = sanitize_title($post_name); 2493 // On updates, we need to check to see if it's using the old, fixed sanitization context. 2494 $check_name = sanitize_title( $post_name, '', 'old-save' ); 2495 if ( $update && strtolower( urlencode( $post_name ) ) == $check_name && get_post_field( 'post_name', $ID ) == $check_name ) 2496 $post_name = $check_name; 2497 else // new post, or slug has changed. 2498 $post_name = sanitize_title($post_name); 2494 2499 } 2495 2500 … … 3154 3159 $parts = explode( '/', trim( $page_path, '/' ) ); 3155 3160 $parts = array_map( 'esc_sql', $parts ); 3156 $parts = array_map( 'sanitize_title ', $parts );3161 $parts = array_map( 'sanitize_title_for_query', $parts ); 3157 3162 3158 3163 $in_string = "'". implode( "','", $parts ) . "'";
Note: See TracChangeset
for help on using the changeset viewer.