Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#62022 closed defect (bug) (fixed)

Missing PHPDoc tag for WP_Query::$query_vars_changed

Reported by: marian1 Owned by: SergeyBiryukov
Priority: normal Milestone: 6.8
Component: Query Version:
Severity: trivial Keywords: has-patch
Cc: Focuses: docs

Description

@var bool $query_vars_changed is missing for the property $query_vars_changed of class WP_Query.

<?php
        /**
         * Whether query vars have changed since the initial parse_query() call. Used to catch modifications to query vars made
         * via pre_get_posts hooks.
         *
         * @since 3.1.1
         */
        private $query_vars_changed = true;

Lines 440-446 in wp-includes/class-wp-query.php

Attachments (1)

62022.patch​ (374 bytes ) - added by jigar bhanushali 2 years ago.

Download all attachments as: .zip

Change History (9)

#1 @jigar bhanushali
2 years ago

  • Keywords has-patch added

This ticket was mentioned in ​PR #7318 on ​WordPress/wordpress-develop by ​PARTHVATALIYA.


2 years ago
#2

​@martin.krcho commented on ​PR #7318:


2 years ago
#3

@PARTHVATALIYA your commit changes the structure of if statements in WP_Query::parse_search() function. Is that intentional? The logic didn't change as far as I can tell, but it would be a good idea to do such changes in a separate commit.

​PARTHVATALIYA commented on ​PR #7318:


2 years ago
#4

Thank you for pointing that out. The changes to the structure of the if statements in the WP_Query::parse_search() function were unintentional and made by mistake. We will revert those changes and handle them in a separate commit if needed in the future.

I'm closing this PR, and I'll submit a new one with the intended changes. Thanks again for the review!

This ticket was mentioned in ​PR #7320 on ​WordPress/wordpress-develop by ​PARTHVATALIYA.


2 years ago
#5

#6 @SergeyBiryukov
2 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 59495:

Docs: Add missing @var tag for WP_Query::$query_vars_changed.

Follow-up to [17552].

Props marian1, jigar-bhanushali, martin.krcho, parthvataliya.
Fixes #62022.

#7 @SergeyBiryukov
2 years ago

  • Milestone Awaiting Review → 6.8

​@SergeyBiryukov commented on ​PR #7320:


2 years ago
#8

Thanks for the PR! Merged in r59495.

Note: See TracTickets for help on using tickets.