Changeset 50393 for trunk/src/wp-includes/functions.wp-scripts.php
- Timestamp:
- 02/20/2021 09:53:48 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.wp-scripts.php
r49758 r50393 259 259 * @since 2.1.0 260 260 * 261 * @global string $pagenow 262 * 261 263 * @param string $handle Name of the script to be removed. 262 264 */ 263 265 function wp_deregister_script( $handle ) { 266 global $pagenow; 267 264 268 _wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle ); 265 269 … … 270 274 $current_filter = current_filter(); 271 275 if ( ( is_admin() && 'admin_enqueue_scripts' !== $current_filter ) || 272 ( 'wp-login.php' === $ GLOBALS['pagenow']&& 'login_enqueue_scripts' !== $current_filter )276 ( 'wp-login.php' === $pagenow && 'login_enqueue_scripts' !== $current_filter ) 273 277 ) { 274 278 $not_allowed = array(
Note: See TracChangeset
for help on using the changeset viewer.