Version Description
- Bug fixes
Download this release
Release Info
Developer | WPAllImport |
Plugin | Import Settings into WordPress SEO by Yoast |
Version | 1.0.5 |
Comparing to | |
See all releases |
Code changes from version 1.0.4 to 1.0.5
- readme.txt +3 -3
- yoast-addon.php +24 -11
readme.txt
CHANGED
@@ -5,7 +5,7 @@ License: GPLv2 or later
|
|
5 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
6 |
Requires at least: 4.1.0
|
7 |
Tested up to: 4.3.1
|
8 |
-
Stable tag: 1.0.
|
9 |
|
10 |
Easily import SEO settings from any XML or CSV file to Yoast WordPress SEO with the Yoast WordPress SEO Add-On for WP All Import.
|
11 |
|
@@ -66,8 +66,8 @@ The Yoast WordPress SEO Add-On will appear in the Step 3 of WP All Import.
|
|
66 |
|
67 |
== Changelog ==
|
68 |
|
69 |
-
= 1.0.
|
70 |
-
*
|
71 |
|
72 |
= 1.0.3 =
|
73 |
* Add support for Yoast SEO Premium
|
5 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
6 |
Requires at least: 4.1.0
|
7 |
Tested up to: 4.3.1
|
8 |
+
Stable tag: 1.0.5
|
9 |
|
10 |
Easily import SEO settings from any XML or CSV file to Yoast WordPress SEO with the Yoast WordPress SEO Add-On for WP All Import.
|
11 |
|
66 |
|
67 |
== Changelog ==
|
68 |
|
69 |
+
= 1.0.5 =
|
70 |
+
* Bug fixes
|
71 |
|
72 |
= 1.0.3 =
|
73 |
* Add support for Yoast SEO Premium
|
yoast-addon.php
CHANGED
@@ -4,12 +4,14 @@
|
|
4 |
Plugin Name: WP All Import - Yoast WordPress SEO Add-On
|
5 |
Plugin URI: http://www.wpallimport.com/
|
6 |
Description: Import data into Yoast WordPress SEO with WP All Import.
|
7 |
-
Version: 1.0.
|
8 |
Author: Soflyy
|
9 |
*/
|
10 |
|
11 |
include "rapid-addon.php";
|
12 |
|
|
|
|
|
13 |
$yoast_addon = new RapidAddon( 'Yoast WordPress SEO Add-On', 'yoast_addon' );
|
14 |
|
15 |
$yoast_addon->add_field( '_yoast_wpseo_focuskw', 'Focus Keyword', 'text', null, 'Pick the main keyword or keyphrase that this post/page is about.' );
|
@@ -99,16 +101,22 @@ $yoast_addon->add_options(
|
|
99 |
|
100 |
$yoast_addon->set_import_function( 'yoast_seo_addon_import' );
|
101 |
|
102 |
-
|
103 |
-
'The Yoast WordPress SEO Add-On requires WP All Import <a href="http://www.wpallimport.com/order-now/?utm_source=free-plugin&utm_medium=dot-org&utm_campaign=yoast" target="_blank">Pro</a> or <a href="http://wordpress.org/plugins/wp-all-import" target="_blank">Free</a>, and the <a href="https://yoast.com/wordpress/plugins/seo/">Yoast WordPress SEO</a> plugin.',
|
104 |
-
array(
|
105 |
-
"plugins" => array( "wordpress-seo/wp-seo.php" )
|
106 |
-
) );
|
107 |
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
|
113 |
function yoast_seo_addon_import( $post_id, $data, $import_options ) {
|
114 |
|
@@ -165,5 +173,10 @@ function yoast_seo_addon_import( $post_id, $data, $import_options ) {
|
|
165 |
}
|
166 |
}
|
167 |
}
|
168 |
-
|
|
|
|
|
|
|
|
|
|
|
169 |
}
|
4 |
Plugin Name: WP All Import - Yoast WordPress SEO Add-On
|
5 |
Plugin URI: http://www.wpallimport.com/
|
6 |
Description: Import data into Yoast WordPress SEO with WP All Import.
|
7 |
+
Version: 1.0.5
|
8 |
Author: Soflyy
|
9 |
*/
|
10 |
|
11 |
include "rapid-addon.php";
|
12 |
|
13 |
+
include_once(ABSPATH.'wp-admin/includes/plugin.php');
|
14 |
+
|
15 |
$yoast_addon = new RapidAddon( 'Yoast WordPress SEO Add-On', 'yoast_addon' );
|
16 |
|
17 |
$yoast_addon->add_field( '_yoast_wpseo_focuskw', 'Focus Keyword', 'text', null, 'Pick the main keyword or keyphrase that this post/page is about.' );
|
101 |
|
102 |
$yoast_addon->set_import_function( 'yoast_seo_addon_import' );
|
103 |
|
104 |
+
if (function_exists('is_plugin_active')) {
|
|
|
|
|
|
|
|
|
105 |
|
106 |
+
if ( !is_plugin_active( "wordpress-seo/wp-seo.php" ) && !is_plugin_active( "wordpress-seo-premium/wp-seo-premium.php" ) ) {
|
107 |
+
|
108 |
+
$yoast_addon->admin_notice(
|
109 |
+
|
110 |
+
'The Yoast WordPress SEO Add-On requires WP All Import <a href="http://www.wpallimport.com/order-now/?utm_source=free-plugin&utm_medium=dot-org&utm_campaign=yoast" target="_blank">Pro</a> or <a href="http://wordpress.org/plugins/wp-all-import" target="_blank">Free</a>, and the <a href="https://yoast.com/wordpress/plugins/seo/">Yoast WordPress SEO</a> plugin.'
|
111 |
+
);
|
112 |
+
}
|
113 |
+
|
114 |
+
if ( is_plugin_active( "wordpress-seo/wp-seo.php" ) || is_plugin_active( "wordpress-seo-premium/wp-seo-premium.php" ) ) {
|
115 |
+
|
116 |
+
$yoast_addon->run();
|
117 |
+
|
118 |
+
}
|
119 |
+
}
|
120 |
|
121 |
function yoast_seo_addon_import( $post_id, $data, $import_options ) {
|
122 |
|
173 |
}
|
174 |
}
|
175 |
}
|
176 |
+
// calculate _yoast_wpseo_linkdex
|
177 |
+
if (class_exists('WPSEO_Metabox'))
|
178 |
+
{
|
179 |
+
$seo = new WPSEO_Metabox();
|
180 |
+
$seo->calculate_results( get_post($post_id) );
|
181 |
+
}
|
182 |
}
|