Plugin Directory

Changeset 2960676


Ignore:
Timestamp:
08/30/2023 01:54:24 PM (3 years ago)
Author:
baden03
Message:

sanazitzing title, swaptitle and content

Location:
jquery-collapse-o-matic/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • jquery-collapse-o-matic/trunk/README.md

    r2957370 r2960676  
    44* Tags: collapse, expand, collapsible, expandable, expandable content, collapsable content, shortcode, hidden, hide, display, accordion, accordion, jQuery, javascript, roll-your-own, twinpictures, read me, read more, more, plugin oven
    55* Requires at least: 4.9
    6 * Tested up to: 6.3.0
    7 * Stable tag: 1.8.4
     6* Tested up to: 6.3.1
     7* Stable tag: 1.8.5.3
    88* Requires PHP: 7.2
    99* License: GPLv2 or later
  • jquery-collapse-o-matic/trunk/collapse-o-matic.php

    r2957370 r2960676  
    55Plugin URI: https://pluginoven.com/plugins/collapse-o-matic/
    66Description: Collapse-O-Matic adds an [expand] shortcode that wraps content into a lovely, jQuery collapsible div.
    7 Version: 1.8.4
     7Version: 1.8.5.3
    88Author: twinpictures, baden03
    99Author URI: https://twinpictures.de/
     
    3030     * @var string
    3131     */
    32     var $version = '1.8.4';
     32    var $version = '1.8.5.3';
    3333
    3434    /**
     
    324324                $collapse_class = 'collapseomatic_content_inline ';
    325325            }
    326             $eDiv = '<'. esc_attr(  $targtag ) .' id="target-'.$id.'" class="'.esc_attr($collapse_class.$inline_class.$targclass).'">'.$content.'</'. esc_attr(  $targtag ) .'>';
     326            $eDiv = '<'. esc_attr(  $targtag ) .' id="target-'.$id.'" class="'.esc_attr($collapse_class.$inline_class.$targclass).'">'.wp_kses_post( $content ).'</'. esc_attr(  $targtag ) .'>';
    327327        }
    328328        if($excerpt){
     
    336336            }
    337337            if($excerptpos == 'above-trigger'){
    338                 $nibble = '<'. esc_attr( $excerpttag ) .' id="excerpt-'.esc_attr($id).'" class="'.esc_attr($excerptclass).'">'. esc_html( $excerpt ).'</'. esc_attr( $excerpttag ) .'>';
     338                $nibble = '<'. esc_attr( $excerpttag ) .' id="excerpt-'.esc_attr($id).'" class="'.esc_attr($excerptclass).'">'. esc_attr( $excerpt ).'</'. esc_attr( $excerpttag ) .'>';
    339339            }
    340340            else{
    341                 $nibble = '<'. esc_attr( $excerpttag ) .' id="excerpt-'.esc_attr($id).'" class="collapseomatic_excerpt '.esc_attr($excerptclass).'">'. esc_html( $excerpt ) .'</'. esc_attr( $excerpttag ) .'>';
     341                $nibble = '<'. esc_attr( $excerpttag ) .' id="excerpt-'.esc_attr($id).'" class="collapseomatic_excerpt '.esc_attr($excerptclass).'">'. esc_attr( $excerpt ) .'</'. esc_attr( $excerpttag ) .'>';
    342342            }
    343343            //swapexcerpt
     
    346346                $swapexcerpt = do_shortcode($swapexcerpt);
    347347                $swapexcerpt = apply_filters( 'colomat_swapexcerpt', $swapexcerpt );
    348                 $nibble .= '<'. esc_attr( $excerpttag ) .' id="swapexcerpt-'.esc_attr($id).'" style="display:none;">'. esc_html( $swapexcerpt ).'</'. esc_attr( $excerpttag ) .'>';
     348                $nibble .= '<'. esc_attr( $excerpttag ) .' id="swapexcerpt-'.esc_attr($id).'" style="display:none;">'. esc_attr( $swapexcerpt ).'</'. esc_attr( $excerpttag ) .'>';
    349349            }
    350350        }
     
    420420                $title =  wp_get_attachment_image( $triggerimage, 'full' );
    421421            }
    422             $link = $closeanchor.'<'. esc_attr($tag) .' class="collapseomatic '.esc_attr($trigclass).'" id="'.esc_attr($id).'" '.$relatt.' '.$inexatt.' '.$altatt.' '.$anchor.' '.$groupatt.' '.$effatt.' '.$duratt.'>'.esc_html($startwrap).esc_html($title).esc_html($endwrap).'</'. esc_attr($tag) .'>';
     422            $link = $closeanchor.'<'. esc_attr($tag) .' class="collapseomatic '.esc_attr($trigclass).'" id="'.esc_attr($id).'" '.$relatt.' '.$inexatt.' '.$altatt.' '.$anchor.' '.$groupatt.' '.$effatt.' '.$duratt.'>'.wp_kses_post($startwrap.$title.$endwrap).'</'. esc_attr($tag) .'>';
    423423        }
    424424
     
    438438                $swapalt_attr = "alt='".esc_attr($swapalt)."'";
    439439            }
    440             $link .= "<". esc_attr($tag) ." id='swap-".esc_attr($id)."' ".esc_attr($swapalt_attr)." class='colomat-swap' style='display:none;'>".esc_html($startwrap). esc_html( $swaptitle ).esc_html($endwrap)."</". esc_attr($tag) .">";
     440            $link .= "<". esc_attr($tag) ." id='swap-".esc_attr($id)."' ".esc_attr($swapalt_attr)." class='colomat-swap' style='display:none;'>".wp_kses_post($startwrap.$swaptitle.$endwrap)."</". esc_attr($tag) .">";
    441441        }
    442442
  • jquery-collapse-o-matic/trunk/readme.txt

    r2957370 r2960676  
    55Tags: collapse, expand, collapsible, expandable, expandable content, collapsable content, shortcode, hidden, hide, display, accordion, accordion, jQuery, javascript, roll-your-own, twinpictures, read me, read more, more, plugin oven
    66Requires at least: 4.9
    7 Tested up to: 6.3.0
    8 Stable tag: 1.8.4
     7Tested up to: 6.3.1
     8Stable tag: 1.8.5.3
    99Requires PHP: 7.2
    1010License: GPLv2 or later
     
    5151
    5252== Changelog ==
     53
     54= 1.8.5.3 =
     55* title, swap title and content are being sanatzied using the wp_kses_post function
     56
     57= 1.8.5.2 =
     58* no longer escaping swaptitle
     59
     60= 1.8.5.1 =
     61* no longer escaping or sanatizing title string
     62
     63= 1.8.5 =
     64* using sanatize_title for the title tag
    5365
    5466= 1.8.4 =
     
    415427
    416428== Upgrade Notice ==
    417 * added orderby and order attributes for ordering collapse-commander sub-elements
     429* title, swap title and content are being sanatzied using the wp_kses_post function
Note: See TracChangeset for help on using the changeset viewer.