Changeset 2021135
- Timestamp:
- 01/29/2019 11:51:07 AM (7 years ago)
- Location:
- amazon-associates-link-builder
- Files:
-
- 2 edited
-
tags/1.9.0/includes/gb_block_manager.php (modified) (1 diff)
-
trunk/includes/gb_block_manager.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
amazon-associates-link-builder/tags/1.9.0/includes/gb_block_manager.php
r2021026 r2021135 111 111 private function get_shortcode_value_from_attributes($attributes) 112 112 { 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; 114 114 } 115 115 } -
amazon-associates-link-builder/trunk/includes/gb_block_manager.php
r2021026 r2021135 111 111 private function get_shortcode_value_from_attributes($attributes) 112 112 { 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; 114 114 } 115 115 }
Note: See TracChangeset
for help on using the changeset viewer.