Changeset 944421
- Timestamp:
- 07/07/2014 03:43:48 PM (12 years ago)
- Location:
- mg-quotes/trunk
- Files:
-
- 3 edited
-
includes/query.php (modified) (2 diffs)
-
plugin.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mg-quotes/trunk/includes/query.php
r909686 r944421 108 108 public static function quote_author_name($post_id) { 109 109 $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; 114 116 } 115 117 … … 133 135 134 136 public static function quote_titles() { 135 $titles = array();136 137 137 $query = new WP_Query(array( 138 138 'post_type' => 'mg_qt_quote', -
mg-quotes/trunk/plugin.php
r937884 r944421 4 4 Plugin URI: http://mgiulio.info 5 5 Description: Manage and publish your favorite quotes with WordPress 6 Version: 1.1 6 Version: 1.1.1 7 7 Author: Giulio 'mgiulio' Mainardi 8 8 Author URI: http://mgiulio.info -
mg-quotes/trunk/readme.txt
r937860 r944421 177 177 * Feature: Fine grained access control in admin 178 178 * 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.