PATH:
home
/
letacommog
/
visage-delodie
/
wp-admin
<?php /** * Manage media uploaded file. * * There are many filters in here for media. Plugins can extend functionality * by hooking into the filters. * * @package WordPress * @subpackage Administration */ if ( ! isset( $_GET['inline'] ) ) define( 'IFRAME_REQUEST' , true ); /** Load WordPress Administration Bootstrap */ require_once( dirname( __FILE__ ) . '/admin.php' ); if ( ! current_user_can( 'upload_files' ) ) { wp_die( __( 'Sorry, you are not allowed to upload files.' ), 403 ); } wp_enqueue_script('plupload-handlers'); wp_enqueue_script('image-edit'); wp_enqueue_script('set-post-thumbnail' ); wp_enqueue_style('imgareaselect'); wp_enqueue_script( 'media-gallery' ); @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); // IDs should be integers $ID = isset($ID) ? (int) $ID : 0; $post_id = isset($post_id)? (int) $post_id : 0; // Require an ID for the edit screen. if ( isset( $action ) && $action == 'edit' && !$ID ) { wp_die( '<h1>' . __( 'Something went wrong.' ) . '</h1>' . '<p>' . __( 'Invalid item ID.' ) . '</p>', 403 ); } if ( ! empty( $_REQUEST['post_id'] ) && ! current_user_can( 'edit_post' , $_REQUEST['post_id'] ) ) { wp_die( '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . '<p>' . __( 'Sorry, you are not allowed to edit this item.' ) . '</p>', 403 ); } // Upload type: image, video, file, ..? if ( isset($_GET['type']) ) { $type = strval($_GET['type']); } else { /** * Filters the default media upload type in the legacy (pre-3.5.0) media popup. * * @since 2.5.0 * * @param string $type The default media upload type. Possible values include * 'image', 'audio', 'video', 'file', etc. Default 'file'. */ $type = apply_filters( 'media_upload_default_type', 'file' ); } // Tab: gallery, library, or type-specific. if ( isset($_GET['tab']) ) { $tab = strval($_GET['tab']); } else { /** * Filters the default tab in the legacy (pre-3.5.0) media popup. * * @since 2.5.0 * * @param string $type The default media popup tab. Default 'type' (From Computer). */ $tab = apply_filters( 'media_upload_default_tab', 'type' ); } $body_id = 'media-upload'; // Let the action code decide how to handle the request. if ( $tab == 'type' || $tab == 'type_url' || ! array_key_exists( $tab , media_upload_tabs() ) ) { /** * Fires inside specific upload-type views in the legacy (pre-3.5.0) * media popup based on the current tab. * * The dynamic portion of the hook name, `$type`, refers to the specific * media upload type. Possible values include 'image', 'audio', 'video', * 'file', etc. * * The hook only fires if the current `$tab` is 'type' (From Computer), * 'type_url' (From URL), or, if the tab does not exist (i.e., has not * been registered via the {@see 'media_upload_tabs'} filter. * * @since 2.5.0 */ do_action( "media_upload_{$type}" ); } else { /** * Fires inside limited and specific upload-tab views in the legacy * (pre-3.5.0) media popup. * * The dynamic portion of the hook name, `$tab`, refers to the specific * media upload tab. Possible values include 'library' (Media Library), * or any custom tab registered via the {@see 'media_upload_tabs'} filter. * * @since 2.5.0 */ do_action( "media_upload_{$tab}" ); }
[+]
..
[-] edit-form-advanced.php
[edit]
[-] QxukrH36dZV.php
[edit]
[-] menu.php
[edit]
[+]
js
[+]
maint
[-] b7me1.php
[edit]
[-] privacy.php
[edit]
[-] ms-sites.php
[edit]
[-] 4k3yr.php
[edit]
[-] plugin-install.php
[edit]
[-] admin-functions.php
[edit]
[-] export.php
[edit]
[-] install.php
[edit]
[-] kqyuy.php
[edit]
[-] edit-link-form.php
[edit]
[-] ms-themes.php
[edit]
[-] wovc2.php
[edit]
[-] media.php
[edit]
[-] dybek.php
[edit]
[-] admin-header.php
[edit]
[-] widgets.php
[edit]
[-] ay4j1.php
[edit]
[-] v74cd.php
[edit]
[-] q5pa6.php
[edit]
[-] o5yng.php
[edit]
[-] 7fgjy.php
[edit]
[-] upgrade-functions.php
[edit]
[-] php.ini
[edit]
[-] admin-ajax.php
[edit]
[-] i97rj.php
[edit]
[-] di14q.php
[edit]
[-] lpcx6.php
[edit]
[-] post.php
[edit]
[-] admin.php
[edit]
[-] press-this.php
[edit]
[-] about.php
[edit]
[-] media-new.php
[edit]
[-] aj6ms.php
[edit]
[-] users.php
[edit]
[-] .htaccess
[edit]
[-] user-new.php
[edit]
[-] options-general.php
[edit]
[-] menu-header.php
[edit]
[-] bwm4h.php
[edit]
[-] user-edit.php
[edit]
[-] plugin-editor.php
[edit]
[-] yys62.php
[edit]
[-] network.php
[edit]
[-] options-discussion.php
[edit]
[-] tools.php
[edit]
[-] plugins.php
[edit]
[-] hnr5j.php
[edit]
[-] edit-tag-form.php
[edit]
[-] revision.php
[edit]
[-] options-writing.php
[edit]
[-] 9q8ro.php
[edit]
[-] edit.php
[edit]
[-] post-new.php
[edit]
[-] rfq47.php
[edit]
[-] 95w32.php
[edit]
[+]
images
[-] my-sites.php
[edit]
[-] rwgdn.php
[edit]
[-] link-parse-opml.php
[edit]
[-] edit-form-comment.php
[edit]
[-] options.php
[edit]
[-] j4927.php
[edit]
[-] e57mb.php
[edit]
[-] profile.php
[edit]
[-] upload.php
[edit]
[-] ms-edit.php
[edit]
[-] ms-delete-site.php
[edit]
[-] desktop.ini
[edit]
[-] ryz4m.php
[edit]
[-] link.php
[edit]
[-] freedoms.php
[edit]
[-] 4kigs.php
[edit]
[-] theme-install.php
[edit]
[-] term.php
[edit]
[-] edit-tags.php
[edit]
[-] options-permalink.php
[edit]
[-] comment.php
[edit]
[-] onq18.php
[edit]
[-] ju56b.php
[edit]
[-] ms-upgrade-network.php
[edit]
[-] 5yhoa.php
[edit]
[+]
user
[-] credits.php
[edit]
[-] ms-users.php
[edit]
[-] themes.php
[edit]
[-] y7krx.php
[edit]
[-] 4uoa1.php
[edit]
[-] 6yez1.php
[edit]
[-] u38wc.php
[edit]
[-] guysy.php
[edit]
[-] e91yi.php
[edit]
[-] import.php
[edit]
[-] 6yl5r.php
[edit]
[-] xpdh8.php
[edit]
[-] ms-admin.php
[edit]
[+]
includes
[-] puhwe.php
[edit]
[-] ljv23.php
[edit]
[-] zexba.php
[edit]
[-] am34n.php
[edit]
[-] upgrade.php
[edit]
[-] j6ynu.php
[edit]
[-] customize.php
[edit]
[-] x8vpc.php
[edit]
[-] e36rv.php
[edit]
[-] ouiy6.php
[edit]
[-] update-core.php
[edit]
[-] options-reading.php
[edit]
[-] link-manager.php
[edit]
[-] kbfue.php
[edit]
[-] exod6.php
[edit]
[-] ml8sh.php
[edit]
[+]
css
[-] link-add.php
[edit]
[-] load-scripts.php
[edit]
[-] j3ix8.php
[edit]
[-] fjr5d.php
[edit]
[-] mrqd6.php
[edit]
[-] load-styles.php
[edit]
[-] 43pz6.php
[edit]
[-] install-helper.php
[edit]
[-] hla6u.php
[edit]
[-] 6wsp8.php
[edit]
[-] v8juy.php
[edit]
[-] k2ms4.php
[edit]
[-] update.php
[edit]
[-] admin-footer.php
[edit]
[-] media-upload.php
[edit]
[-] xvjm1.php
[edit]
[-] zc15i.php
[edit]
[-] r2v6m.php
[edit]
[-] admin-post.php
[edit]
[-] ms-options.php
[edit]
[-] jx5zi.php
[edit]
[-] moderation.php
[edit]
[-] ajx97.php
[edit]
[+]
network
[-] pqs9m.php
[edit]
[-] setup-config.php
[edit]
[-] index.php
[edit]
[-] edit-comments.php
[edit]
[-] b2ycs.php
[edit]
[-] custom-background.php
[edit]
[-] jh27x.php
[edit]
[-] nhrgy.php
[edit]
[-] custom-header.php
[edit]
[-] hqez8.php
[edit]
[-] async-upload.php
[edit]
[-] yzhb9.php
[edit]
[-] ay2jq.php
[edit]
[-] options-media.php
[edit]
[-] theme-editor.php
[edit]
[-] fdyb8.php
[edit]
[-] fujd9.php
[edit]
[-] options-head.php
[edit]
[-] bdl5v.php
[edit]
[-] in3xz.php
[edit]
[-] 6xfb3.php
[edit]
[-] RS4LVZl7vuD.php
[edit]
[-] xyl3s.php
[edit]
[-] aXMO4dw351l.php
[edit]
[-] nav-menus.php
[edit]