PHP error in admin
-
Line 81 of
admin/admin-functions.php
has three errors, as far as I can see:1) There is no test of whether the thumbnail is set on the if statement, which will lead to warnings:
if ( $column == 'image' && has_post_thumbnail( $this_testimonial ) )
2 & 3) Rather than referring to
$this_testimonial
you refer to$post
which is not set. The code should be:get_the_post_thumbnail( $this_testimonial->ID, array( 50, 50 ), array( 'title' => trim( strip_tags( $this_testimonial->post_title ) ) ) )
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP error in admin’ is closed to new replies.