WordPress.org

Plugin Directory

Changeset 434213


Ignore:
Timestamp:
09/06/11 18:03:20 (3 years ago)
Author:
leogermani
Message:

fixes possible vulnerability
add widget

Location:
post-highlights/trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • post-highlights/trunk/ajax/ph_settings.php

    r204313 r434213  
    2727            <?php  
    2828             
    29             $query = "SELECT guid, ID FROM $wpdb->posts WHERE post_type='attachment' AND post_parent='$id'"; 
     29            $query = $wpdb->prepare("SELECT guid, ID FROM $wpdb->posts WHERE post_type='attachment' AND post_parent = %d", $id); 
    3030            $attachments = $wpdb->get_results($query); 
    3131 
  • post-highlights/trunk/js/front-end.js

    r176199 r434213  
    3131            var countNav = 1; 
    3232            jQuery('#posthighlights_container .ph_post').each(function() { 
    33                 var title = jQuery('#posthighlights_container .ph_post .ph_content .ph_title').attr('alt'); 
     33                var title = jQuery(this).find('.ph_title').attr('alt'); 
     34                if (!title) title = jQuery(this).find('.ph_title').html(); 
    3435                jQuery('#posthighlights_container #ph-numeric-nav ul').append('<li id="ph-numeric-nav-' + countNav + '"><a title="' + title + '">' + countNav + '</a></li>'); 
    3536                countNav++; 
  • post-highlights/trunk/readme.txt

    r360717 r434213  
    55Tags: post, highlight, home 
    66Requires at least: 2.6 
    7 Tested up to: 3.1 
    8 Stable tag: 2.2 
     7Tested up to: 3.1.2 
     8Stable tag: 2.3 
    99 
    1010Add a nice looking animated highlights box to you theme, and lets you highlight your posts 
     
    44441. Using a Widget 
    4545 
    46 Simply drag and drop the post highlights widget to a sidebar (note that only one post highlights widget instance per sidebar is allowed) 
     46Simply drag and drop the post highlights widget to a sidebar (note that only one post highlights widget instance per sidebar is allowed). 
     47 
     48If you are using the widget, go to Post Highlights settings and check the option saying you want post highlights to automatically generate thumbnails for you 
    4749 
    48502. Adding to your theme code 
     
    5759 
    5860== Changelog == 
     61 
     622.3 - Sep 06 2011 
     63* Fixes possible vulnerability 
     64* Adds widget 
    5965 
    60662.2 - Jul 08 2010 
Note: See TracChangeset for help on using the changeset viewer.