Make WordPress Core

Opened 8 years ago

Closed 7 years ago

#46851 closed defect (bug) (fixed)

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

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

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 8 years ago.
patch to change docblock definition to change $blog_prefix from int to string

Download all attachments as: .zip

Change History (3)

@diddledani
8 years ago

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

#1 @SergeyBiryukov
7 years ago

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

#2 @SergeyBiryukov
7 years ago

  • Resolution → fixed
  • Status reviewing → closed

In 45161:

Docs: Correct type for WP_Object_Cache::$blog_prefix.

Props diddledan.
Fixes #46851.

Note: See TracTickets for help on using tickets.