WordPress.org

Make WordPress Core

Ticket #19248: 19248.diff

File 19248.diff, 382 bytes (added by nathanrice, 3 years ago)

Do not encode on return

  • wp-admin/includes/plugin.php

     
    13181318                $url = ''; 
    13191319        } 
    13201320 
    1321         $url = esc_url($url); 
    1322  
    13231321        if ( $echo ) 
    1324                 echo $url; 
     1322                echo esc_url( $url ); 
    13251323 
    1326         return $url; 
     1324        return esc_url_raw( $url ); 
    13271325} 
    13281326 
    13291327//