WordPress.org

Make WordPress Core

Opened 7 weeks ago

Closed 6 weeks ago

#46851 closed defect (bug) (fixed)

Incorrect type docblock annotation for $blog_prefix in wp-includes/cache.php

Reported by: diddledan Owned by: SergeyBiryukov
Milestone: 5.2 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: Cc:

Description

$blog_prefix in class WP_Object_Cache is currently defined as being an integer according to the docblock, but assignments in the class are of string type. The attached patch changes the docblock to state that $blog_prefix is a string.

Attachments (1)

46851.diff (714 bytes) - added by diddledan 7 weeks ago.
patch to change docblock definition to change $blog_prefix from int to string

Download all attachments as: .zip

Change History (3)

@diddledan
7 weeks ago

patch to change docblock definition to change $blog_prefix from int to string

#1 @SergeyBiryukov
6 weeks ago

  • Milestone changed from Awaiting Review to 5.2
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#2 @SergeyBiryukov
6 weeks ago

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

In 45161:

Docs: Correct type for WP_Object_Cache::$blog_prefix.

Props diddledan.
Fixes #46851.

Note: See TracTickets for help on using tickets.