WordPress.org

Plugin Directory

Changeset 696059


Ignore:
Timestamp:
04/11/13 16:05:48 (12 months ago)
Author:
joedolson
Message:

Bug fix in posts filter.

Location:
my-content-glossary/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • my-content-glossary/trunk/my-content-glossary.php

    r684625 r696059  
    22/* 
    33Plugin Name: My Content Management - Glossary Filter 
    4 Version: 1.3.3 
     4Version: 1.3.4 
    55Plugin URI: http://www.joedolson.com/articles/my-content-management/ 
    66Description: Adds custom glossary features: filters content for links to terms, etc. Companion plug-in to My Content Management. 
     
    8585function mcm_filter_glossary_list( $return, $post, $last_term, $elem, $type, $first, $last_post, $custom ) { 
    8686    if ( $type != 'mcm_glossary' && $type != 'glossary' ) return $return; 
    87     $this_letter = ( isset( $post->ID ) ? strtolower( substr( get_the_title( $post->ID ), 0, 1 ) ) : false ); 
     87    $this_letter = ( isset( $post['id'] ) ? strtolower( substr( get_the_title( $post['id'] ), 0, 1 ) ) : false ); 
    8888    $last_letter = strtolower( substr( $last_term, 0, 1 ) ); 
    89      
    9089    $backtotop = (!$first)?"<a href='#alpha' class='return'>".__('Back to Top','my-content-management')."</a>":''; 
    9190    if ( $this_letter != $last_letter ) { 
  • my-content-glossary/trunk/readme.txt

    r684603 r696059  
    3939== Changelog == 
    4040 
     41= 1.3.4 = 
     42 
     43* Bug fix: post used to be an object in filter, is now an array; updated code. 
     44 
    4145= 1.3.3 = 
    4246 
Note: See TracChangeset for help on using the changeset viewer.