diff -r c7c34916027a -r 177826044cd9 wp/wp-includes/deprecated.php --- a/wp/wp-includes/deprecated.php Mon Oct 14 18:06:33 2019 +0200 +++ b/wp/wp-includes/deprecated.php Mon Oct 14 18:28:13 2019 +0200 @@ -1878,7 +1878,7 @@ if ( !$fullsize && $src = wp_get_attachment_thumb_url( $post->ID ) ) { // We have a thumbnail desired, specified and existing - $src_file = basename($src); + $src_file = wp_basename($src); } elseif ( wp_attachment_is_image( $post->ID ) ) { // We have an image without a thumbnail @@ -1888,7 +1888,7 @@ // No thumb, no image. We'll look for a mime-related icon instead. $icon_dir = apply_filters( 'icon_dir', get_template_directory() . '/images' ); - $src_file = $icon_dir . '/' . basename($src); + $src_file = $icon_dir . '/' . wp_basename($src); } if ( !isset($src) || !$src ) @@ -2508,10 +2508,14 @@ } /** - * Is the current admin page generated by a plugin? + * Determines whether the current admin page is generated by a plugin. * * Use global $plugin_page and/or get_plugin_page_hookname() hooks. - * + * + * For more information on this and similar theme functions, check out + * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ + * Conditional Tags} article in the Theme Developer Handbook. + * * @since 1.5.0 * @deprecated 3.1.0 * @@ -3054,7 +3058,7 @@ */ function get_theme_data( $theme_file ) { _deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme()' ); - $theme = new WP_Theme( basename( dirname( $theme_file ) ), dirname( dirname( $theme_file ) ) ); + $theme = new WP_Theme( wp_basename( dirname( $theme_file ) ), dirname( dirname( $theme_file ) ) ); $theme_data = array( 'Name' => $theme->get('Name'), @@ -3713,8 +3717,12 @@ } /** - * Whether the current URL is within the comments popup window. - * + * Determines whether the current URL is within the comments popup window. + * + * For more information on this and similar theme functions, check out + * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ + * Conditional Tags} article in the Theme Developer Handbook. + * * @since 1.5.0 * @deprecated 4.5.0 * @@ -3737,12 +3745,12 @@ } /** - * Adds element attributes to open links in new windows. + * Adds element attributes to open links in new tabs. * * @since 0.71 * @deprecated 4.5.0 * - * @param string $text Content to replace links to open in a new window. + * @param string $text Content to replace links to open in a new tab. * @return string Content that has filtered links. */ function popuplinks( $text ) {