Plugin Directory

Changeset 793455


Ignore:
Timestamp:
10/25/2013 08:57:49 AM (12 years ago)
Author:
vicchi
Message:

Committing v3.3.2 changes

Location:
wp-biographia/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • wp-biographia/trunk/readme.txt

    r640616 r793455  
    33Donate link: http://www.vicchi.org/codeage/donate/
    44Tags: 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.4
    6 Tested up to: 3.5.0
    7 Stable tag: 3.3.1
     5Requires at least: 3.7
     6Tested up to: 3.7.0
     7Stable tag: 3.3.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    221221== Changelog ==
    222222
    223 The current version is 3.3.1 (2012.12.18)
     223The 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
     228the post for a category.
    224229
    225230= 3.3.1 =
     
    387392
    388393== Upgrade Notice ==
     394= 3.3.2 =
     395This version now supports changes in category behaviour introduced in WordPress v3.7 and which meant every post was considered to be excluded by category.
    389396
    390397= 3.3.1 =
  • wp-biographia/trunk/wp-biographia.php

    r640616 r793455  
    44Plugin URI: http://www.vicchi.org/codeage/wp-biographia/
    55Description: 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.1
     6Version: 3.3.2
    77Author: Gary Gale & Travis Smith
    88Author URI: http://www.garygale.com/
     
    106106   
    107107        const OPTIONS = 'wp_biographia_settings';
    108         const VERSION = '330';
    109         const DISPLAY_VERSION = 'v3.3.0';
     108        const VERSION = '332';
     109        const DISPLAY_VERSION = 'v3.3.2';
    110110        const PRIORITY = 10;
    111111        const META_NONCE = 'wp-biographia-meta-nonce';
     
    986986
    987987            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                    }
    9961012                }
    9971013            }
     
    24692485                        $this->admin_upgrade_option ($settings, 'admin_lock_to_loop', '');
    24702486                        $this->admin_upgrade_option ($settings, 'style_border_color', '#000000');
     2487
     2488                    case '332':
    24712489                        $settings['wp_biographia_version'] = self::VERSION;
    24722490                        $upgrade_settings = true;
Note: See TracChangeset for help on using the changeset viewer.