Make WordPress Core

Opened 6 weeks ago

Closed 6 weeks ago

Last modified 6 weeks ago

#64084 closed defect (bug) (fixed)

Fix incorrect @global variable name in wp-admin/revision.php

Reported by: hanimbarek's profile hanimbarek Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 6.9 Priority: normal
Severity: trivial Version: 3.7
Component: Revisions Keywords: has-patch
Focuses: docs, administration Cc:

Description

The @global docblock in wp-admin/revision.php incorrectly uses $revision instead of $revision_id.

This: @global int $revision (src/wp-admin/revision.php:18)
Should be: @global int $revision_id

Change History (5)

This ticket was mentioned in PR #10178 on WordPress/wordpress-develop by @hanimbarek.


6 weeks ago
#1

  • Keywords has-patch added

This PR fixes a minor documentation issue in wp-admin/revision.php.

The @global docblock incorrectly referenced $revision instead of $revision_id.
This change updates the variable name to match the actual code used below.

#2 @SergeyBiryukov
6 weeks ago

  • Component changed from Administration to Revisions
  • Focuses administration added
  • Milestone changed from Awaiting Review to 6.9
  • Version changed from 6.8.3 to 3.7

#3 @SergeyBiryukov
6 weeks ago

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

In 60912:

Docs: Correct $revision_id global reference in wp-admin/revision.php.

Follow-up to [25419], [42795].

Props hanimbarek.
Fixes #64084.

#4 follow-up: @SergeyBiryukov
6 weeks ago

Hi there, welcome to WordPress Trac! Thanks for the ticket and the PR :)

#5 in reply to: ↑ 4 @hanimbarek
6 weeks ago

Thanks! Happy to contribute.

Note: See TracTickets for help on using tickets.