Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#39278 closed enhancement (fixed)

Old syntax for variables inside WP_User class

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

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
10 years ago

  • Component Administration → Users

#3 @SergeyBiryukov
10 years ago

  • Milestone Awaiting Review → 4.8

#4 @SergeyBiryukov
10 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → 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.