Make WordPress Core


Ignore:
Timestamp:
06/03/2020 05:38:56 PM (6 years ago)
Author:
desrosj
Message:

General: Continuing to work towards a passing PHP Compatibility scan.

This is a final pass to fix PHP compatibiilty issues in the codebase with code changes or adding phpcs:ignore comments.

With this change, all PHP compatibility warnings and errors without specific tickets have been addressed (see #49810 and #41750).

Props desrosj, johnbillion, jrf.
See #49922.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rss.php

    r42201 r47902  
    386386
    387387        function error( $errormsg, $lvl = E_USER_WARNING ) {
    388                 // append PHP's error message if track_errors enabled
    389                 if ( isset($php_errormsg) ) {
    390                         $errormsg .= " ($php_errormsg)";
    391                 }
    392388                if ( MAGPIE_DEBUG ) {
    393389                        trigger_error( $errormsg, $lvl);
    … …  
    822818\*=======================================================================*/
    823819        function error ($errormsg, $lvl=E_USER_WARNING) {
    824                 // append PHP's error message if track_errors enabled
    825                 if ( isset($php_errormsg) ) {
    826                         $errormsg .= " ($php_errormsg)";
    827                 }
    828820                $this->ERROR = $errormsg;
    829821                if ( MAGPIE_DEBUG ) {
Note: See TracChangeset for help on using the changeset viewer.