Ticket #5607: remove_admin_notices4.diff
| File remove_admin_notices4.diff, 1.4 KB (added by , 18 years ago) |
|---|
-
wp-includes/theme.php
98 98 $name = $theme = wp_kses( trim( $theme_name[1] ), $themes_allowed_tags ); 99 99 $theme_uri = clean_url( trim( $theme_uri[1] ) ); 100 100 $description = wptexturize( wp_kses( trim( $description[1] ), $themes_allowed_tags ) ); 101 $template = wp_kses( trim( $template[1]), $themes_allowed_tags );101 $template = wp_kses( trim( (isset($template[1])) ? $template[1] : '' ), $themes_allowed_tags ); 102 102 103 $author_uri = clean_url( trim( $author_uri[1]) );103 $author_uri = clean_url( trim( (isset($author_uri[1])) ? $author_uri[1] : '' ) ); 104 104 105 105 if ( empty( $author_uri[1] ) ) { 106 106 $author = wp_kses( trim( $author_name[1] ), $themes_allowed_tags ); -
wp-includes/functions.php
990 990 991 991 992 992 function wp_get_referer() { 993 foreach ( array( $_REQUEST['_wp_http_referer'], $_SERVER['HTTP_REFERER'] ) as $ref ) 994 if ( !empty( $ref ) ) 995 return $ref; 993 if ( ! empty( $_REQUEST['_wp_http_referer'] ) ) 994 return $_REQUEST['_wp_http_referer']; 995 else if ( ! empty( $_SERVER['HTTP_REFERER'] ) ) 996 return $_SERVER['HTTP_REFERER']; 996 997 return false; 997 998 } 998 999