WordPress.org

Plugin Directory

Changeset 1509679


Ignore:
Timestamp:
10/07/16 01:53:35 (10 months ago)
Author:
jchristopher
Message:

CFS Options Screens 1.2.7

Location:
cfs-options-screens/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cfs-options-screens/trunk/cfs-options-screens.php

    r1508461 r1509679  
    44Plugin URI: http://wordpress.org/plugins/cfs-options-screens/ 
    55Description: Register options screens powered by Custom Field Suite 
    6 Version: 1.2.6 
     6Version: 1.2.7 
    77Author: Jonathan Christopher 
    88Author URI: http://mondaybynoon.com/ 
     
    393393     * @param $options_screen 
    394394     * 
    395      * @return 
     395     * @return mixed 
    396396     */ 
    397397    function maybe_has_overrides( $matches, /** @noinspection PhpUnusedParameterInspection */ $params, /** @noinspection PhpUnusedParameterInspection */ $rule_types, $options_screen ) { 
     
    513513                    ! $include_overrides // don't include overrides 
    514514                    && is_array( $field_group ) // 1.2 or later 
    515                     && array_key_exists( 'has_overrides', $field_group ) 
    516                     && empty( $field_group['has_overrides'] ) // does not have overrides 
     515                    && array_key_exists( 'has_overrides', $field_group ) && empty( $field_group['has_overrides'] ) // does not have overrides 
    517516                ) ) { 
    518517                // include it in the list 
    519518                $field_group_ids[] = $this->get_field_group_id( $field_group ); 
     519            } elseif ( is_string( $field_group ) ) { 
     520                $field_group = $this->get_field_group_id_from_title( $field_group ); 
     521                if ( ! empty( $field_group ) ) { 
     522                    $field_group_ids[] = absint( $field_group ); 
     523                } 
    520524            } 
    521525        } 
  • cfs-options-screens/trunk/readme.txt

    r1508461 r1509679  
    55Requires at least: 3.9 
    66Tested up to: 4.6.1 
    7 Stable tag: 1.2.6 
     7Stable tag: 1.2.7 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    102102== Changelog == 
    103103 
    104 = 1.2.6 = 
     104= 1.2.7 = 
    105105* Add support for using CFS Field Group title instead of ID 
    106106 
Note: See TracChangeset for help on using the changeset viewer.