Plugin Directory

Changeset 989595


Ignore:
Timestamp:
09/14/2014 06:16:31 PM (12 years ago)
Author:
ritesh1991
Message:

Fixed shortcodes issue (Supports shortcodes in content)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-couch-mode/tags/1.2/wp-couch-mode.php

    r989416 r989595  
    33  Plugin Name: WP Couch Mode
    44  Plugin URI: http://wordpress.org/plugins/wp-couch-mode/
    5   Description: WP Couch Mode lets you get a Clean or Simple Reading mode for post in your Wordpress website.
    6   Version: 1.1
     5  Description: WP Couch Mode lets you get a Clean or Simple Reading mode for post in your WordPress website.
     6  Version: 1.2
    77  Author: Ritesh Vatwani
    88  Author URI: http://riteshvatwani.com/
     
    197197        $html .= '</div>';
    198198    }
    199     $html .= wpautop($page_data->post_content);
     199   
     200    // filter out iframe here
     201    $post_content =  preg_replace( '@<iframe[^>]*?>.*?</iframe>@siu', '', $page_data->post_content );
     202   
     203    $html .= wpautop($post_content);
    200204
    201205    $html .= "</div></div>";
    202206
    203     echo $html;
     207    echo do_shortcode($html);
    204208    die();
    205209}
Note: See TracChangeset for help on using the changeset viewer.