Add_Custom_Fields_To_Search::is_media_library()
Are we looking at the Media Library?
Return Return
(bool)
Source Source
File: includes/class-add-custom-fields-to-search.php
protected function is_media_library() { return 'upload.php' === basename( sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ?? '' ) ), '?' . sanitize_text_field( wp_unslash( $_SERVER['QUERY_STRING'] ?? '' ) ) ); }
Expand full source codeCollapse full source codeView on Github