WordPress.org

Plugin Directory

Changeset 621464


Ignore:
Timestamp:
11/05/12 22:46:26 (18 months ago)
Author:
bainternet
Message:

fixed extra p tag on snippets

Location:
shortcodes-ui/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • shortcodes-ui/trunk/readme.txt

    r611115 r621464  
    55Requires at least: 2.9.2 
    66Tested up to: 3.5 
    7 Stable tag: 1.8.6 
     7Stable tag: 1.8.7 
    88 
    99This Plugin adds an admin UI for creating shortcodes without the need to code, edit code, or even know code. 
     
    70706. shortcode ui panel insert to post button. 
    7171== Changelog == 
     721.8.7 Fixed extra P tags on snippets. 
     73 
    72741.8.6 Fixed snippets and simple content not displying correctly. 
    7375 
  • shortcodes-ui/trunk/shortcode-maker.php

    r611115 r621464  
    44Plugin URI: http://en.bainternet.info 
    55Description: Admin UI for creating ShortCodes in WordPress removing the need for you to write any code. 
    6 Version: 1.8.6 
     6Version: 1.8.7 
    77Author: Bainternet 
    88Author URI: http://en.bainternet.info 
     
    12271227            ) ); 
    12281228             
     1229            $pl_options = get_option('shui_settings',null); 
     1230            if ($pl_options == null || !isset($pl_options['autop'])){ 
     1231                return; 
     1232            } 
     1233            switch ($pl_options['autop']) { 
     1234                case 'remove': 
     1235                    remove_filter( 'the_content', 'wpautop' ); 
     1236                    break; 
     1237                case 'prospond': 
     1238                    remove_filter( 'the_content', 'wpautop' ); 
     1239                    add_filter( 'the_content', 'wpautop' , 12); 
     1240                    break; 
     1241                default: 
     1242                    break; 
     1243            } 
    12291244            return apply_filters('the_content',$sc_content); 
    12301245        } 
Note: See TracChangeset for help on using the changeset viewer.