WordPress.org

Ready to get started?Download WordPress

Forums

Front-end Editor
[resolved] the_post_thumbnail fix (2 posts)

  1. Rob Vermeer
    Member
    Posted 3 years ago #

    the_post_thumbnail doesn't work correct for normal users with front end editor activated.

    The problem was here:
    function wrap( $html, $post_id, $post_thumbnail_id, $size ) {
    if ( !$post_id = $this->_get_id( $post_id, false ) )
    return $content;

    The return value was empty, because $content wasn't set.
    Changed to:

    function wrap( $html, $post_id, $post_thumbnail_id, $size ) {
    if ( !$post_id = $this->_get_id( $post_id, false ) )
    return $html;

    Now it returns the HTML and it will work again.

    Great plugin btw :-)

    http://wordpress.org/extend/plugins/front-end-editor/

  2. scribu
    Member
    Plugin Author

    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic