Plugin Directory

Changeset 813431


Ignore:
Timestamp:
12/02/2013 01:51:53 AM (12 years ago)
Author:
Code96
Message:

<p> tag and line break bug fix

Location:
genesis-easy-columns/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • genesis-easy-columns/trunk/includes/shortcodes.php

    r740142 r813431  
    11<?php
     2
    23    //Turn editor auto format off
    3     remove_filter( 'the_content', 'wpautop' );
     4    $wpautop_on = has_filter('the_content', 'wpautop');
     5    if ($wpautop_on) {
     6        remove_filter( 'the_content', 'wpautop' );
     7    }
    48   
    59    //Column Shortcodes
     
    6771
    6872    //Turn auto format back on
    69     add_filter( 'the_content', 'wpautop' , 12);
     73    if ($wpautop_on) {
     74        add_filter( 'the_content', 'wpautop', (is_int($wpautop_on) ? $wpautop_on : 10));
     75    }
  • genesis-easy-columns/trunk/readme.txt

    r740142 r813431  
    4545== Changelog ==
    4646
     47= 1.3 =
     48Fixed bug that was adding <p> tags and line breaks to forms.
     49
    4750= 1.2 =
    4851Allows nested shortcodes
Note: See TracChangeset for help on using the changeset viewer.