Ticket #24763: get_page_by_path_request.patch
File get_page_by_path_request.patch, 821 bytes (added by , 12 years ago) |
---|
-
wp-includes/post.php
3423 3423 $in_string = "'". implode( "','", $parts ) . "'"; 3424 3424 $post_type_sql = $post_type; 3425 3425 $wpdb->escape_by_ref( $post_type_sql ); 3426 $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 );3426 $pages = $wpdb->get_results( apply_filters( 'get_page_by_path_request', "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 ); 3427 3427 3428 3428 $revparts = array_reverse( $parts ); 3429 3429