Plugin Directory

Changeset 2021135


Ignore:
Timestamp:
01/29/2019 11:51:07 AM (7 years ago)
Author:
amazonlinkbuilder
Message:

fixed warn msg

Location:
amazon-associates-link-builder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • amazon-associates-link-builder/tags/1.9.0/includes/gb_block_manager.php

    r2021026 r2021135  
    111111    private function get_shortcode_value_from_attributes($attributes)
    112112    {
    113         return shortcode_parse_atts(trim(trim($attributes[GB_Block_Constants::SHORTCODE_ATTR], $this::OPENING_SQUARE_BRACKET), $this::CLOSING_SQUARE_BRACKET));
     113        return isset($attributes[GB_Block_Constants::SHORTCODE_ATTR]) ? shortcode_parse_atts(trim(trim($attributes[GB_Block_Constants::SHORTCODE_ATTR], $this::OPENING_SQUARE_BRACKET), $this::CLOSING_SQUARE_BRACKET)) : $attributes;
    114114    }
    115115}
  • amazon-associates-link-builder/trunk/includes/gb_block_manager.php

    r2021026 r2021135  
    111111    private function get_shortcode_value_from_attributes($attributes)
    112112    {
    113         return shortcode_parse_atts(trim(trim($attributes[GB_Block_Constants::SHORTCODE_ATTR], $this::OPENING_SQUARE_BRACKET), $this::CLOSING_SQUARE_BRACKET));
     113        return isset($attributes[GB_Block_Constants::SHORTCODE_ATTR]) ? shortcode_parse_atts(trim(trim($attributes[GB_Block_Constants::SHORTCODE_ATTR], $this::OPENING_SQUARE_BRACKET), $this::CLOSING_SQUARE_BRACKET)) : $attributes;
    114114    }
    115115}
Note: See TracChangeset for help on using the changeset viewer.