Skip to content

Commit

Permalink
version 1.8.5.1
Browse files Browse the repository at this point in the history
fixing swaptitle
  • Loading branch information
baden03 committed Aug 24, 2023
1 parent 6d808e5 commit 479917f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* 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
* Requires at least: 4.9
* Tested up to: 6.3.0
* Stable tag: 1.8.5.1
* Stable tag: 1.8.5.2
* Requires PHP: 7.2
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down
8 changes: 4 additions & 4 deletions collapse-o-matic.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Text Domain: jquery-collapse-o-matic
Plugin URI: https://pluginoven.com/plugins/collapse-o-matic/
Description: Collapse-O-Matic adds an [expand] shortcode that wraps content into a lovely, jQuery collapsible div.
Version: 1.8.5.1
Version: 1.8.5.2
Author: twinpictures, baden03
Author URI: https://twinpictures.de/
License: GPL2
Expand All @@ -29,7 +29,7 @@ class WP_Collapse_O_Matic {
* Current version
* @var string
*/
var $version = '1.8.5.1';
var $version = '1.8.5.2';

/**
* Used as prefix for options entry
Expand Down Expand Up @@ -419,7 +419,7 @@ function shortcode($atts, $content = null){
if(!empty($trigtype) && $trigtype == 'image' && !empty($triggerimage)){
$title = wp_get_attachment_image( $triggerimage, 'full' );
}
$link = $closeanchor.'<'. esc_attr($tag) .' class="collapseomatic '.esc_attr($trigclass).'" id="'.esc_attr($id).'" '.$relatt.' '.$inexatt.' '.$altatt.' '.$anchor.' '.$groupatt.' '.$effatt.' '.$duratt.'>'.esc_attr($startwrap).$title.esc_attr($endwrap).'</'. esc_attr($tag) .'>';
$link = $closeanchor.'<'. esc_attr($tag) .' class="collapseomatic '.esc_attr($trigclass).'" id="'.esc_attr($id).'" '.$relatt.' '.$inexatt.' '.$altatt.' '.$anchor.' '.$groupatt.' '.$effatt.' '.$duratt.'>'.$startwrap.$title.$endwrap.'</'. esc_attr($tag) .'>';
}

//swap image
Expand All @@ -437,7 +437,7 @@ function shortcode($atts, $content = null){
if(!empty($swapalt)){
$swapalt_attr = "alt='".esc_attr($swapalt)."'";
}
$link .= "<". esc_attr($tag) ." id='swap-".esc_attr($id)."' ".esc_attr($swapalt_attr)." class='colomat-swap' style='display:none;'>".esc_attr($startwrap). esc_attr( $swaptitle ).esc_attr($endwrap)."</". esc_attr($tag) .">";
$link .= "<". esc_attr($tag) ." id='swap-".esc_attr($id)."' ".esc_attr($swapalt_attr)." class='colomat-swap' style='display:none;'>".$startwrap.$swaptitle.$endwrap."</". esc_attr($tag) .">";
}

if($excerpt){
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Donate link: https://pluginoven.com/panares-fund/
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
Requires at least: 4.9
Tested up to: 6.3.0
Stable tag: 1.8.5.1
Stable tag: 1.8.5.2
Requires PHP: 7.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -51,8 +51,11 @@ No. Not even close.

== Changelog ==

= 1.8.5.2 =
* no longer escaping swaptitle

= 1.8.5.1 =
* no longer sanitising title string
* no longer escaping or sanatizing title string

= 1.8.5 =
* using sanatize_title for the title tag
Expand Down

0 comments on commit 479917f

Please sign in to comment.