Undefined variable: $rmore
-
The variable $rmore is defined inside a conditional loop and called call outside of it.
This can create an event where the $rmore will be undefined in line 192if($strip_desc != 0){ $desc = wp_html_excerpt( $desc, $strip_desc ); $rmore = (!empty($read_more)) ? '<a href="' . $link . '" title="Read more"' . $newtab . '>' . $read_more . '</a>' : ''; if ( '[...]' == substr( $desc, -5 ) ) $desc = substr( $desc, 0, -5 ); elseif ( '[…]' != substr( $desc, -10 ) ) $desc .= ''; $desc = esc_html( $desc ); } $desc = $thumb . $desc . ' ' . $rmore;
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Undefined variable: $rmore’ is closed to new replies.