Plugin Directory

Changeset 944421


Ignore:
Timestamp:
07/07/2014 03:43:48 PM (12 years ago)
Author:
giuliom
Message:

v 1.1.1

Location:
mg-quotes/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • mg-quotes/trunk/includes/query.php

    r909686 r944421  
    108108    public static function quote_author_name($post_id) {
    109109        $author_terms = get_the_terms($post_id, 'mg_qt_author');
    110         return empty($author_terms) ?
    111             '' :
    112             array_values($author_terms)[0]->name
    113         ;
     110       
     111        if (empty($author_terms))
     112            return '';
     113           
     114        $author = array_shift($author_terms);
     115        return $author->name;
    114116    }
    115117   
     
    133135   
    134136    public static function quote_titles() {
    135         $titles = array();
    136        
    137137        $query = new WP_Query(array(
    138138            'post_type' => 'mg_qt_quote',
  • mg-quotes/trunk/plugin.php

    r937884 r944421  
    44Plugin URI: http://mgiulio.info
    55Description: Manage and publish your favorite quotes with WordPress
    6 Version: 1.1
     6Version: 1.1.1
    77Author: Giulio 'mgiulio' Mainardi
    88Author URI: http://mgiulio.info
  • mg-quotes/trunk/readme.txt

    r937860 r944421  
    177177* Feature: Fine grained access control in admin
    178178* Feature: Support of quote post author(the WP user that entered the quote)
     179
     180= 1.1.1 =
     181* Bug fix: Fix syntax error for older PHP versions
Note: See TracChangeset for help on using the changeset viewer.