Plugin Directory

Changeset 1900116


Ignore:
Timestamp:
06/27/2018 04:44:42 PM (8 years ago)
Author:
brettshumaker
Message:

v2.1.1 - quick fix for post-thumbnail support issues

Location:
simple-staff-list
Files:
1 added
2 deleted
4 edited
62 copied

Legend:

Unmodified
Added
Removed
  • simple-staff-list/tags/2.1.1/README.txt

    r1895343 r1900116  
    44Requires at least: 3.0
    55Tested up to: 4.9.6
    6 Stable tag: 2.1.0
     6Stable tag: 2.1.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4747== Changelog ==
    4848
     49= 2.1.1 =
     50* FIXED: post-thumbnail support for staff-member custom post type.
    4951
    5052= 2.1.0 =
  • simple-staff-list/tags/2.1.1/admin/class-simple-staff-list-admin.php

    r1895343 r1900116  
    291291    public function add_featured_image_support() {
    292292
    293         $supported_types = get_theme_support( 'post-thumbnails' );
    294 
    295         if ( false === $supported_types ) {
    296 
    297             add_theme_support( 'post-thumbnails', 'staff-member' );
    298 
    299         } elseif ( is_array( $supported_types ) ) {
    300 
    301             $supported_types[0][] = 'staff-member';
    302             add_theme_support( 'post-thumbnails', $supported_types[0] );
    303 
    304         }
     293        add_theme_support( 'post-thumbnails', array( 'staff-member' ) );
    305294
    306295    }
  • simple-staff-list/tags/2.1.1/class-simple-staff-list-admin.php

    r1895343 r1900116  
    291291    public function add_featured_image_support() {
    292292
    293         $supported_types = get_theme_support( 'post-thumbnails' );
    294 
    295         if ( false === $supported_types ) {
    296 
    297             add_theme_support( 'post-thumbnails', 'staff-member' );
    298 
    299         } elseif ( is_array( $supported_types ) ) {
    300 
    301             $supported_types[0][] = 'staff-member';
    302             add_theme_support( 'post-thumbnails', $supported_types[0] );
    303 
    304         }
     293        add_theme_support( 'post-thumbnails', array( 'staff-member' ) );
    305294
    306295    }
  • simple-staff-list/tags/2.1.1/class-simple-staff-list.php

    r1895343 r1900116  
    6969
    7070        $this->plugin_name = 'simple-staff-list';
    71         $this->version     = '2.0.1';
     71        $this->version     = '2.1.1';
    7272
    7373        $this->load_dependencies();
  • simple-staff-list/tags/2.1.1/includes/class-simple-staff-list.php

    r1895343 r1900116  
    6969
    7070        $this->plugin_name = 'simple-staff-list';
    71         $this->version     = '2.0.1';
     71        $this->version     = '2.1.1';
    7272
    7373        $this->load_dependencies();
  • simple-staff-list/tags/2.1.1/simple-staff-list.php

    r1895343 r1900116  
    1616 * Plugin URI:        https://wordpress.org/plugins/simple-staff-list/
    1717 * Description:       A simple plugin to build and display a staff listing for your website.
    18  * Version:           2.1.0
     18 * Version:           2.1.1
    1919 * Author:            Brett Shumaker
    2020 * Author URI:        http://www.brettshumaker.com
  • simple-staff-list/trunk/README.txt

    r1895343 r1900116  
    44Requires at least: 3.0
    55Tested up to: 4.9.6
    6 Stable tag: 2.1.0
     6Stable tag: 2.1.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4747== Changelog ==
    4848
     49= 2.1.1 =
     50* FIXED: post-thumbnail support for staff-member custom post type.
    4951
    5052= 2.1.0 =
  • simple-staff-list/trunk/admin/class-simple-staff-list-admin.php

    r1895343 r1900116  
    291291    public function add_featured_image_support() {
    292292
    293         $supported_types = get_theme_support( 'post-thumbnails' );
    294 
    295         if ( false === $supported_types ) {
    296 
    297             add_theme_support( 'post-thumbnails', 'staff-member' );
    298 
    299         } elseif ( is_array( $supported_types ) ) {
    300 
    301             $supported_types[0][] = 'staff-member';
    302             add_theme_support( 'post-thumbnails', $supported_types[0] );
    303 
    304         }
     293        add_theme_support( 'post-thumbnails', array( 'staff-member' ) );
    305294
    306295    }
  • simple-staff-list/trunk/includes/class-simple-staff-list.php

    r1895343 r1900116  
    6969
    7070        $this->plugin_name = 'simple-staff-list';
    71         $this->version     = '2.0.1';
     71        $this->version     = '2.1.1';
    7272
    7373        $this->load_dependencies();
  • simple-staff-list/trunk/simple-staff-list.php

    r1895343 r1900116  
    1616 * Plugin URI:        https://wordpress.org/plugins/simple-staff-list/
    1717 * Description:       A simple plugin to build and display a staff listing for your website.
    18  * Version:           2.1.0
     18 * Version:           2.1.1
    1919 * Author:            Brett Shumaker
    2020 * Author URI:        http://www.brettshumaker.com
Note: See TracChangeset for help on using the changeset viewer.