Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#39278 closed enhancement (fixed)

Old syntax for variables inside WP_User class

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

Description

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

<?php
var $filter = null;

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

https://github.com/WordPress/WordPress/blob/master/wp-includes/class-wp-user.php#L90-97

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

Change History (4)

#1 @SergeyBiryukov
8 years ago

  • Component changed from Administration to Users

#3 @SergeyBiryukov
8 years ago

  • Milestone changed from Awaiting Review to 4.8

#4 @SergeyBiryukov
8 years 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.