WordPress.org

Make WordPress Core

Ticket #36960: class-wp-upgrader.diff

File class-wp-upgrader.diff, 576 bytes (added by amandato, 4 years ago)

Diff file of change made to WP 4.5.2

  • class-wp-upgrader.

    old new  
    743743                        $this->skin->feedback('maintenance_start');
    744744                        // Create maintenance file to signal that we are upgrading
    745745                        $maintenance_string = '<?php $upgrading = ' . time() . '; ?>';
     746                        $maintenance_string = apply_filters( 'maintenance_string', $maintenance_string );
    746747                        $wp_filesystem->delete($file);
    747748                        $wp_filesystem->put_contents($file, $maintenance_string, FS_CHMOD_FILE);
    748749                } elseif ( ! $enable && $wp_filesystem->exists( $file ) ) {