Plugin Directory

Changeset 1545315


Ignore:
Timestamp:
12/04/2016 11:06:19 AM (9 years ago)
Author:
pco_58
Message:

Fix warning in 1.4.0

Location:
wc-return-product/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wc-return-product/trunk/readme.txt

    r1545049 r1545315  
    44Requires at least: 3.8.1
    55Tested up to: 4.4.2
    6 Stable tag: 1.4.0
     6Stable tag: 1.4.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4040
    4141== Changelog ==
     42
     43= 1.4.1 =
     44* Fix error warning notices
    4245
    4346= 1.4.0 =
  • wc-return-product/trunk/wc_return_product.php

    r1545049 r1545315  
    88 * Plugin URL: http://castillogomez.com/
    99 * Description: Adds a form to order for return product
    10  * Version: 1.4.0
     10 * Version: 1.4.1
    1111 * Author: Paco Castillo
    1212 * Author URI: http://castillogomez.com/
     
    253253      $statusses = wc_get_order_statuses();
    254254      $statusses_sel = get_option( 'wc_return_statuses' );
     255      $statusses_sel = is_array($statusses_sel) ? $statusses_sel : array();
    255256      foreach ($statusses as $key => $value) {
    256257        echo '      <option value="' . $key . '" ' . ((in_array($key, $statusses_sel)) ? 'selected="selected"' : '') . '>' . $value . '</option>';
Note: See TracChangeset for help on using the changeset viewer.