WordPress.org

Plugin Directory

Changeset 636476


Ignore:
Timestamp:
12/10/12 08:38:10 (5 years ago)
Author:
SriniG
Message:

v1.5.8: Ajax auto refresh bug fix, filtering of html tags relaxed a bit, other minor fix

Location:
quotes-collection/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • quotes-collection/trunk/quotes-collection-admin.php

    r566394 r636476  
    1919    else //Add the quote data to the database 
    2020    { 
    21          
    22         $quote = wp_kses_data( stripslashes($quote) ); 
     21        global $allowedposttags; 
     22        $quote = wp_kses( stripslashes($quote), $allowedposttags ); 
    2323        $author = wp_kses( stripslashes($author), array( 'a' => array( 'href' => array(),'title' => array() ) ) ) ;  
    2424        $source = wp_kses( stripslashes($source), array( 'a' => array( 'href' => array(),'title' => array() ) ) ) ;  
     
    5656    else //Update database 
    5757    { 
    58          
    59         $quote = wp_kses_data( stripslashes($quote) ); 
     58        global $allowedposttags; 
     59        $quote = wp_kses( stripslashes($quote), $allowedposttags ); 
    6060        $author = wp_kses( stripslashes($author), array( 'a' => array( 'href' => array(),'title' => array() ) ) ) ;  
    6161        $source = wp_kses( stripslashes($source), array( 'a' => array( 'href' => array(),'title' => array() ) ) ) ;  
     
    375375        $display .= "<input type=\"submit\" name=\"orderbysubmit\" value=\"".__('Go', 'quotes-collection')."\" class=\"button-secondary\" />"; 
    376376        $display .= "</div>"; 
    377         $display .= '<div class="tablenav-pages"><span class="displaying-num">'.sprintf(_n('%d quote', '%d quote', $quotes_count, 'quotes-collection'), $quotes_count).'</span><span class="pagination-links">'. $page_nav. "</span></div>"; 
     377        $display .= '<div class="tablenav-pages"><span class="displaying-num">'.sprintf(_n('%d quote', '%d quotes', $quotes_count, 'quotes-collection'), $quotes_count).'</span><span class="pagination-links">'. $page_nav. "</span></div>"; 
    378378        $display .= "<div class=\"clear\"></div>";   
    379379        $display .= "</div>"; 
     
    395395 
    396396        $display .= "<div class=\"tablenav\">"; 
    397         $display .= '<div class="tablenav-pages"><span class="displaying-num">'.sprintf(_n('%d quote', '%d quote', $quotes_count, 'quotes-collection'), $quotes_count).'</span><span class="pagination-links">'. $page_nav. "</span></div>"; 
     397        $display .= '<div class="tablenav-pages"><span class="displaying-num">'.sprintf(_n('%d quote', '%d quotes', $quotes_count, 'quotes-collection'), $quotes_count).'</span><span class="pagination-links">'. $page_nav. "</span></div>"; 
    398398        $display .= "<div class=\"clear\"></div>";   
    399399        $display .= "</div>"; 
  • quotes-collection/trunk/quotes-collection-ajax.php

    r635854 r636476  
    99    $auto_refresh_max = $quotescollection_auto_refresh_max; 
    1010 
    11     wp_enqueue_script( 'quotescollection', plugin_dir_url(__FILE__).'quotes-collection.js', array('jquery'), $quotescollection_version, true ); 
     11    wp_enqueue_script( 'quotescollection', plugin_dir_url(__FILE__).'quotes-collection.js', array('jquery'), $quotescollection_version ); 
    1212    wp_localize_script( 'quotescollection', 'QCAjax', array( 
    1313        // URL to wp-admin/admin-ajax.php to process the request 
  • quotes-collection/trunk/quotes-collection.php

    r635854 r636476  
    44Plugin URI: http://srinig.com/wordpress/plugins/quotes-collection/ 
    55Description: Quotes Collection plugin with Ajax powered Random Quote sidebar widget helps you collect and display your favourite quotes on your WordPress blog. 
    6 Version: 1.5.7 
     6Version: 1.5.8 
    77Author: Srini G 
    88Author URI: http://srinig.com/wordpress/ 
  • quotes-collection/trunk/readme.txt

    r635857 r636476  
    66Tested up to: 3.5-RC5 
    77Stable tag: trunk 
     8License: GNU General Public License 
    89 
    910Quotes Collection plugin with Ajax powered Random Quote sidebar widget helps you collect and display your favourite quotes in your WordPress blog. 
     
    240241==Changelog== 
    241242 
     243* **2012-12-10: Version 1.5.8** 
     244    * Modified html tags filtering for 'quote'. Now all html tags allowed for blog posts can be used in the 'quote' field. 
     245    * Fixed quotes count display in admin so that plural shows as 'quotes' and not as 'quote'. 
     246    * Fixed Ajax refresh bug. 
     247 
    242248* **2012-12-08: Version 1.5.7** 
    243249    * Localization in Macedonian language added, Persian language updated. 
     
    431437== Upgrade Notice == 
    432438 
     439= 1.5.8 = 
     440Bug fix. Upgrade recommended. 
     441 
    433442= 1.5.7 = 
    434443Minor udate. Localization in Macedonian language added, Persian updated. Improvements to code. 
Note: See TracChangeset for help on using the changeset viewer.