[wp-trac] [WordPress Trac] #53858: PHP 8.1: syntax error due to new 'readonly' property

WordPress Trac noreply at wordpress.org
Mon Aug 2 08:42:41 UTC 2021


#53858: PHP 8.1: syntax error due to new 'readonly' property
--------------------------+------------------------------
 Reporter:  haosun        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by knutsp):

 > Function 'readonly' calls 'checked_selected_helper', instead of
 'wp_readonly()'.

 I know. I meant (by 'calls') that the `readonly()` alias just **should**
 call the new `wp_readonly()`, and only be defined in case PHP < 8.1.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53858#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list