| @@ -35,15 +35,14 @@ | ||
| 35 | 35 | // Get shortcodes. |
| 36 | 36 | $shortcodes = convertkit_get_shortcodes(); |
| 37 | 37 | |
| 38 | 38 | // Bail if no shortcodes are available. |
| 39 | - if ( ! is_array( $shortcodes ) || ! count( $shortcodes ) ) { | |
| 39 | + if ( ! count( $shortcodes ) ) { | |
| 40 | 40 | return; |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | // Iterate through shortcodes, registering them as shortcodes. |
| 44 | 44 | foreach ( $shortcodes as $shortcode => $properties ) { |
| 45 | - | |
| 46 | 45 | // Register shortcode. |
| 47 | 46 | add_shortcode( |
| 48 | 47 | 'convertkit_' . $shortcode, |
| 49 | 48 | array( |