Import Settings into WordPress SEO by Yoast - Version 1.1.3

Version Description

  • Bug fix related to new posts in existing import.
Download this release

Release Info

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

Code changes from version 1.1.2 to 1.1.3

Files changed (3) hide show
  1. README.md +16 -18
  2. readme.txt +4 -1
  3. yoast-addon.php +3 -3
README.md CHANGED
@@ -2,21 +2,19 @@
2
 
3
  ##Custom fields used by plugin:
4
 
5
- | Name | Custom Field | Values |
6
- | ----------------------------------------| --------------------------------------------| ----------------------------------------------------------------------------- |
7
- | Focus Keyword | _yoast_wpseo_focuskw | Text string |
8
- | Focus Keyword Text Input | _yoast_wpseo_focuskw_text_input | Text string |
9
- | SEO Title | _yoast_wpseo_title | Text string |
10
- | Meta Description | _yoast_wpseo_metadesc | Text string |
11
- | Meta Robots Index | _yoast_wpseo_meta-robots-noindex | Blank for default, 1 for noindex, or 2 for index |
12
- | Meta Robots Follow | _yoast_wpseo_meta-robots-nofollow | Blank for follow, 1 for nofollow |
13
- | Meta Robots Advanced | _yoast_wpseo_meta-robots-adv | Blank for default, none, noodp, noydir, noimageindex, noarchive, or nosnippet |
14
- | Include in Sitemap | _yoast_wpseo_sitemap-include | Blank for auto, always, or never |
15
- | Sitemap Priority | _yoast_wpseo_sitemap-prio | Blank for auto, 1 to .1 |
16
- | Canonical URL | _yoast_wpseo_canonical | Canonical URL of post |
17
- | 301 Redirect | _yoast_wpseo_redirect | URL to redirect post to |
18
- | Facebook Title | _yoast_wpseo_opengraph-title | Text string |
19
- | Facebook Description | _yoast_wpseo_opengraph | Text string |
20
- | Facebook Image | _yoast_wpseo_opengraph-image | URL to image |
21
- | Primary Category | _yoast_wpseo_primary_category | Primary Category ID |
22
- | Primary Category for Products | _yoast_wpseo_primary_product_cat | Primary WooCommerce Product Category ID |
2
 
3
  ##Custom fields used by plugin:
4
 
5
+ | Name | Custom Field | Values |
6
+ | -------------------- | ------------------------------------ | ----------------------------------------------------------------------------- |
7
+ | Focus Keyword | _yoast_wpseo_focuskw | Text string |
8
+ | SEO Title | _yoast_wpseo_title | Text string |
9
+ | Meta Description | _yoast_wpseo_metadesc | Text string |
10
+ | Meta Robots Index | _yoast_wpseo_meta-robots-noindex | Blank for default, 1 for noindex, or 2 for index |
11
+ | Meta Robots Follow | _yoast_wpseo_meta-robots-nofollow | Blank for follow, 1 for nofollow |
12
+ | Meta Robots Advanced | _yoast_wpseo_meta-robots-adv | Blank for default, none, noodp, noydir, noimageindex, noarchive, or nosnippet |
13
+ | Include in Sitemap | _yoast_wpseo_sitemap-include | Blank for auto, always, or never |
14
+ | Sitemap Priority | _yoast_wpseo_sitemap-prio | Blank for auto, 1 to .1 |
15
+ | Canonical URL | _yoast_wpseo_canonical | Canonical URL of post |
16
+ | 301 Redirect | _yoast_wpseo_redirect | URL to redirect post to |
17
+ | Facebook Title | _yoast_wpseo_opengraph-title | Text string |
18
+ | Facebook Description | _yoast_wpseo_opengraph | Text string |
19
+ | Facebook Image | _yoast_wpseo_opengraph-image | URL to image |
20
+
 
 
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.5.2
8
- Stable tag: 1.1.2
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,6 +66,9 @@ The Yoast WordPress SEO Add-On will appear in the Step 3 of WP All Import.
66
 
67
  == Changelog ==
68
 
 
 
 
69
  = 1.1.2 =
70
  * Added focus keyword text input field
71
 
5
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
6
  Requires at least: 4.1.0
7
  Tested up to: 4.5.2
8
+ Stable tag: 1.1.3
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.3 =
70
+ * Bug fix related to new posts in existing import.
71
+
72
  = 1.1.2 =
73
  * Added focus keyword text input field
74
 
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.1.2
8
  Author: Soflyy
9
  */
10
 
@@ -121,7 +121,7 @@ if (function_exists('is_plugin_active')) {
121
  }
122
  }
123
 
124
- function yoast_seo_addon_import( $post_id, $data, $import_options ) {
125
 
126
  global $yoast_addon;
127
 
@@ -170,7 +170,7 @@ function yoast_seo_addon_import( $post_id, $data, $import_options ) {
170
 
171
  } else {
172
 
173
- if ( $yoast_addon->can_update_meta( $field, $import_options ) ) {
174
 
175
  if ( in_array( $field, $image_fields ) ) {
176
 
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.3
8
  Author: Soflyy
9
  */
10
 
121
  }
122
  }
123
 
124
+ function yoast_seo_addon_import( $post_id, $data, $import_options, $article ) {
125
 
126
  global $yoast_addon;
127
 
170
 
171
  } else {
172
 
173
+ if ( empty($article['ID']) or $yoast_addon->can_update_meta( $field, $import_options ) ) {
174
 
175
  if ( in_array( $field, $image_fields ) ) {
176