Changeset 42068 for branches/3.7/src/wp-includes/post.php
- Timestamp:
- 10/31/2017 01:01:54 PM (7 years ago)
- Location:
- branches/3.7
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7
- Property svn:mergeinfo changed
/trunk merged: 41662,42056
- Property svn:mergeinfo changed
-
branches/3.7/src
- Property svn:mergeinfo changed
/trunk/src merged: 41662,42056
- Property svn:mergeinfo changed
-
branches/3.7/src/wp-includes/post.php
r33561 r42068 3495 3495 $page_path = str_replace('%20', ' ', $page_path); 3496 3496 $parts = explode( '/', trim( $page_path, '/' ) ); 3497 $parts = esc_sql( $parts );3498 3497 $parts = array_map( 'sanitize_title_for_query', $parts ); 3499 3500 $in_string = "'". implode( "','", $parts ) . "'"; 3498 $escaped_parts = esc_sql( $parts ); 3499 3500 $in_string = "'". implode( "','", $escaped_parts ) . "'"; 3501 3501 $post_type_sql = esc_sql( $post_type ); 3502 3502 $pages = $wpdb->get_results( "SELECT ID, post_name, post_parent, post_type FROM $wpdb->posts WHERE post_name IN ($in_string) AND (post_type = '$post_type_sql' OR post_type = 'attachment')", OBJECT_K );
Note: See TracChangeset
for help on using the changeset viewer.