WordPress.org

Ready to get started?Download WordPress

Forums

WP Photo Album Plus
[resolved] Widget doesn't show HTML anymore in 3.0.1 (3 posts)

  1. mschot
    Member
    Posted 3 years ago #

    Previously (version < 3.0.0) the image-description of the Picture of the day widget showed HTML perfectly (in my case the URL to the copyright holder of the photo) and I could turn on/off HTML (admin settings) for the description in the slideshow etc (this setting however has no influence on the widget).

    Now as per 3.0.1 the widget shows the HTML as text/code. There is a wppa-html() function call for the description in the slideshow etc, but not in the widget. Could you please look into this?

    thanks,

    Marc

    http://wordpress.org/extend/plugins/wp-photo-album-plus/

  2. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 3 years ago #

    I fixed it, do a re-install (de-activate, delete and re-install and activate the plugin, (it may take half an hour before the fix is available)

    or modify wppa_widget.php as follows:

    line 125:

    $widget_content .= '<div class="wppa-widget-text">' . wppa_qtrans(wppa_html(stripslashes($image['name']))) . '</div>';

    line 130:

    $widget_content .= '<div class="wppa-widget-text">' . wppa_qtrans(wppa_html(stripslashes($image['description']))) . '</div>';

    i.e. insert wppa_html( at the right place! and don't forget the extra )

  3. mschot
    Member
    Posted 3 years ago #

    Thanks! It works on all pages except the frontpage of the site (??).

    Unless you have programmed an exception for the frontpage, I assume there is some other plugin messing stuff up; it's not a caching issue, when I change the widget text that change does show ... with the error still occurring.

    Also now a new error has been introduced: if I set a link with single-quotes <a href='http://etc'> I get a link to http://myurl/http://etc instead of http://etc; with doublequotes < href="http://etc" > it's fine.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic