Developer: Fix for static function photo_shortcode()
-
@adamtootle are you going to be updating the
static function photo_shortcode(){ $imagepath = self::photo_url_shortcode(); if(!empty( $imagepath)){ return '<img src="' . self::photo_url_shortcode() . '" />'; } else { return ""; } }
so that it no longer throws errors for older versions of PHP? Something like below. Your current version fatally errors. I work at Purdue and I’d like to continue to use your plugin but cannot if the future version does not fix the issue. Please respond soon. Thanks.
static function photo_shortcode(){ $imagepath = self::photo_url_shortcode(); if(!empty( $imagepath)){ return ‘<img src="' . self::photo_url_shortcode() . '" />'; } else { return ""; } }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Developer: Fix for static function photo_shortcode()’ is closed to new replies.