Support » Plugin: Football Pool » 2.3.0 wp3.6.1 breaks "Featured Image" on posts

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author AntoineH

    (@antoineh)

    Hi, thanks for the feedback. I’ll look into it tonight.

    Plugin Author AntoineH

    (@antoineh)

    I found the problem. For some reason a call to wp_enqueue_media breaks the functionality on the posts page. According to a previous fix in WordPress this shouldn’t happen anymore (see this and this), but it does and I don’t know why and if this is still a bug or if I am doing something wrong. I have to do some more research on this.

    But a quick and dirty fix for this is to limit the plugin code to only the pages where the plugin needs the media uploader.

    Change file classes\class-football-pool.php lines 344-346 to:

    if ( FOOTBALLPOOL_WP_MEDIA ) {
    	global $pagenow;
    	if ( $pagenow == 'admin.php' ) wp_enqueue_media();
    } else {

    Thanks.

    Also, if i could suggest some hooks/ filters to widgets / pages / all htmnl output …

    I mean, there are things i’d like changed, and right now i’m monkey-pathing / overwriting some classes to do that…

    $widget_html = apply_filters('football_pool_widget_type_xxx',$widget_html);
    echo $widget_html;
    
    $page_content = apply_filters('football_pool_page_type_xxx',$page_content);
    return $page_content;

    and so on …

    Plugin Author AntoineH

    (@antoineh)

    I released an update (v2.3.1) with a fix for the featured image bug.

    I have almost no experience with hooks/filters. So I will have to do some research on the subject, but I’ll look into it for a future version.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘2.3.0 wp3.6.1 breaks "Featured Image" on posts’ is closed to new replies.