Forums

Bug at wp-includes/media.php:76 (1 post)

  1. japonophile
    Member
    Posted 1 year ago #

    There is a problem with the following code in wp-includes/media.php (line 76):

    if ( $thumb_file = wp_get_attachment_thumb_file() && $info = getimagesize($thumb_file) ) {

    It should be as follows:

    if ( ($thumb_file = wp_get_attachment_thumb_file($id)) && ($info = getimagesize($thumb_file)) ) {

    - missing parentheses causing the condition to be wrongly interpreted
    - missing $id argument to wp_get_attachment_thumb_file

    Hope this can be fixed soon.

Topic Closed

This topic has been closed to new replies.

About this Topic