WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Front-end Editor] the_post_thumbnail fix

[Resolved] [Plugin: Front-end Editor] the_post_thumbnail fix

  • 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/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: Front-end Editor] the_post_thumbnail fix’ is closed to new replies.