Version Description
Download this release
Release Info
| Developer | Yoast |
| Plugin | |
| Version | 2.5 |
| Comparing to | |
| See all releases | |
Code changes from version 2.4.1 to 2.5
inc/assets.php
CHANGED
|
@@ -38,11 +38,11 @@ class Yoast_ACF_Analysis_Assets {
|
|
| 38 |
$config = Yoast_ACF_Analysis_Facade::get_registry()->get( 'config' );
|
| 39 |
|
| 40 |
// Post page enqueue.
|
| 41 |
-
if ( wp_script_is( WPSEO_Admin_Asset_Manager::PREFIX . 'post-
|
| 42 |
wp_enqueue_script(
|
| 43 |
'yoast-acf-analysis-post',
|
| 44 |
plugins_url( '/js/yoast-acf-analysis.js', AC_SEO_ACF_ANALYSIS_PLUGIN_FILE ),
|
| 45 |
-
[ 'jquery', WPSEO_Admin_Asset_Manager::PREFIX . 'post-
|
| 46 |
$this->plugin_data['Version'],
|
| 47 |
true
|
| 48 |
);
|
|
@@ -51,11 +51,11 @@ class Yoast_ACF_Analysis_Assets {
|
|
| 51 |
}
|
| 52 |
|
| 53 |
// Term page enqueue.
|
| 54 |
-
if ( wp_script_is( WPSEO_Admin_Asset_Manager::PREFIX . 'term-
|
| 55 |
wp_enqueue_script(
|
| 56 |
'yoast-acf-analysis-term',
|
| 57 |
plugins_url( '/js/yoast-acf-analysis.js', AC_SEO_ACF_ANALYSIS_PLUGIN_FILE ),
|
| 58 |
-
[ 'jquery', WPSEO_Admin_Asset_Manager::PREFIX . 'term-
|
| 59 |
$this->plugin_data['Version'],
|
| 60 |
true
|
| 61 |
);
|
| 38 |
$config = Yoast_ACF_Analysis_Facade::get_registry()->get( 'config' );
|
| 39 |
|
| 40 |
// Post page enqueue.
|
| 41 |
+
if ( wp_script_is( WPSEO_Admin_Asset_Manager::PREFIX . 'post-edit' ) ) {
|
| 42 |
wp_enqueue_script(
|
| 43 |
'yoast-acf-analysis-post',
|
| 44 |
plugins_url( '/js/yoast-acf-analysis.js', AC_SEO_ACF_ANALYSIS_PLUGIN_FILE ),
|
| 45 |
+
[ 'jquery', WPSEO_Admin_Asset_Manager::PREFIX . 'post-edit', 'underscore' ],
|
| 46 |
$this->plugin_data['Version'],
|
| 47 |
true
|
| 48 |
);
|
| 51 |
}
|
| 52 |
|
| 53 |
// Term page enqueue.
|
| 54 |
+
if ( wp_script_is( WPSEO_Admin_Asset_Manager::PREFIX . 'term-edit' ) ) {
|
| 55 |
wp_enqueue_script(
|
| 56 |
'yoast-acf-analysis-term',
|
| 57 |
plugins_url( '/js/yoast-acf-analysis.js', AC_SEO_ACF_ANALYSIS_PLUGIN_FILE ),
|
| 58 |
+
[ 'jquery', WPSEO_Admin_Asset_Manager::PREFIX . 'term-edit' ],
|
| 59 |
$this->plugin_data['Version'],
|
| 60 |
true
|
| 61 |
);
|
inc/dependencies/dependency-yoast-seo.php
CHANGED
|
@@ -10,7 +10,7 @@
|
|
| 10 |
*/
|
| 11 |
final class Yoast_ACF_Analysis_Dependency_Yoast_SEO implements Yoast_ACF_Analysis_Dependency {
|
| 12 |
|
| 13 |
-
const MINIMAL_REQUIRED_VERSION =
|
| 14 |
|
| 15 |
/**
|
| 16 |
* Checks if this dependency is met.
|
| 10 |
*/
|
| 11 |
final class Yoast_ACF_Analysis_Dependency_Yoast_SEO implements Yoast_ACF_Analysis_Dependency {
|
| 12 |
|
| 13 |
+
const MINIMAL_REQUIRED_VERSION = 14.6;
|
| 14 |
|
| 15 |
/**
|
| 16 |
* Checks if this dependency is met.
|
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: 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.
|
| 9 |
Requires PHP: 5.6.20
|
| 10 |
|
| 11 |
WordPress plugin that adds the content of all ACF fields to the Yoast SEO score analysis.
|
|
@@ -14,7 +14,7 @@ WordPress plugin that adds the content of all ACF fields to the Yoast SEO score
|
|
| 14 |
|
| 15 |
This plugin ensures that Yoast SEO analyzes all ACF content including Flexible Content and Repeaters.
|
| 16 |
|
| 17 |
-
[Yoast SEO for WordPress](https://yoast.com/wordpress/plugins/) content and SEO analysis does not take in to account the content of a post's [Advanced Custom Fields](http://www.advancedcustomfields.com/). This plugin uses the plugin system of Yoast SEO for WordPress
|
| 18 |
|
| 19 |
This had previously been done by the [WordPress SEO ACF Content Analysis](https://wordpress.org/plugins/wp-seo-acf-content-analysis/) plugin but that no longer works with Yoast 3.0. Kudos to [ryuheixys](https://profiles.wordpress.org/ryuheixys/), the author of that plugin, for the original idea.
|
| 20 |
|
|
@@ -55,6 +55,15 @@ Previously called Yoast ACF Analysis.
|
|
| 55 |
|
| 56 |
== Changelog ==
|
| 57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
= 2.4.1 =
|
| 59 |
|
| 60 |
Released June 10th, 2020
|
| 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: 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.
|
| 14 |
|
| 15 |
This plugin ensures that Yoast SEO analyzes all ACF content including Flexible Content and Repeaters.
|
| 16 |
|
| 17 |
+
[Yoast SEO for WordPress](https://yoast.com/wordpress/plugins/) content and SEO analysis does not take in to account the content of a post's [Advanced Custom Fields](http://www.advancedcustomfields.com/). This plugin uses the plugin system of Yoast SEO for WordPress to hook into the analyser in order to add ACF content to the SEO analysis.
|
| 18 |
|
| 19 |
This had previously been done by the [WordPress SEO ACF Content Analysis](https://wordpress.org/plugins/wp-seo-acf-content-analysis/) plugin but that no longer works with Yoast 3.0. Kudos to [ryuheixys](https://profiles.wordpress.org/ryuheixys/), the author of that plugin, for the original idea.
|
| 20 |
|
| 55 |
|
| 56 |
== Changelog ==
|
| 57 |
|
| 58 |
+
= 2.5.0 =
|
| 59 |
+
|
| 60 |
+
Released July 21st, 2020
|
| 61 |
+
|
| 62 |
+
Other:
|
| 63 |
+
|
| 64 |
+
* Makes the plugin compatible with JavaScript changes introduced in Yoast SEO 14.6. We used to depend on JavaScript files which aren't there anymore. We now depend on `post-edit.js` or `term-edit.js`.
|
| 65 |
+
* Sets the minimum supported Yoast SEO version to 14.6.
|
| 66 |
+
|
| 67 |
= 2.4.1 =
|
| 68 |
|
| 69 |
Released June 10th, 2020
|
tests/php/unit/Dependencies/yoast-seo-dependency-test.php
CHANGED
|
@@ -64,7 +64,7 @@ class Yoast_SEO_Dependency_Test extends TestCase {
|
|
| 64 |
* @return void
|
| 65 |
*/
|
| 66 |
public function testPass() {
|
| 67 |
-
\define( 'WPSEO_VERSION', '
|
| 68 |
|
| 69 |
$testee = new Yoast_ACF_Analysis_Dependency_Yoast_SEO();
|
| 70 |
$this->assertTrue( $testee->is_met() );
|
|
@@ -76,7 +76,7 @@ class Yoast_SEO_Dependency_Test extends TestCase {
|
|
| 76 |
* @return void
|
| 77 |
*/
|
| 78 |
public function testOldVersion() {
|
| 79 |
-
\define( 'WPSEO_VERSION', '
|
| 80 |
|
| 81 |
$testee = new Yoast_ACF_Analysis_Dependency_Yoast_SEO();
|
| 82 |
$this->assertFalse( $testee->is_met() );
|
| 64 |
* @return void
|
| 65 |
*/
|
| 66 |
public function testPass() {
|
| 67 |
+
\define( 'WPSEO_VERSION', '14.6.0' );
|
| 68 |
|
| 69 |
$testee = new Yoast_ACF_Analysis_Dependency_Yoast_SEO();
|
| 70 |
$this->assertTrue( $testee->is_met() );
|
| 76 |
* @return void
|
| 77 |
*/
|
| 78 |
public function testOldVersion() {
|
| 79 |
+
\define( 'WPSEO_VERSION', '14.5.0' );
|
| 80 |
|
| 81 |
$testee = new Yoast_ACF_Analysis_Dependency_Yoast_SEO();
|
| 82 |
$this->assertFalse( $testee->is_met() );
|
vendor/autoload.php
CHANGED
|
@@ -4,4 +4,4 @@
|
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
| 6 |
|
| 7 |
-
return
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
| 6 |
|
| 7 |
+
return ComposerAutoloaderInit9a3415ad267d966add37c5e43216e31a::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
-
class
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit5bd657ceb32e0a52de5080d24ea12040
|
|
| 22 |
return self::$loader;
|
| 23 |
}
|
| 24 |
|
| 25 |
-
spl_autoload_register(array('
|
| 26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 27 |
-
spl_autoload_unregister(array('
|
| 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\
|
| 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 ComposerAutoloaderInit9a3415ad267d966add37c5e43216e31a
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
| 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) {
|
vendor/composer/autoload_static.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
|
| 5 |
namespace Composer\Autoload;
|
| 6 |
|
| 7 |
-
class
|
| 8 |
{
|
| 9 |
public static $prefixLengthsPsr4 = array (
|
| 10 |
'C' =>
|
|
@@ -126,9 +126,9 @@ class ComposerStaticInit5bd657ceb32e0a52de5080d24ea12040
|
|
| 126 |
public static function getInitializer(ClassLoader $loader)
|
| 127 |
{
|
| 128 |
return \Closure::bind(function () use ($loader) {
|
| 129 |
-
$loader->prefixLengthsPsr4 =
|
| 130 |
-
$loader->prefixDirsPsr4 =
|
| 131 |
-
$loader->classMap =
|
| 132 |
|
| 133 |
}, null, ClassLoader::class);
|
| 134 |
}
|
| 4 |
|
| 5 |
namespace Composer\Autoload;
|
| 6 |
|
| 7 |
+
class ComposerStaticInit9a3415ad267d966add37c5e43216e31a
|
| 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 = ComposerStaticInit9a3415ad267d966add37c5e43216e31a::$prefixLengthsPsr4;
|
| 130 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit9a3415ad267d966add37c5e43216e31a::$prefixDirsPsr4;
|
| 131 |
+
$loader->classMap = ComposerStaticInit9a3415ad267d966add37c5e43216e31a::$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.
|
| 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.5
|
| 12 |
* Author: Thomas Kräftner, ViktorFroberg, marol87, pekz0r, angrycreative, Team Yoast
|
| 13 |
* Author URI: http://angrycreative.se
|
| 14 |
* License: GPL v3
|
