Skip to:
Content

bbPress.org


Ignore:
Timestamp:
01/12/2017 08:46:10 AM (10 years ago)
Author:
johnjamesjacoby
Message:

Queries: Use no_found_rows where relevant.

This prevents SQL_CALC_FOUND_ROWS usages in places where it is not used.

Fixes #2972.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/common/functions.php

    r6196 r6219  
    15821582                'update_post_meta_cache' => false,
    15831583                'ignore_sticky_posts'    => true,
     1584                'no_found_rows'          => true
    15841585        ) );
    15851586        $child_id = array_shift( $query->posts );
     
    16321633                'update_post_meta_cache' => false,
    16331634                'ignore_sticky_posts'    => true,
     1635                'no_found_rows'          => true
    16341636        ) );
    16351637        $child_count = $query->post_count;
     
    16821684                'update_post_meta_cache' => false,
    16831685                'ignore_sticky_posts'    => true,
     1686                'no_found_rows'          => true
    16841687        ) );
    16851688        $child_ids = ! empty( $query->posts ) ? $query->posts : array();
Note: See TracChangeset for help on using the changeset viewer.