Code Duplication    Length = 16-16 lines in 3 locations

wp-includes/class-wp-comment-query.php 1 location

@@ 333-348 (lines=16) @@
330
	 *
331
	 * @param string|array $query WP_Comment_Query arguments. See WP_Comment_Query::__construct()
332
	 */
333
	public function parse_query( $query = '' ) {
334
		if ( empty( $query ) ) {
335
			$query = $this->query_vars;
336
		}
337
338
		$this->query_vars = wp_parse_args( $query, $this->query_var_defaults );
339
340
		/**
341
		 * Fires after the comment query vars have been parsed.
342
		 *
343
		 * @since 4.2.0
344
		 *
345
		 * @param WP_Comment_Query &$this The WP_Comment_Query instance (passed by reference).
346
		 */
347
		do_action_ref_array( 'parse_comment_query', array( &$this ) );
348
	}
349
350
	/**
351
	 * Sets up the WordPress query for retrieving comments.

wp-includes/class-wp-network-query.php 1 location

@@ 170-185 (lines=16) @@
167
	 *
168
	 * @param string|array $query WP_Network_Query arguments. See WP_Network_Query::__construct()
169
	 */
170
	public function parse_query( $query = '' ) {
171
		if ( empty( $query ) ) {
172
			$query = $this->query_vars;
173
		}
174
175
		$this->query_vars = wp_parse_args( $query, $this->query_var_defaults );
176
177
		/**
178
		 * Fires after the network query vars have been parsed.
179
		 *
180
		 * @since 4.6.0
181
		 *
182
		 * @param WP_Network_Query &$this The WP_Network_Query instance (passed by reference).
183
		 */
184
		do_action_ref_array( 'parse_network_query', array( &$this ) );
185
	}
186
187
	/**
188
	 * Sets up the WordPress query for retrieving networks.

wp-includes/class-wp-site-query.php 1 location

@@ 205-220 (lines=16) @@
202
	 *
203
	 * @param string|array $query Array or string of WP_Site_Query arguments. See WP_Site_Query::__construct().
204
	 */
205
	public function parse_query( $query = '' ) {
206
		if ( empty( $query ) ) {
207
			$query = $this->query_vars;
208
		}
209
210
		$this->query_vars = wp_parse_args( $query, $this->query_var_defaults );
211
212
		/**
213
		 * Fires after the site query vars have been parsed.
214
		 *
215
		 * @since 4.6.0
216
		 *
217
		 * @param WP_Site_Query &$this The WP_Site_Query instance (passed by reference).
218
		 */
219
		do_action_ref_array( 'parse_site_query', array( &$this ) );
220
	}
221
222
	/**
223
	 * Sets up the WordPress query for retrieving sites.