Make WordPress Core

Ticket #14730: 14730.diff

File 14730.diff, 576 bytes (added by iamfriendly, 9 years ago)

actions, rather than ~words~ flushing.

  • wp-includes/ms-files.php

    diff --git wp-includes/ms-files.php wp-includes/ms-files.php
    index 87fa70f..42882d2 100644
    if ( ( $client_last_modified && $client_etag ) 
    7878        exit;
    7979}
    8080
     81/**
     82 * Fires just before the file is output using readfile().
     83 *
     84 * @since 4.6.0
     85 */
     86do_action( 'ms_files_before_readfile', $file );
     87
    8188// If we made it this far, just serve the file
    8289readfile( $file );
     90
     91/**
     92 * Fires just after the file is output using readfile().
     93 *
     94 * @since 4.6.0
     95 */
     96do_action( 'ms_files_after_readfile', $file );