WordPress.org

Make WordPress Core

Ticket #39920: 39920-3.patch

File 39920-3.patch, 558 bytes (added by Dency, 3 years ago)
  • src/wp-admin/includes/misc.php

     
    7171                return $result;
    7272        }
    7373
    74         if ( $markerdata = explode( "\n", implode( '', file( $filename ) ) ));
    75         {
     74        $markerdata = explode( "\n", implode( '', file( $filename ) ) );
     75
     76        if ( ! empty( $markerdata ) ) {
    7677                $state = false;
    7778                foreach ( $markerdata as $markerline ) {
    7879                        if (strpos($markerline, '# END ' . $marker) !== false)