WordPress.org

Make WordPress Core

Opened 3 months ago

Closed 3 months ago

#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: trunk
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
3 months ago

  • Component changed from Administration to Users

#3 @SergeyBiryukov
3 months ago

  • Milestone changed from Awaiting Review to 4.8

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