| @@ -35,14 +35,15 @@ | ||
| 35 | 35 | // Get shortcodes. |
| 36 | 36 | $shortcodes = convertkit_get_shortcodes(); |
| 37 | 37 | |
| 38 | 38 | // Bail if no shortcodes are available. |
| 39 | - if ( ! count( $shortcodes ) ) { | |
| 39 | + if ( ! is_array( $shortcodes ) || ! 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 | + | |
| 45 | 46 | // Register shortcode. |
| 46 | 47 | add_shortcode( |
| 47 | 48 | 'convertkit_' . $shortcode, |
| 48 | 49 | array( |