Plugin Directory

Changeset 3204524


Ignore:
Timestamp:
12/08/2024 11:24:00 PM (16 months ago)
Author:
buzztone
Message:

Release Version 2.6.5

Location:
contact-form-7-skins
Files:
238 added
3 edited

Legend:

Unmodified
Added
Removed
  • contact-form-7-skins/trunk/includes/admin-visual.php

    r3123527 r3204524  
    327327            case 'fieldset':
    328328                $skin_item = $dom->createElement( 'fieldset' );
    329                 $label = isset( $item->cf7sLabel ) ? wp_strip_all_tags( $item->cf7sLabel ) : ''; // validate, set default to empty
    330                
    331                 // Replace "&" to "cf7s&" to avoid "Unterminated Entity Reference" issue,
    332                 // and will be replaced back in extract_visual().
    333                 // @link https://bugs.php.net/bug.php?id=39521
    334                 // @since 0.7.2
    335                 $label = str_replace( '&', 'cf7s&', $label );
    336                
    337                 $legend = $dom->createElement( 'legend', $label );
    338                 $skin_item->appendChild( $legend );
    339                 break;
    340                
     329
     330                // Only add legend tag if fieldset label is not empty
     331                if ( isset( $item->cf7sLabel ) && ! empty( $item->cf7sLabel ) ) {
     332                    $label = wp_strip_all_tags( $item->cf7sLabel ); // validate
     333
     334                    // Replace "&" to "cf7s&" to avoid "Unterminated Entity Reference" issue,
     335                    // and will be replaced back in extract_visual().
     336                    // @link https://bugs.php.net/bug.php?id=39521
     337                    // @since 0.7.2
     338                    $label = str_replace( '&', 'cf7s&', $label );
     339
     340                    $legend = $dom->createElement( 'legend', $label );
     341                    $skin_item->appendChild( $legend );
     342                }
     343
     344                break;
     345
    341346            case 'paragraph':
    342347                $skin_item = $dom->createElement( 'p' );
  • contact-form-7-skins/trunk/index.php

    r3123527 r3204524  
    44 * Plugin URI:  http://cf7skins.com
    55 * Description: Adds drag & drop Visual Editor with Templates & Styles to Contact Form 7. Requires Contact Form 7.
    6  * Version:     2.6.4
     6 * Version:     2.6.5
    77 * Author:      Neil Murray
    88 * Author URI:  http://cf7skins.com
     
    3131 * @since 0.1.0
    3232 */
    33 define( 'CF7SKINS_VERSION', '2.6.4' );
     33define( 'CF7SKINS_VERSION', '2.6.5' );
    3434define( 'CF7SKINS_OPTIONS', 'cf7skins' ); // Database option names
    3535define( 'CF7SKINS_FEATURE_FILTER', false ); // @since 0.4.0
  • contact-form-7-skins/trunk/readme.txt

    r3126944 r3204524  
    33Tags: contact form 7, contact form 7 addon, contact form 7 extension, contact form 7 template, contact form 7 style
    44Requires at least: 4.3
    5 Tested up to: 6.6
     5Tested up to: 6.7
    66Requires PHP: 7.4
    7 Stable tag: 2.6.4
     7Stable tag: 2.6.5
    88Author URI: https://cf7skins.com
    99License: GPLv2 or later
     
    118118
    119119== Changelog ==
     120
     121= 2.6.5 - 2024-12-06 =
     122
     123* FIX: Ensure Legend HTML element is removed if legend content is empty
    120124
    121125= 2.6.4 - 2024-07-15 =
Note: See TracChangeset for help on using the changeset viewer.