ACF Content Analysis for Yoast SEO - Version 2.3.0

Version Description

Released May 15th, 2019

Enhancements:

  • ACF URL fields are now analyzed as links. Props to t49tran.
Download this release

Release Info

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

Code changes from version 2.2.0 to 2.3.0

.phpcs.xml.dist CHANGED
@@ -79,10 +79,13 @@
79
  <properties>
80
  <!-- Provide the prefixes to look for. -->
81
  <property name="prefixes" type="array">
82
- <element value="Yoast_ACF"/>
83
  <element value="AC_Yoast"/>
84
  <element value="AC_SEO"/>
85
  <element value="ysacf"/>
 
 
 
86
  </property>
87
  </properties>
88
  </rule>
@@ -104,17 +107,4 @@
104
  </properties>
105
  </rule>
106
 
107
-
108
- <!--
109
- #############################################################################
110
- SELECTIVE EXCLUSIONS
111
- Exclude specific files for specific sniffs and/or exclude sub-groups in sniffs.
112
- #############################################################################
113
- -->
114
-
115
- <!-- Valid exemption: namespaced files do not need a file docblock in the Yoast repos. -->
116
- <rule ref="Squiz.Commenting.FileComment.Missing">
117
- <exclude-pattern>/tests/php/unit/*\.php$</exclude-pattern>
118
- </rule>
119
-
120
  </ruleset>
79
  <properties>
80
  <!-- Provide the prefixes to look for. -->
81
  <property name="prefixes" type="array">
82
+ <!-- Temporarily allowed until the prefixes are fixed. -->
83
  <element value="AC_Yoast"/>
84
  <element value="AC_SEO"/>
85
  <element value="ysacf"/>
86
+ <!-- These are the new prefixes which all code should comply with in the future. -->
87
+ <element value="yoast_acf"/>
88
+ <element value="Yoast\WP\ACF"/>
89
  </property>
90
  </properties>
91
  </rule>
107
  </properties>
108
  </rule>
109
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  </ruleset>
js/src/scraper/scraper.url.js CHANGED
@@ -8,7 +8,9 @@ Scraper.prototype.scrape = function( fields ) {
8
  return field;
9
  }
10
 
11
- field.content = field.$el.find( "input[type=url][id^=acf]" ).val();
 
 
12
 
13
  return field;
14
  } );
8
  return field;
9
  }
10
 
11
+ var content = field.$el.find( "input[type=url][id^=acf]" ).val();
12
+
13
+ field.content = content ? '<a href="' + content + '">' + content + "</a>" : "";
14
 
15
  return field;
16
  } );
js/yoast-acf-analysis.js CHANGED
@@ -824,7 +824,9 @@ Scraper.prototype.scrape = function( fields ) {
824
  return field;
825
  }
826
 
827
- field.content = field.$el.find( "input[type=url][id^=acf]" ).val();
 
 
828
 
829
  return field;
830
  } );
824
  return field;
825
  }
826
 
827
+ var content = field.$el.find( "input[type=url][id^=acf]" ).val();
828
+
829
+ field.content = content ? '<a href="' + content + '">' + content + "</a>" : "";
830
 
831
  return field;
832
  } );
tests/php/phpunit.xml.dist → phpunit.xml.dist RENAMED
@@ -9,13 +9,13 @@
9
  verbose="true">
10
  <testsuites>
11
  <testsuite name="unit">
12
- <directory suffix="test.php">unit</directory>
13
  </testsuite>
14
  </testsuites>
15
 
16
  <filter>
17
  <whitelist>
18
- <directory suffix=".php">../../inc/</directory>
19
  </whitelist>
20
  </filter>
21
  </phpunit>
9
  verbose="true">
10
  <testsuites>
11
  <testsuite name="unit">
12
+ <directory suffix="test.php">tests/php/unit</directory>
13
  </testsuite>
14
  </testsuites>
15
 
16
  <filter>
17
  <whitelist>
18
+ <directory suffix=".php">inc/</directory>
19
  </whitelist>
20
  </filter>
21
  </phpunit>
readme.txt CHANGED
@@ -2,10 +2,10 @@
2
  Contributors: yoast, angrycreative, kraftner, marcusforsberg, viktorfroberg, joostdevalk, atimmer, jipmoors, theorboman
3
  Tags: Yoast, SEO, ACF, Advanced Custom Fields, analysis, Search Engine Optimization
4
  Requires at least: 4.9
5
- Tested up to: 5.0.3
6
  License: GPLv3
7
  License URI: http://www.gnu.org/licenses/gpl.html
8
- Stable tag: 2.2.0
9
  Requires PHP: 5.2.4
10
 
11
  WordPress plugin that adds the content of all ACF fields to the Yoast SEO score analysis.
@@ -55,6 +55,14 @@ Previously called Yoast ACF Analysis.
55
 
56
  == Changelog ==
57
 
 
 
 
 
 
 
 
 
58
  = 2.2.0 =
59
 
60
  Released January 22nd, 2019
2
  Contributors: yoast, angrycreative, kraftner, marcusforsberg, viktorfroberg, joostdevalk, atimmer, jipmoors, theorboman
3
  Tags: Yoast, SEO, ACF, Advanced Custom Fields, analysis, Search Engine Optimization
4
  Requires at least: 4.9
5
+ Tested up to: 5.2
6
  License: GPLv3
7
  License URI: http://www.gnu.org/licenses/gpl.html
8
+ Stable tag: 2.3.0
9
  Requires PHP: 5.2.4
10
 
11
  WordPress plugin that adds the content of all ACF fields to the Yoast SEO score analysis.
55
 
56
  == Changelog ==
57
 
58
+ = 2.3.0 =
59
+
60
+ Released May 15th, 2019
61
+
62
+ Enhancements:
63
+
64
+ * ACF URL fields are now analyzed as links. Props to [t49tran](https://github.com/t49tran).
65
+
66
  = 2.2.0 =
67
 
68
  Released January 22nd, 2019
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit2ef726570cbf453a5220f184849a44f5::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit8dadf3d19c2db1d3f2ea2bc13cbfc71b::getLoader();
vendor/autoload_52.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
6
 
7
- return ComposerAutoloaderInit7969cfa0158947fe7dd5be0511e3ba99::getLoader();
4
 
5
  require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
6
 
7
+ return ComposerAutoloaderInit3fdf1c700b157b1db194137c8afafe66::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit2ef726570cbf453a5220f184849a44f5
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit2ef726570cbf453a5220f184849a44f5
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit2ef726570cbf453a5220f184849a44f5', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit2ef726570cbf453a5220f184849a44f5', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInit2ef726570cbf453a5220f184849a44f5::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit8dadf3d19c2db1d3f2ea2bc13cbfc71b
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit8dadf3d19c2db1d3f2ea2bc13cbfc71b', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit8dadf3d19c2db1d3f2ea2bc13cbfc71b', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit8dadf3d19c2db1d3f2ea2bc13cbfc71b::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_real_52.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real_52.php generated by xrstf/composer-php52
4
 
5
- class ComposerAutoloaderInit7969cfa0158947fe7dd5be0511e3ba99 {
6
  private static $loader;
7
 
8
  public static function loadClassLoader($class) {
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit7969cfa0158947fe7dd5be0511e3ba99 {
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit7969cfa0158947fe7dd5be0511e3ba99', 'loadClassLoader'), true /*, true */);
23
  self::$loader = $loader = new xrstf_Composer52_ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit7969cfa0158947fe7dd5be0511e3ba99', 'loadClassLoader'));
25
 
26
  $vendorDir = dirname(dirname(__FILE__));
27
  $baseDir = dirname($vendorDir);
2
 
3
  // autoload_real_52.php generated by xrstf/composer-php52
4
 
5
+ class ComposerAutoloaderInit3fdf1c700b157b1db194137c8afafe66 {
6
  private static $loader;
7
 
8
  public static function loadClassLoader($class) {
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit3fdf1c700b157b1db194137c8afafe66', 'loadClassLoader'), true /*, true */);
23
  self::$loader = $loader = new xrstf_Composer52_ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit3fdf1c700b157b1db194137c8afafe66', 'loadClassLoader'));
25
 
26
  $vendorDir = dirname(dirname(__FILE__));
27
  $baseDir = dirname($vendorDir);
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit2ef726570cbf453a5220f184849a44f5
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'C' =>
@@ -133,10 +133,10 @@ class ComposerStaticInit2ef726570cbf453a5220f184849a44f5
133
  public static function getInitializer(ClassLoader $loader)
134
  {
135
  return \Closure::bind(function () use ($loader) {
136
- $loader->prefixLengthsPsr4 = ComposerStaticInit2ef726570cbf453a5220f184849a44f5::$prefixLengthsPsr4;
137
- $loader->prefixDirsPsr4 = ComposerStaticInit2ef726570cbf453a5220f184849a44f5::$prefixDirsPsr4;
138
- $loader->prefixesPsr0 = ComposerStaticInit2ef726570cbf453a5220f184849a44f5::$prefixesPsr0;
139
- $loader->classMap = ComposerStaticInit2ef726570cbf453a5220f184849a44f5::$classMap;
140
 
141
  }, null, ClassLoader::class);
142
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit8dadf3d19c2db1d3f2ea2bc13cbfc71b
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'C' =>
133
  public static function getInitializer(ClassLoader $loader)
134
  {
135
  return \Closure::bind(function () use ($loader) {
136
+ $loader->prefixLengthsPsr4 = ComposerStaticInit8dadf3d19c2db1d3f2ea2bc13cbfc71b::$prefixLengthsPsr4;
137
+ $loader->prefixDirsPsr4 = ComposerStaticInit8dadf3d19c2db1d3f2ea2bc13cbfc71b::$prefixDirsPsr4;
138
+ $loader->prefixesPsr0 = ComposerStaticInit8dadf3d19c2db1d3f2ea2bc13cbfc71b::$prefixesPsr0;
139
+ $loader->classMap = ComposerStaticInit8dadf3d19c2db1d3f2ea2bc13cbfc71b::$classMap;
140
 
141
  }, null, ClassLoader::class);
142
  }
yoast-acf-analysis.php CHANGED
@@ -8,7 +8,7 @@
8
  * Plugin Name: ACF Content Analysis for Yoast SEO
9
  * Plugin URI: https://wordpress.org/plugins/acf-content-analysis-for-yoast-seo/
10
  * Description: Ensure that Yoast SEO analyzes all Advanced Custom Fields 4 and 5 content including Flexible Content and Repeaters.
11
- * Version: 2.2.0
12
  * Author: Thomas Kräftner, ViktorFroberg, marol87, pekz0r, angrycreative, Team Yoast
13
  * Author URI: http://angrycreative.se
14
  * License: GPL v3
8
  * Plugin Name: ACF Content Analysis for Yoast SEO
9
  * Plugin URI: https://wordpress.org/plugins/acf-content-analysis-for-yoast-seo/
10
  * Description: Ensure that Yoast SEO analyzes all Advanced Custom Fields 4 and 5 content including Flexible Content and Repeaters.
11
+ * Version: 2.3.0
12
  * Author: Thomas Kräftner, ViktorFroberg, marol87, pekz0r, angrycreative, Team Yoast
13
  * Author URI: http://angrycreative.se
14
  * License: GPL v3