Changeset 36479
- Timestamp:
- 02/05/2016 06:35:47 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
src/wp-includes/class-wp-comment-query.php (modified) (1 diff)
-
tests/phpunit/tests/comment/query.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-comment-query.php
r36381 r36479 274 274 'order' => 'DESC', 275 275 'parent' => '', 276 'parent__in' => '', 277 'parent__not_in' => '', 276 278 'post_author__in' => '', 277 279 'post_author__not_in' => '', -
trunk/tests/phpunit/tests/comment/query.php
r36415 r36479 1866 1866 1867 1867 /** 1868 * @ticket 35677 1869 */ 1870 public function test_cache_should_be_sensitive_to_parent__in() { 1871 global $wpdb; 1872 1873 $q1 = new WP_Comment_Query( array( 1874 'parent__in' => array( 1, 2, 3 ), 1875 ) ); 1876 1877 $num_queries = $wpdb->num_queries; 1878 1879 $q2 = new WP_Comment_Query( array( 1880 'parent__in' => array( 4, 5, 6 ), 1881 ) ); 1882 1883 $this->assertNotEquals( $num_queries, $wpdb->num_queries ); 1884 } 1885 1886 /** 1887 * @ticket 35677 1888 */ 1889 public function test_cache_should_be_sensitive_to_parent__not_in() { 1890 global $wpdb; 1891 1892 $q1 = new WP_Comment_Query( array( 1893 'parent__not_in' => array( 1, 2, 3 ), 1894 ) ); 1895 1896 $num_queries = $wpdb->num_queries; 1897 1898 $q2 = new WP_Comment_Query( array( 1899 'parent__not_in' => array( 4, 5, 6 ), 1900 ) ); 1901 1902 $this->assertNotEquals( $num_queries, $wpdb->num_queries ); 1903 } 1904 1905 /** 1868 1906 * @ticket 32762 1869 1907 */
Note: See TracChangeset
for help on using the changeset viewer.