Plugin Directory

Changeset 2897783


Ignore:
Timestamp:
04/12/2023 12:11:31 PM (3 years ago)
Author:
smeunus
Message:

fix php warning

Location:
dash-todo/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • dash-todo/trunk/README.txt

    r2897747 r2897783  
    55Requires at least: 5.9
    66Tested up to: 6.2
    7 Stable tag: 1.0.3
     7Stable tag: 1.0.4
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    4545* Add todo item by pressing ENTER
    4646* Render raw title
    47 
    4847= 1.0.3 =
    4948* Performance
    5049* Bug fix
     50= 1.0.4 =
     51* Fix PHP warning
    5152
    5253== Upgrade Notice ==
     
    5859=1.0.2 =
    5960Feature updates
    60 =1.0.2 =
     61=1.0.3 =
    6162Bug fix
     63=1.0.4 =
     64Bug fix
  • dash-todo/trunk/dash-todo.php

    r2897747 r2897783  
    99 * Author:            Sharif Mohammad Eunus
    1010 * Author URI:       https://sharifff.com
    11  * Version:           1.0.3
     11 * Version:           1.0.4
    1212 * Requires at least: 5.9
    1313 * Tested up to:      6.2
     
    2828define('DASH_TODO_PLUGIN_FILE', __FILE__);
    2929define('DASH_TODO_PLUGIN_DIR', __DIR__);
    30 define('DASH_TODO_PLUGIN_VERSION', '1.0.3');
     30define('DASH_TODO_PLUGIN_VERSION', '1.0.4');
    3131
    3232require 'includes/enqueue-scripts-from-asset-file.php';
  • dash-todo/trunk/includes/admin-page.php

    r2897747 r2897783  
    117117add_action('admin_enqueue_scripts', function () {
    118118
    119     $hidden_widgets = get_user_option('metaboxhidden_dashboard') ?? [];
    120     if (in_array('dash_todo_admin_widget', $hidden_widgets)) {
     119    $hidden_widgets = get_user_option('metaboxhidden_dashboard');
     120    if (is_array($hidden_widgets) && in_array('dash_todo_admin_widget', $hidden_widgets)) {
    121121        return;
    122122    }
Note: See TracChangeset for help on using the changeset viewer.