Make WordPress Core

Ticket #59450: general-template.php.patch

File general-template.php.patch, 594 bytes (added by Cybr, 2 years ago)
  • wp-includes/general-template.php

     
    906906                        break;
    907907        }
    908908
    909         $url = true;
    910 
    911         if ( ! str_contains( $show, 'url' )
    912                 && ! str_contains( $show, 'directory' )
    913                 && ! str_contains( $show, 'home' )
    914         ) {
    915                 $url = false;
    916         }
    917 
    918909        if ( 'display' === $filter ) {
    919                 if ( $url ) {
     910                if ( preg_match( '/url|directory|home/', $show ) ) {
    920911                        /**
    921912                         * Filters the URL returned by get_bloginfo().
    922913                         *