Plugin Directory

Changeset 1492870


Ignore:
Timestamp:
09/08/2016 09:58:28 PM (10 years ago)
Author:
bortpress
Message:

Removed html special chars from the post titles

Location:
cactus-masonry-plus
Files:
14 added
2 edited

Legend:

Unmodified
Added
Removed
  • cactus-masonry-plus/trunk/cactusMasonry.php

    r1479848 r1492870  
    22/**
    33 * @package Cactus Masonry Plus
    4  * @version 0.0.5.3
     4 * @version 0.0.5.4
    55 */
    66/*
     
    88 * Plugin URI: cactus.cloud
    99 * Description: A highly customizable gallery of post thumbnails.
    10  * Version: 0.0.5.3
     10 * Version: 0.0.5.4
    1111 * Author: cactus.cloud
    1212 * Author URI: http://cactus.cloud/masonryplus
     
    3232   
    3333    private static $a = null;
    34     private static $VERSION = "0.0.5.3";
     34    private static $VERSION = "0.0.5.4";
    3535   
    3636    static public function init() {
     
    9393            'showtitle'                 => false,
    9494            'showcategory'              => false,
     95            'showexcerpt'               => false,
    9596
    9697            //Author Metadata
     
    284285                    else if($thumb != false && ($linkaction == "full" || $linkaction == "large" || $linkaction == "medium" || $linkaction == "thumbnail")) $o .= "b.url = \"" . wp_get_attachment_image_src($tId, $linkaction)[0] . "\";";
    285286                    //Add meta data
    286                     if(self::$a['showtitle']) $o .= "b.title = \"" . htmlspecialchars(get_the_title()) . "\";";
     287                    if(self::$a['showtitle']) $o .= "b.title = \"" . get_the_title() . "\";";
    287288                    if(self::$a['showcategory']) {
    288289                        $cats = get_the_category();
     
    295296                        }
    296297                    }
     298                    if(self::$a['showexcerpt']) $o .= "b.excerpt = \"" .  wp_trim_excerpt() . "\";";
     299                   
    297300                    if(self::$a['showauthor']) {
    298301                        $auth = get_the_author_meta('user_nicename');
    299                         $o .= "b.author = \"" . htmlspecialchars($auth) . "\";";
     302                        $o .= "b.author = \"" . $auth . "\";";
    300303                        if(self::$a['showauthoraslink']) $o .= "b.authorUrl = \"" . get_author_posts_url(get_the_author_meta("ID"), $auth) . "\";";
    301304                    }
    302305                    if(self::$a['showdate']) {
    303                         if(self::$a['dateformat'] == "") $o .= "b.date = \"" . htmlspecialchars(get_the_date()) . "\";";
    304                         else $o .= "b.date = \"" . htmlspecialchars(get_the_date(self::$a['dateformat'])) . "\";";
     306                        if(self::$a['dateformat'] == "") $o .= "b.date = \"" . get_the_date() . "\";";
     307                        else $o .= "b.date = \"" . get_the_date(self::$a['dateformat']) . "\";";
    305308                    }
    306309                    //Load or lazy load gallery brick
  • cactus-masonry-plus/trunk/readme.txt

    r1479848 r1492870  
    55Requires at least: 4.4.2
    66Tested up to: 4.6
    7 Stable tag: 0.0.5.3
     7Stable tag: 0.0.5.4
    88License: GNU AGPLv3
    99License URI: http://cactus.cloud/licenses/agpl-3.0.txt
     
    3030
    3131== Changelog ==
     32= 0.0.5.4 =
     33* Fixed an issue with html character replacing in post titles
     34
    3235= 0.0.5.3 =
    3336* Fixed the links in the readme file
     
    112115
    113116== Upgrade Notice ==
     117= 0.0.5.4 =
     118* Removed htmlspecialchars from the post titles
     119
    114120= 0.0.3.0 =
    115121* Warning: This update contains a major revision to the layout and styling engine.
Note: See TracChangeset for help on using the changeset viewer.