• Resolved knwilson

    (@knwilson)


    @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)
  • Thread Starter knwilson

    (@knwilson)

    Sorry, I copied the fix twice. Your current code is

        static function photo_shortcode(){
            if(!empty(self::photo_url_shortcode())){ <- This is line 91
                return '<img src="' . self::photo_url_shortcode() . '" />';
            } else {
                return "";
            }
        }
    
    Plugin Author adamtootle

    (@adamtootle)

    I released a fix for this tonight.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Developer: Fix for static function photo_shortcode()’ is closed to new replies.