Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #57304, comment 5


Ignore:
Timestamp:
02/27/2023 10:17:53 PM (2 years ago)
Author:
petitphp
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57304, comment 5

    initial v1  
    11Started working on a patch for this ticket and I encounter a small quirk.
    22
    3 To make this change compatible with PHP7.x and below we'll need to use a custom formatting and include the attribute in its own line or this will cause a Fatal error since it's interpreted as a comment and discard the end of the line (see the [https://3v4l.org/9MhEf 3v4l.org demo]).
     3To make this change compatible with PHP7.x and below we'll need to use a custom formatting and include the attribute on its own line or this will cause a Fatal error since it's interpreted as a comment and discard the end of the line (see the [https://3v4l.org/9MhEf 3v4l.org demo]).
    44
    55Example for the `wpdb` constructor we could end up with :