WordPress.org

Make WordPress Core

Changeset 16576


Ignore:
Timestamp:
11/24/2010 08:34:22 PM (10 years ago)
Author:
markjaquith
Message:

Cast to array, to avoid notices. props hakre. fixes #14997

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r16544 r16576  
    23082308
    23092309            // Filter all clauses at once, for convenience
    2310             $clauses = apply_filters_ref_array( 'posts_clauses', array( compact( $pieces ), &$this ) );
     2310            $clauses = (array) apply_filters_ref_array( 'posts_clauses', array( compact( $pieces ), &$this ) );
    23112311            foreach ( $pieces as $piece )
    23122312                $$piece = isset( $clauses[ $piece ] ) ? $clauses[ $piece ] : '';
     
    23272327
    23282328            // Filter all clauses at once, for convenience
    2329             $clauses = apply_filters_ref_array( 'posts_clauses_request', array( compact( $pieces ), &$this ) );
     2329            $clauses = (array) apply_filters_ref_array( 'posts_clauses_request', array( compact( $pieces ), &$this ) );
    23302330            foreach ( $pieces as $piece )
    23312331                $$piece = isset( $clauses[ $piece ] ) ? $clauses[ $piece ] : '';
Note: See TracChangeset for help on using the changeset viewer.