Changeset 36224 for trunk/src/wp-includes/class-wp-comment-query.php
- Timestamp:
- 01/08/2016 09:51:50 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-comment-query.php
r35757 r36224 140 140 * @since 4.4.0 Order by `comment__in` was added. `$update_comment_meta_cache`, `$no_found_rows`, 141 141 * `$hierarchical`, and `$update_comment_post_cache` were added. 142 * @since 4.5.0 `$author_url` was added. 142 143 * @access public 143 144 * … … 146 147 * 147 148 * @type string $author_email Comment author email address. Default empty. 149 * @type string $author_url Comment author URL. Default empty. 148 150 * @type array $author__in Array of author IDs to include comments for. Default empty. 149 151 * @type array $author__not_in Array of author IDs to exclude comments for. Default empty. … … 246 248 $this->query_var_defaults = array( 247 249 'author_email' => '', 250 'author_url' => '', 248 251 'author__in' => '', 249 252 'author__not_in' => '', … … 671 674 } 672 675 676 if ( '' !== $this->query_vars['author_url'] ) { 677 $this->sql_clauses['where']['author_url'] = $wpdb->prepare( 'comment_author_url = %s', $this->query_vars['author_url'] ); 678 } 679 673 680 if ( '' !== $this->query_vars['karma'] ) { 674 681 $this->sql_clauses['where']['karma'] = $wpdb->prepare( 'comment_karma = %d', $this->query_vars['karma'] );
Note: See TracChangeset
for help on using the changeset viewer.