Skip to content

Commit

Permalink
Untangle Calypso Media Page: Enable the feature on media-new.php (#41709
Browse files Browse the repository at this point in the history
)

* Untangle Calypso Media Page: Enable the feature on media-new.php

* changelog
  • Loading branch information
arthur791004 authored Feb 11, 2025
1 parent 3c17a49 commit 7ed57c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Significance: minor
Type: added

Untangle Calypso Media Page: Enable the feature
Untangle Calypso Media Page: Enable the feature on both upload.php and media-new.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@ function load_wpcom_media_url_upload_form() {

add_action( 'wp_ajax_wpcom_media_url_upload', 'wpcom_handle_media_url_upload' );

if ( empty( $_GET['untangling-media'] ) ) { // phpcs:disable WordPress.Security.NonceVerification.Recommended
return;
}

global $pagenow;
if ( $pagenow !== 'media-new.php' ) {
add_action( 'pre-upload-ui', 'append_wpcom_media_url_upload', 9 );
Expand Down

0 comments on commit 7ed57c2

Please sign in to comment.