ACF Content Analysis for Yoast SEO - Version 1.2.5

Version Description

  • Fix for taxonomies in the latest version of WordPress
Download this release

Release Info

Developer ViktorFroberg
Plugin Icon 128x128 ACF Content Analysis for Yoast SEO
Version 1.2.5
Comparing to
See all releases

Code changes from version 1.2.4 to 1.2.5

Files changed (3) hide show
  1. README.md +2 -2
  2. readme.txt +6 -3
  3. yoast-seo-acf-content-analysis.php +6 -6
README.md CHANGED
@@ -1,4 +1,4 @@
1
- # ACF-Content Analysis for Yoast SEO
2
  This plugin ensures that Yoast SEO analysize all ACF content including FlexiContent and Repeaters
3
 
4
  ## Filters
@@ -13,4 +13,4 @@ add_filter('ysacf_exclude_fields', function(){
13
  'text_color',
14
  );
15
  });
16
- ```
1
+ # ACF Content Analysis for Yoast SEO
2
  This plugin ensures that Yoast SEO analysize all ACF content including FlexiContent and Repeaters
3
 
4
  ## Filters
13
  'text_color',
14
  );
15
  });
16
+ ```
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
- === ACF-Content Analysis for Yoast SEO ===
2
  Contributors: ViktorFroberg, marol87, pekz0r, angrycreative
3
  Tags: Angry Creative, Yoast SEO, Yoast, SEO, ACF, Advanced Custom Fields
4
  Requires at least: 4.0
5
- Tested up to: 4.5.2
6
- Stable tag: 1.2.4
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -37,6 +37,9 @@ add_filter('ysacf_exclude_fields', function(){
37
 
38
  == Changelog ==
39
 
 
 
 
40
  = 1.2.4 =
41
  * Fix filter.
42
  * Add check for empty content.
1
+ === ACF Content Analysis for Yoast SEO ===
2
  Contributors: ViktorFroberg, marol87, pekz0r, angrycreative
3
  Tags: Angry Creative, Yoast SEO, Yoast, SEO, ACF, Advanced Custom Fields
4
  Requires at least: 4.0
5
+ Tested up to: 4.5.3
6
+ Stable tag: 1.2.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
37
 
38
  == Changelog ==
39
 
40
+ = 1.2.5 =
41
+ * Fix for taxonomies in the latest version of WordPress
42
+
43
  = 1.2.4 =
44
  * Fix filter.
45
  * Add check for empty content.
yoast-seo-acf-content-analysis.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
- Plugin Name: ACF-Content Analysis for Yoast SEO
4
  Plugin URI: http://angrycreative.se
5
  Description: Ensure that Yoast SEO analysize all ACF content including Flexible Content and Repeaters.
6
- Version: 1.2.4
7
  Author: ViktorFroberg, marol87, pekz0r, angrycreative
8
  Author URI: http://angrycreative.se
9
  License: GPL
@@ -28,7 +28,7 @@ class AC_Yoast_SEO_ACF_Content_Analysis
28
  * @since 0.1.0
29
  * @var string
30
  */
31
- const VERSION = '1.2.4';
32
  /**
33
  * Unique identifier for the plugin.
34
  * This value is used as the text domain when internationalizing strings of text. It should
@@ -54,10 +54,10 @@ class AC_Yoast_SEO_ACF_Content_Analysis
54
  * @var array
55
  */
56
  private $analysize_page_types = array(
57
- 'edit-tags.php',
58
  'post.php',
 
59
  'post-new.php',
60
-
61
  );
62
 
63
  function __construct(){
@@ -139,7 +139,7 @@ class AC_Yoast_SEO_ACF_Content_Analysis
139
  if( in_array( $this->pagenow, $this->analysize_page_types ) ) {
140
 
141
  // if this is a taxonomy, get the taxonomy id else get the post id
142
- if($this->pagenow === 'edit-tags.php' ) {
143
 
144
  $id = filter_input(INPUT_GET, 'taxonomy', FILTER_SANITIZE_STRING) . '_' . filter_input(INPUT_GET, 'tag_ID', FILTER_SANITIZE_NUMBER_INT);
145
 
1
  <?php
2
  /*
3
+ Plugin Name: ACF Content Analysis for Yoast SEO
4
  Plugin URI: http://angrycreative.se
5
  Description: Ensure that Yoast SEO analysize all ACF content including Flexible Content and Repeaters.
6
+ Version: 1.2.5
7
  Author: ViktorFroberg, marol87, pekz0r, angrycreative
8
  Author URI: http://angrycreative.se
9
  License: GPL
28
  * @since 0.1.0
29
  * @var string
30
  */
31
+ const VERSION = '1.2.5';
32
  /**
33
  * Unique identifier for the plugin.
34
  * This value is used as the text domain when internationalizing strings of text. It should
54
  * @var array
55
  */
56
  private $analysize_page_types = array(
57
+ 'term.php',
58
  'post.php',
59
+ 'edit-tags.php', // will be removed in future versions of the plugin.
60
  'post-new.php',
 
61
  );
62
 
63
  function __construct(){
139
  if( in_array( $this->pagenow, $this->analysize_page_types ) ) {
140
 
141
  // if this is a taxonomy, get the taxonomy id else get the post id
142
+ if($this->pagenow === 'term.php' || $this->pagenow === 'edit-tags.php') {
143
 
144
  $id = filter_input(INPUT_GET, 'taxonomy', FILTER_SANITIZE_STRING) . '_' . filter_input(INPUT_GET, 'tag_ID', FILTER_SANITIZE_NUMBER_INT);
145