← All changes
|
includes/abilities/import/class-preview-seo-import.php
+4
-2
2.1.0
→
2.8.0
View file →
| @@ -36,9 +36,9 @@ | ||
| 36 | 36 | * Source plugins that can be previewed. |
| 37 | 37 | * |
| 38 | 38 | * @var string[] |
| 39 | 39 | */ |
| 40 | - private const ALLOWED_PLUGINS = [ 'yoast', 'rankmath', 'seopress', 'aioseo' ]; | |
| 40 | + private const ALLOWED_PLUGINS = [ 'yoast', 'rankmath', 'seopress', 'aioseo', 'squirrly' ]; | |
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * Data types exported before previewing, in pipeline order. |
| 44 | 44 | * |
| @@ -145,9 +145,9 @@ | ||
| 145 | 145 | |
| 146 | 146 | if ( ! in_array( $plugin, self::ALLOWED_PLUGINS, true ) ) { |
| 147 | 147 | return new \WP_Error( |
| 148 | 148 | 'thinkrank_invalid_import_plugin', |
| 149 | - __( 'A supported source plugin is required (yoast, rankmath, seopress, aioseo).', 'thinkrank' ), | |
| 149 | + __( 'A supported source plugin is required (yoast, rankmath, seopress, aioseo, squirrly).', 'thinkrank' ), | |
| 150 | 150 | [ 'status' => 400 ] |
| 151 | 151 | ); |
| 152 | 152 | } |
| 153 | 153 | |
| @@ -279,8 +279,10 @@ | ||
| 279 | 279 | case 'seopress': |
| 280 | 280 | return new SEOPress_Exporter(); |
| 281 | 281 | case 'aioseo': |
| 282 | 282 | return new AIOSEO_Exporter(); |
| 283 | + case 'squirrly': | |
| 284 | + return new Squirrly_Exporter(); | |
| 283 | 285 | default: |
| 284 | 286 | return null; |
| 285 | 287 | } |
| 286 | 288 | } |