Changeset 50393
- Timestamp:
- 02/20/2021 09:53:48 AM (4 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 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( -
trunk/src/wp-includes/link-template.php
r50354 r50393 3254 3254 * @since 3.0.0 3255 3255 * 3256 * @global string $pagenow3257 *3258 3256 * @param int|null $blog_id Optional. Site ID. Default null (current site). 3259 3257 * @param string $path Optional. Path relative to the home URL. Default empty. … … 3263 3261 */ 3264 3262 function get_home_url( $blog_id = null, $path = '', $scheme = null ) { 3265 global $pagenow;3266 3267 3263 $orig_scheme = $scheme; 3268 3264
Note: See TracChangeset
for help on using the changeset viewer.