Ticket #5418: 5418.s-apply_filters-do_action.diff

File 5418.s-apply_filters-do_action.diff, 1.4 kB (added by DD32, 10 months ago)
  • wp-admin/custom-header.php

    old new  
    228228 
    229229                if ( $width == HEADER_IMAGE_WIDTH && $height == HEADER_IMAGE_HEIGHT ) { 
    230230                        set_theme_mod('header_image', clean_url($url)); 
    231                         apply_filters('wp_create_file_in_uploads', $file, $id); // For replication 
     231                        do_action('wp_create_file_in_uploads', $file, $id); // For replication 
    232232                        return $this->finished(); 
    233233                } elseif ( $width > HEADER_IMAGE_WIDTH ) { 
    234234                        $oitar = $width / HEADER_IMAGE_WIDTH; 
  • wp-admin/link-import.php

    old new  
    123123} // end else 
    124124 
    125125if ( ! $blogrolling ) 
    126         apply_filters( 'wp_delete_file', $opml_url); 
     126        do_action( 'wp_delete_file', $opml_url); 
    127127        @unlink($opml_url); 
    128128?> 
    129129</div> 
  • wp-app.php

    old new  
    412412                $url = $file['url']; 
    413413                $file = $file['file']; 
    414414 
    415                 apply_filters('wp_create_file_in_uploads', $file); // replicate 
     415                do_action('wp_create_file_in_uploads', $file); // replicate 
    416416 
    417417                // Construct the attachment array 
    418418                $attachment = array(