Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#46851 closed defect (bug) (fixed)

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

Reported by: diddledani's profile diddledani Owned by: sergeybiryukov's profile 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 diddledani 6 years ago.
patch to change docblock definition to change $blog_prefix from int to string

Download all attachments as: .zip

Change History (3)

@diddledani
6 years ago

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

#1 @SergeyBiryukov
6 years ago

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

#2 @SergeyBiryukov
6 years 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.