WordPress.org

Make WordPress Core

Ticket #9500: 9500.diff

File 9500.diff, 808 bytes (added by Denis-de-Bernardy, 6 years ago)
  • wp-includes/query.php

     
    23772377                        } 
    23782378                } 
    23792379 
    2380                 if ( !$q['suppress_filters'] ) 
    2381                         $this->posts = apply_filters('the_posts', $this->posts); 
    2382  
    2383                 $this->post_count = count($this->posts); 
    2384  
    23852380                // Sanitize before caching so it'll only get done once 
    23862381                for ($i = 0; $i < $this->post_count; $i++) { 
    23872382                        $this->posts[$i] = sanitize_post($this->posts[$i], 'raw'); 
     
    23892384 
    23902385                update_post_caches($this->posts); 
    23912386 
     2387                if ( !$q['suppress_filters'] ) 
     2388                        $this->posts = apply_filters('the_posts', $this->posts); 
     2389 
     2390                $this->post_count = count($this->posts); 
     2391 
    23922392                if ($this->post_count > 0) { 
    23932393                        $this->post = $this->posts[0]; 
    23942394                }