WordPress.org

Make WordPress Core

Opened 5 months ago

Closed 4 months ago

#44915 closed defect (bug) (fixed)

Incorrect @since tag for _wp_privacy_statuses() function

Reported by: dimadin Owned by: SergeyBiryukov
Milestone: 4.9.9 Priority: normal
Severity: trivial Version: 4.9.6
Component: Privacy Keywords: has-patch commit
Focuses: docs Cc:

Description

In [42967], function _wp_privacy_statuses() was introduced and was later merged in [43071] to the 4.9 branch so it was available since 4.9.6.

Its @since tag incorrectly states that it's available since 5.0.0. Attached patch fixes that, and it also fixes typo in PHPDoc tag for WP_Privacy_Policy_Content::add().

Because of case with 4.9 branch, not sure if it should be fixed there too.

Attachments (1)

44915.diff (877 bytes) - added by dimadin 5 months ago.

Download all attachments as: .zip

Change History (7)

@dimadin
5 months ago

#1 @pbiron
5 months ago

  • Component changed from General to Privacy

#2 @desrosj
5 months ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 4.9.9

Thanks for this, @dimadin! Patch looks good. This should be backported, but the person who commits this will handle that. This is a simple change, so a separate patch is not needed.

#3 @SergeyBiryukov
5 months ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 43638:

Docs: Correct @since value for _wp_privacy_statuses().

Fix typo in @since entry for WP_Privacy_Policy_Content:add().

Props dimadin.
Fixes #44915.

#4 @SergeyBiryukov
5 months ago

In 43639:

Docs: Correct @since value for _wp_privacy_statuses().

Fix typo in @since entry for WP_Privacy_Policy_Content:add().

Props dimadin.
Merges [43638] to the 4.9 branch.
Fixes #44915.

#5 @pento
4 months ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

[43638] can be merged to the 5.0 branch.

#6 @SergeyBiryukov
4 months ago

  • Resolution set to fixed
  • Status changed from reopened to closed

In 43710:

Docs: Correct @since value for _wp_privacy_statuses().

Fix typo in @since entry for WP_Privacy_Policy_Content:add().

Props dimadin.
Merges [43638] to the 5.0 branch.
Fixes #44915.

Note: See TracTickets for help on using tickets.