Make WordPress Core


Ignore:
Timestamp:
05/29/2015 05:03:13 PM (9 years ago)
Author:
wonderboymusic
Message:

In the style of #30947 and default-filters.php, add 2 new files to wp-admin/includes:
admin-filters.php
ms-admin-filters.php

There are random actions and filters littered among files like misc.php. These files contain functions that won't work outside of admin context and are typically only loaded in files that have already loaded the admin bootstrap.

See #32529.

File:
1 edited

Legend:

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

    r32650 r32653  
    6464    return $tabs;
    6565}
    66 add_filter('media_upload_tabs', 'update_gallery_tab');
    6766
    6867/**
     
    221220    return apply_filters( 'image_add_caption_shortcode', $shcode, $html );
    222221}
    223 add_filter( 'image_send_to_editor', 'image_add_caption', 20, 8 );
    224222
    225223/**
     
    578576    }
    579577}
    580 add_action( 'media_buttons', 'media_buttons' );
    581578
    582579/**
     
    11421139}
    11431140
    1144 add_filter( 'attachment_fields_to_save', 'image_attachment_fields_to_save', 10, 2 );
    1145 
    11461141/**
    11471142 * {@internal Missing Short Description}}
     
    11681163    return $html;
    11691164}
    1170 
    1171 add_filter('media_send_to_editor', 'image_media_send_to_editor', 10, 3);
    11721165
    11731166/**
     
    26122605    <?php
    26132606}
    2614 add_action('post-plupload-upload-ui', 'media_upload_flash_bypass');
    26152607
    26162608/**
     
    26262618    <?php
    26272619}
    2628 add_action('post-html-upload-ui', 'media_upload_html_bypass');
    26292620
    26302621/**
     
    29082899    endif;
    29092900}
    2910 
    2911 add_filter( 'async_upload_image', 'get_media_item', 10, 2 );
    2912 add_filter( 'async_upload_audio', 'get_media_item', 10, 2 );
    2913 add_filter( 'async_upload_video', 'get_media_item', 10, 2 );
    2914 add_filter( 'async_upload_file',  'get_media_item', 10, 2 );
    2915 
    2916 add_action( 'media_upload_image', 'wp_media_upload_handler' );
    2917 add_action( 'media_upload_audio', 'wp_media_upload_handler' );
    2918 add_action( 'media_upload_video', 'wp_media_upload_handler' );
    2919 add_action( 'media_upload_file',  'wp_media_upload_handler' );
    2920 
    2921 add_filter( 'media_upload_gallery', 'media_upload_gallery' );
    2922 add_filter( 'media_upload_library', 'media_upload_library' );
    2923 
    2924 add_action( 'attachment_submitbox_misc_actions', 'attachment_submitbox_metadata' );
    29252901
    29262902/**
Note: See TracChangeset for help on using the changeset viewer.