mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Improve various @param docs.
See #30224. git-svn-id: https://develop.svn.wordpress.org/trunk@30673 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -176,7 +176,7 @@ function is_post_type_archive( $post_types = '' ) {
|
||||
* @since 2.0.0
|
||||
* @uses $wp_query
|
||||
*
|
||||
* @param mixed $attachment Attachment ID, title, slug, or array of such.
|
||||
* @param int|string|array $attachment Attachment ID, title, slug, or array of such.
|
||||
* @return bool
|
||||
*/
|
||||
function is_attachment( $attachment = '' ) {
|
||||
@@ -276,8 +276,8 @@ function is_tag( $tag = '' ) {
|
||||
* @since 2.5.0
|
||||
* @uses $wp_query
|
||||
*
|
||||
* @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 string|array $taxonomy Optional. Taxonomy slug or slugs.
|
||||
* @param int|string|array $term Optional. Term ID, name, slug or array of Term IDs, names, and slugs.
|
||||
* @return bool
|
||||
*/
|
||||
function is_tax( $taxonomy = '', $term = '' ) {
|
||||
@@ -2100,7 +2100,7 @@ class WP_Query {
|
||||
*
|
||||
* @since 3.7.0
|
||||
*
|
||||
* @param array Terms to check.
|
||||
* @param array $terms Terms to check.
|
||||
* @return array Terms that are not stopwords.
|
||||
*/
|
||||
protected function parse_search_terms( $terms ) {
|
||||
@@ -4540,7 +4540,7 @@ class WP_Query {
|
||||
*
|
||||
* @since 4.1.0
|
||||
*
|
||||
* @param object $post Post data.
|
||||
* @param WP_Post $post Post data.
|
||||
* @return bool True when finished.
|
||||
*/
|
||||
public function setup_postdata( $post ) {
|
||||
@@ -4608,8 +4608,6 @@ class WP_Query {
|
||||
* restores the $post global to the current post in this query.
|
||||
*
|
||||
* @since 3.7.0
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function reset_postdata() {
|
||||
if ( ! empty( $this->post ) ) {
|
||||
|
||||
Reference in New Issue
Block a user