Plugin Directory

Changeset 2684138


Ignore:
Timestamp:
02/24/2022 04:55:30 AM (4 years ago)
Author:
kanakogi
Message:

1.2.1

Location:
wp-theme-test
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-theme-test/tags/1.2.1/classes/class.core.php

    r2679505 r2684138  
    5151            if (!empty($options['capabilities'])) {
    5252                global $current_user;
    53                 foreach ($options['capabilities'] as $key => $value) {
    54                     if (array_key_exists($value, $current_user->caps)) {
    55                         return true;
     53                if (isset($current_user->caps) && is_array($current_user->caps)) {
     54                    foreach ($options['capabilities'] as $value) {
     55                        if (array_key_exists($value, $current_user->caps)) {
     56                            return true;
     57                        }
    5658                    }
    5759                }
  • wp-theme-test/tags/1.2.1/readme.txt

    r2679507 r2684138  
    55Requires at least: 3.0 or higher
    66Tested up to: 5.9.0
    7 Stable tag: 1.2.0
     7Stable tag: 1.2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • wp-theme-test/tags/1.2.1/wp-theme-test.php

    r2679507 r2684138  
    55Description: The theme can be changed and displayed to only logged in users.
    66Author: Nakashima Masahiro
    7 Version: 1.2.0
     7Version: 1.2.1
    88Author URI: http://www.kigurumi.asia
    99Text Domain: wptt
  • wp-theme-test/trunk/classes/class.core.php

    r2679505 r2684138  
    5151            if (!empty($options['capabilities'])) {
    5252                global $current_user;
    53                 foreach ($options['capabilities'] as $key => $value) {
    54                     if (array_key_exists($value, $current_user->caps)) {
    55                         return true;
     53                if (isset($current_user->caps) && is_array($current_user->caps)) {
     54                    foreach ($options['capabilities'] as $value) {
     55                        if (array_key_exists($value, $current_user->caps)) {
     56                            return true;
     57                        }
    5658                    }
    5759                }
  • wp-theme-test/trunk/readme.txt

    r2679507 r2684138  
    55Requires at least: 3.0 or higher
    66Tested up to: 5.9.0
    7 Stable tag: 1.2.0
     7Stable tag: 1.2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • wp-theme-test/trunk/wp-theme-test.php

    r2679507 r2684138  
    55Description: The theme can be changed and displayed to only logged in users.
    66Author: Nakashima Masahiro
    7 Version: 1.2.0
     7Version: 1.2.1
    88Author URI: http://www.kigurumi.asia
    99Text Domain: wptt
Note: See TracChangeset for help on using the changeset viewer.