Make WordPress Core

#39278 closed enhancement (fixed)

Old syntax for variables inside WP_User class

Reported by: prosti Owned by: SergeyBiryukov
Milestone: 4.8 Priority: normal
Severity: normal Version: 4.8
Component: Users Keywords:
Focuses: administration Cc:


Inside the wp-includes/class-wp-user.php you can find

var $filter = null;

while all other class fields are either private or public according to the new PHP5 syntax.


If possible make the filter also public, because this is the equivalent of var.

Change History (4)

#1 @SergeyBiryukov
17 months ago

  • Component changed from Administration to Users

#3 @SergeyBiryukov
17 months ago

  • Milestone changed from Awaiting Review to 4.8

#4 @SergeyBiryukov
17 months ago

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

In 39735:

Docs: Correct @access entry for WP_User::filter property.

Add missing @since entries for WP_User::back_compat_keys and WP_User::init().

Props keesiemeijer, prosti.
Fixes #39502, #39278.

Note: See TracTickets for help on using tickets.