Changeset 793455
- Timestamp:
- 10/25/2013 08:57:49 AM (12 years ago)
- Location:
- wp-biographia/trunk
- Files:
-
- 1 added
- 2 edited
-
help/whatsnew-332.html (added)
-
readme.txt (modified) (3 diffs)
-
wp-biographia.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-biographia/trunk/readme.txt
r640616 r793455 3 3 Donate link: http://www.vicchi.org/codeage/donate/ 4 4 Tags: wp-biographia, wp biographia, biographia, bio, biography, bio box, biography box, twitter, facebook, linkedin, googleplus, google+, delicious, flickr, picasa, vimeo, youtube, reddit, website, about, author, user, about author, user box, author box, contributors, author biography, user biography, avatar, gravatar, guest post, guest author 5 Requires at least: 3. 46 Tested up to: 3. 5.07 Stable tag: 3.3. 15 Requires at least: 3.7 6 Tested up to: 3.7.0 7 Stable tag: 3.3.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 221 221 == Changelog == 222 222 223 The current version is 3.3.1 (2012.12.18) 223 The current version is 3.3.2 (2013.10.25) 224 225 = 3.3.2 = 226 * Released 2013.10.25 227 * Fixed: After upgrading to WordPress 3.7, all posts are considered to be excluded by category due to an apparent change in WP 3.7's handling of categories (exposed via the plugin's use of in_category). The plugin now checks for a non empty set of category exclusions before checking 228 the post for a category. 224 229 225 230 = 3.3.1 = … … 387 392 388 393 == Upgrade Notice == 394 = 3.3.2 = 395 This version now supports changes in category behaviour introduced in WordPress v3.7 and which meant every post was considered to be excluded by category. 389 396 390 397 = 3.3.1 = -
wp-biographia/trunk/wp-biographia.php
r640616 r793455 4 4 Plugin URI: http://www.vicchi.org/codeage/wp-biographia/ 5 5 Description: Add and display a customizable author biography for individual posts, in RSS feeds, on pages, in archives and on each entry on the landing page and much more. 6 Version: 3.3. 16 Version: 3.3.2 7 7 Author: Gary Gale & Travis Smith 8 8 Author URI: http://www.garygale.com/ … … 106 106 107 107 const OPTIONS = 'wp_biographia_settings'; 108 const VERSION = '33 0';109 const DISPLAY_VERSION = 'v3.3. 0';108 const VERSION = '332'; 109 const DISPLAY_VERSION = 'v3.3.2'; 110 110 const PRIORITY = 10; 111 111 const META_NONCE = 'wp-biographia-meta-nonce'; … … 986 986 987 987 if (!is_page ()) { 988 $categories = explode (',', $settings['wp_biographia_category_exclusions']); 989 if (!empty ($categories)) { 990 foreach ($categories as $category) { 991 if (in_category ($category, $post->ID)) { 992 $excluded = true; 993 break; 994 } 995 } // end-foreach (...) 988 // It looks like the behaviour of in_category() has changed in WP 3.7. Prior 989 // to this release a call to in_category() with an empty $category argument 990 // returned false (due to explode returning an array with a single empty 991 // element if wp_biographia_category_exclusions was set to ''), but after 992 // upgrading to WP 3.7, in_category() now returns true in this case, which 993 // effectively means every single post is excluded from displaying the 994 // Biography Box. Not good. So now, check whether this option is empty and 995 // then only check for category exclusions if there's at least one category 996 // configured for exclusion. 997 // 998 // You could argue that this was a bug waiting to happen if you're being 999 // uncharitable. I'd tend to agree with you. 1000 1001 if (isset($settings['wp_biographia_category_exclusions']) && 1002 !empty($settings['wp_biographia_category_exclusions'])) { 1003 $categories = explode (',', $settings['wp_biographia_category_exclusions']); 1004 if (!empty ($categories)) { 1005 foreach ($categories as $category) { 1006 if (in_category ($category, $post->ID)) { 1007 $excluded = true; 1008 break; 1009 } 1010 } // end-foreach (...) 1011 } 996 1012 } 997 1013 } … … 2469 2485 $this->admin_upgrade_option ($settings, 'admin_lock_to_loop', ''); 2470 2486 $this->admin_upgrade_option ($settings, 'style_border_color', '#000000'); 2487 2488 case '332': 2471 2489 $settings['wp_biographia_version'] = self::VERSION; 2472 2490 $upgrade_settings = true;
Note: See TracChangeset
for help on using the changeset viewer.