Skip to content

Commit

Permalink
Widget Image: Fix - Fix has_caption to the correct option. (Fix ele…
Browse files Browse the repository at this point in the history
  • Loading branch information
matipojo committed Nov 12, 2018
1 parent 0d962bc commit 5fcf5f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/widgets/image.php
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ protected function _register_controls() {
* @return boolean
*/
private function has_caption( $settings ) {
return ( ! empty( $settings['caption_source'] ) && 'off' !== $settings['caption_source'] );
return ( ! empty( $settings['caption_source'] ) && 'none' !== $settings['caption_source'] );
}

/**
Expand Down

0 comments on commit 5fcf5f1

Please sign in to comment.