WordPress.org

Make WordPress Core

Ticket #13228: 14369.cleanup.patch

File 14369.cleanup.patch, 653 bytes (added by TobiasBg, 4 years ago)

Patch to remove unnecessary variable assignments

  • wp-admin/includes/theme.php

     
    229229                $files[] = 'sidebar.php'; 
    230230         
    231231        // Only notify if both are missing as you can use one or the other       
    232         if ( ! ( $comment = locate_template( array( 'comments.php' ) ) ) && ! ( $comment_popup = locate_template( array( 'comments-popup.php' ) ) ) ) { 
     232        if ( ! locate_template( array( 'comments.php' ) ) && ! locate_template( array( 'comments-popup.php' ) ) ) { 
    233233                $files[] = 'comments.php'; 
    234234                $files[] = 'comments-popup.php'; 
    235235        }