Changeset 1257339
- Timestamp:
- 10/01/2015 11:13:18 AM (11 years ago)
- Location:
- wp-sitemanager/trunk
- Files:
-
- 3 edited
-
modules/meta-manager.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
wp-sitemanager.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-sitemanager/trunk/modules/meta-manager.php
r1244864 r1257339 212 212 } elseif ( is_tax() || is_category() || is_tag() ) { 213 213 $option = $this->get_term_meta(); 214 } elseif ( is_author() ) { 215 $author_obj = get_queried_object(); 216 $option['keywords'] = $author_obj->display_name; 217 $option['description'] = ! empty( $author_obj->description ) ? $author_obj->description : false; 218 } elseif ( is_post_type_archive() ) { 219 $posttype_obj = get_queried_object(); 220 $option['keywords'] = $posttype_obj->labels->name; 221 $option['description'] = ! empty( $posttype_obj->description ) ? $posttype_obj->description : false; 214 222 } 215 223 … … 225 233 $this->meta_description_chars = apply_filters( 'wp_sitemanager_meta_description_chars', $this->meta_description_chars ); 226 234 $meta['description'] = mb_substr( $meta['description'], 0, $this->meta_description_chars, 'UTF-8' ); 235 $meta = apply_filters( 'wp_sitemanager_meta', $meta ); 227 236 return $meta; 228 237 } -
wp-sitemanager/trunk/readme.txt
r1244864 r1257339 4 4 Requires at least: 3.5 5 5 Tested up to: 4.3 6 Stable tag: 1.1. 26 Stable tag: 1.1.3 7 7 8 8 WP SiteManager is an integrated package comprising of necessary functions for using WordPress as a CMS. … … 34 34 35 35 == Changelog == 36 = 1.1.3 = 37 * add : new filter hooks (wp_sitemanager_meta) 38 * add : add author display_name and post_type lavel added to meta keywords. 39 * add : add author and post_type description added to meta description. 36 40 = 1.1.2 = 37 41 * add : new filter hooks (wp_sitemanager_after_keywords, wp_sitemanager_after_description, wp_sitemanager_after_ogp, wp_sitemanager_after_twitcards) -
wp-sitemanager/trunk/wp-sitemanager.php
r1244864 r1257339 5 5 Description: WP SiteManager is an integrated package comprising of necessary functions for using WordPress as a CMS. 6 6 Author: Prime Strategy Co.,LTD. 7 Version: 1.1. 27 Version: 1.1.3 8 8 Author URI: http://www.prime-strategy.co.jp/ 9 9 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.