Import Settings into WordPress SEO by Yoast - Version 1.1.0

Version Description

  • Bug fixes related to cron imports
Download this release

Release Info

Developer WPAllImport
Plugin Icon 128x128 Import Settings into WordPress SEO by Yoast
Version 1.1.0
Comparing to
See all releases

Code changes from version 1.0.5 to 1.1.0

Files changed (2) hide show
  1. readme.txt +5 -2
  2. yoast-addon.php +13 -9
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.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,8 +66,11 @@ The Yoast WordPress SEO Add-On will appear in the Step 3 of WP All Import.
66
 
67
  == Changelog ==
68
 
 
 
 
69
  = 1.0.5 =
70
- * Bug fixes
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.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
 
67
  == Changelog ==
68
 
69
+ = 1.1.0 =
70
+ * Bug fixes related to cron imports
71
+
72
  = 1.0.5 =
73
+ * Bug fixes related to Yoast SEO Premium
74
 
75
  = 1.0.3 =
76
  * Add support for Yoast SEO Premium
yoast-addon.php CHANGED
@@ -4,7 +4,7 @@
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
 
@@ -97,8 +97,6 @@ $yoast_addon->add_options(
97
  )
98
  );
99
 
100
- // add twitter settings
101
-
102
  $yoast_addon->set_import_function( 'yoast_seo_addon_import' );
103
 
104
  if (function_exists('is_plugin_active')) {
@@ -106,8 +104,10 @@ if (function_exists('is_plugin_active')) {
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
 
@@ -173,10 +173,14 @@ function yoast_seo_addon_import( $post_id, $data, $import_options ) {
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
  }
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.1.0
8
  Author: Soflyy
9
  */
10
 
97
  )
98
  );
99
 
 
 
100
  $yoast_addon->set_import_function( 'yoast_seo_addon_import' );
101
 
102
  if (function_exists('is_plugin_active')) {
104
  if ( !is_plugin_active( "wordpress-seo/wp-seo.php" ) && !is_plugin_active( "wordpress-seo-premium/wp-seo-premium.php" ) ) {
105
 
106
  $yoast_addon->admin_notice(
107
+ '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.',
108
+ array(
109
+ 'plugins' => array('wordpress-seo/wp-seo.php')
110
+ )
111
  );
112
  }
113
 
173
  }
174
  }
175
  }
176
+
177
  // calculate _yoast_wpseo_linkdex
178
+ if ( class_exists( 'WPSEO_Metabox' ) ) {
179
+
180
+ wpseo_admin_init();
181
+
182
+ $seo = new WPSEO_Metabox();
183
+
184
+ $seo->calculate_results( get_post($post_id) );
185
  }
186
  }