ACF Content Analysis for Yoast SEO - Version 2.6

Version Description

Download this release

Release Info

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

Code changes from version 2.5 to 2.6

.cache/.gitkeep ADDED
@@ -0,0 +1 @@
 
1
+ # This directory has to exist to allow cache files to be written to it.
.phpcs.xml.dist CHANGED
@@ -29,6 +29,9 @@
29
  <!-- Check up to 8 files simultaneously. -->
30
  <arg name="parallel" value="8"/>
31
 
 
 
 
32
 
33
  <!--
34
  #############################################################################
29
  <!-- Check up to 8 files simultaneously. -->
30
  <arg name="parallel" value="8"/>
31
 
32
+ <!-- Cache the results between runs. -->
33
+ <arg name="cache" value="./.cache/phpcs.cache"/>
34
+
35
 
36
  <!--
37
  #############################################################################
js/src/collect/collect-v5.js CHANGED
@@ -41,7 +41,7 @@ module.exports = function() {
41
  var blocks = wp.data.select( "core/block-editor" ).getBlocks();
42
  var blockFields = _.map(
43
  _.filter( blocks, function( block ) {
44
- return block.name.startsWith( "acf/" ) && block.attributes.mode === "preview";
45
  } ),
46
  function( block ) {
47
  var fieldData = {
41
  var blocks = wp.data.select( "core/block-editor" ).getBlocks();
42
  var blockFields = _.map(
43
  _.filter( blocks, function( block ) {
44
+ return block.name.startsWith( "acf/" ) && jQuery( `[data-block="${block.clientId}"] .acf-block-preview` ).length === 1;
45
  } ),
46
  function( block ) {
47
  var fieldData = {
js/yoast-acf-analysis.js CHANGED
@@ -257,7 +257,7 @@ module.exports = function() {
257
  var blocks = wp.data.select( "core/block-editor" ).getBlocks();
258
  var blockFields = _.map(
259
  _.filter( blocks, function( block ) {
260
- return block.name.startsWith( "acf/" ) && block.attributes.mode === "preview";
261
  } ),
262
  function( block ) {
263
  var fieldData = {
257
  var blocks = wp.data.select( "core/block-editor" ).getBlocks();
258
  var blockFields = _.map(
259
  _.filter( blocks, function( block ) {
260
+ return block.name.startsWith( "acf/" ) && jQuery( `[data-block="${block.clientId}"] .acf-block-preview` ).length === 1;
261
  } ),
262
  function( block ) {
263
  var fieldData = {
readme.txt CHANGED
@@ -5,7 +5,7 @@ Requires at least: 5.2
5
  Tested up to: 5.4
6
  License: GPLv3
7
  License URI: http://www.gnu.org/licenses/gpl.html
8
- Stable tag: 2.5
9
  Requires PHP: 5.6.20
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.5.0 =
59
 
60
  Released July 21st, 2020
5
  Tested up to: 5.4
6
  License: GPLv3
7
  License URI: http://www.gnu.org/licenses/gpl.html
8
+ Stable tag: 2.6
9
  Requires PHP: 5.6.20
10
 
11
  WordPress plugin that adds the content of all ACF fields to the Yoast SEO score analysis.
55
 
56
  == Changelog ==
57
 
58
+ = 2.6.0 =
59
+
60
+ Released August 4th, 2020
61
+
62
+ Bugfixes:
63
+
64
+ * Fixes a bug where the content of ACF blocks in 'auto' mode was not taken into account when the block (automatically) switched to preview mode. Props to [TimVevida](https://github.com/TimVevida).
65
+
66
  = 2.5.0 =
67
 
68
  Released July 21st, 2020
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit9a3415ad267d966add37c5e43216e31a::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit3c0f22cfa32bf6c5ef3cf407ce90f0f9::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit9a3415ad267d966add37c5e43216e31a
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit9a3415ad267d966add37c5e43216e31a
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit9a3415ad267d966add37c5e43216e31a', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInit9a3415ad267d966add37c5e43216e31a', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit9a3415ad267d966add37c5e43216e31a::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit3c0f22cfa32bf6c5ef3cf407ce90f0f9
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit3c0f22cfa32bf6c5ef3cf407ce90f0f9', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit3c0f22cfa32bf6c5ef3cf407ce90f0f9', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInit3c0f22cfa32bf6c5ef3cf407ce90f0f9::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit9a3415ad267d966add37c5e43216e31a
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'C' =>
@@ -126,9 +126,9 @@ class ComposerStaticInit9a3415ad267d966add37c5e43216e31a
126
  public static function getInitializer(ClassLoader $loader)
127
  {
128
  return \Closure::bind(function () use ($loader) {
129
- $loader->prefixLengthsPsr4 = ComposerStaticInit9a3415ad267d966add37c5e43216e31a::$prefixLengthsPsr4;
130
- $loader->prefixDirsPsr4 = ComposerStaticInit9a3415ad267d966add37c5e43216e31a::$prefixDirsPsr4;
131
- $loader->classMap = ComposerStaticInit9a3415ad267d966add37c5e43216e31a::$classMap;
132
 
133
  }, null, ClassLoader::class);
134
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit3c0f22cfa32bf6c5ef3cf407ce90f0f9
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'C' =>
126
  public static function getInitializer(ClassLoader $loader)
127
  {
128
  return \Closure::bind(function () use ($loader) {
129
+ $loader->prefixLengthsPsr4 = ComposerStaticInit3c0f22cfa32bf6c5ef3cf407ce90f0f9::$prefixLengthsPsr4;
130
+ $loader->prefixDirsPsr4 = ComposerStaticInit3c0f22cfa32bf6c5ef3cf407ce90f0f9::$prefixDirsPsr4;
131
+ $loader->classMap = ComposerStaticInit3c0f22cfa32bf6c5ef3cf407ce90f0f9::$classMap;
132
 
133
  }, null, ClassLoader::class);
134
  }
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.5
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.6
12
  * Author: Thomas Kräftner, ViktorFroberg, marol87, pekz0r, angrycreative, Team Yoast
13
  * Author URI: http://angrycreative.se
14
  * License: GPL v3