mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value. Constructors do not have meaningful return values, anything that is returned from here is discarded.
See #30799. git-svn-id: https://develop.svn.wordpress.org/trunk@31126 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3939,7 +3939,6 @@ class WP_Query {
|
||||
* @access public
|
||||
*
|
||||
* @param string $query URL query string.
|
||||
* @return WP_Query
|
||||
*/
|
||||
public function __construct($query = '') {
|
||||
if ( ! empty($query) ) {
|
||||
@@ -4172,7 +4171,7 @@ class WP_Query {
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @param mixed $taxonomy Optional. Taxonomy slug or slugs.
|
||||
* @param mixed $term. Optional. Term ID, name, slug or array of Term IDs, names, and slugs.
|
||||
* @param mixed $term Optional. Term ID, name, slug or array of Term IDs, names, and slugs.
|
||||
* @return bool
|
||||
*/
|
||||
public function is_tax( $taxonomy = '', $term = '' ) {
|
||||
|
||||
Reference in New Issue
Block a user