~canonical-sysadmins/wordpress/4.9.7

« back to all changes in this revision

Viewing changes to wp-includes/post.php

  • Committer: Barry Price
  • Date: 2017-11-02 04:15:48 UTC
  • mfrom: (1.1.29 upstream)
  • Revision ID: barry.price@canonical.com-20171102041548-n4kg8l9f98xajt7m
Merge WP4.8.3 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
4246
4246
        $page_path = str_replace('%2F', '/', $page_path);
4247
4247
        $page_path = str_replace('%20', ' ', $page_path);
4248
4248
        $parts = explode( '/', trim( $page_path, '/' ) );
4249
 
        $parts = esc_sql( $parts );
4250
4249
        $parts = array_map( 'sanitize_title_for_query', $parts );
 
4250
        $escaped_parts = esc_sql( $parts );
4251
4251
 
4252
 
        $in_string = "'" . implode( "','", $parts ) . "'";
 
4252
        $in_string = "'" . implode( "','", $escaped_parts ) . "'";
4253
4253
 
4254
4254
        if ( is_array( $post_type ) ) {
4255
4255
                $post_types = $post_type;