Skip to content

Commit

Permalink
[deploy:live] Merge pull request #240 from PRX/plugin-updates-january…
Browse files Browse the repository at this point in the history
…-2025

Plugin updates January 2025.
  • Loading branch information
brandonhundt authored Jan 28, 2025
2 parents 8289411 + d441dbc commit 33dd3c8
Show file tree
Hide file tree
Showing 113 changed files with 758 additions and 541 deletions.
4 changes: 2 additions & 2 deletions wp-content/plugins/acf-to-rest-api/class-acf-to-rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: Exposes Advanced Custom Fields Endpoints in the WordPress REST API
* Author: Aires Gonçalves
* Author URI: http://github.com/airesvsg
* Version: 3.3.3
* Version: 3.3.4
* Plugin URI: http://github.com/airesvsg/acf-to-rest-api
*/

Expand All @@ -16,7 +16,7 @@

class ACF_To_REST_API {

const VERSION = '3.3.3';
const VERSION = '3.3.4';

private static $old_request_version = 2;
private static $default_request_version = 3;
Expand Down
2 changes: 1 addition & 1 deletion wp-content/plugins/acf-to-rest-api/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "airesvsg/acf-to-rest-api",
"description": "Exposes Advanced Custom Fields Endpoints in the WordPress REST API",
"type": "wordpress-plugin",
"version": "3.3.3",
"version": "3.3.4",
"keywords": ["wordpress", "wp", "rest-api", "acf", "wp-api", "json", "wordpres-plugin", "fields"],
"homepage": "https://github.com/airesvsg/acf-to-rest-api",
"license": "GPL-2.0-only",
Expand Down
7 changes: 5 additions & 2 deletions wp-content/plugins/acf-to-rest-api/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: airesvsg
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=E5M7HDWNPFVF4&lc=BR&item_name=Aires%20Goncalves&no_note=0&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest
Tags: acf, api, rest, wp-api, wp-rest-api, json, wp, wordpress, wp-rest-api, wordpress-rest-api
Requires at least: 4.6
Tested up to: 5.9.1
Stable tag: 3.3.3
Tested up to: 6.7.1
Stable tag: 3.3.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -21,6 +21,9 @@ Exposes [Advanced Custom Fields](https://wordpress.org/plugins/advanced-custom-f

== Changelog ==

= 3.3.4 =
fix text domain

= 3.3.3 =
fix issue with ACF 5.12 ( https://github.com/airesvsg/acf-to-rest-api/issues/398 ) - Thanks to Jack Pallot

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
?>

<div class="notice acf-to-rest-api-donation-notice">
<p><span class="acf-to-rest-api-donation-plugin-name">{ <?php esc_html_e( 'ACF to REST-API', 'act-to-rest-api' ); ?> }</span> <a href="<?php echo esc_url( self::DONATION_URL ); ?>" target="_blank" class="acf-to-rest-api-donation-button"> <span class="dashicons dashicons-heart"></span> <?php echo esc_html_e( 'Make a donation', 'acf-to-rest-api' ); ?></a></p>
<p><span class="acf-to-rest-api-donation-plugin-name">{ <?php esc_html_e( 'ACF to REST-API', 'acf-to-rest-api' ); ?> }</span> <a href="<?php echo esc_url( self::DONATION_URL ); ?>" target="_blank" class="acf-to-rest-api-donation-button"> <span class="dashicons dashicons-heart"></span> <?php echo esc_html_e( 'Make a donation', 'acf-to-rest-api' ); ?></a></p>
<button type="button" class="notice-dismiss acf-to-rest-api-donation-button-notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
?>

<div class="notice error is-dismissible">
<p><strong><?php esc_html_e( 'ACF to REST API', 'act-to-rest-api' ); ?></strong> <?php esc_html_e( 'depends on the last version of Advanced Custom Fields to work!', 'acf-to-rest-api' ); ?></p>
<p><strong><?php esc_html_e( 'ACF to REST API', 'acf-to-rest-api' ); ?></strong> <?php esc_html_e( 'depends on the last version of Advanced Custom Fields to work!', 'acf-to-rest-api' ); ?></p>
<p><a href="<?php echo esc_url( $url ); ?>" class="button button-primary"<?php if ( $target ) : ?> target="_blank"<?php endif; ?>><?php esc_html_e( $action . ' Advanced Custom Fields', 'acf-to-rest-api' ); ?></a></p>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
?>

<div class="notice error is-dismissible">
<p><strong><?php esc_html_e( 'ACF to REST API', 'act-to-rest-api' ); ?></strong> <?php esc_html_e( 'depends on the last version of WordPress REST API to work!', 'acf-to-rest-api' ); ?></p>
<p><strong><?php esc_html_e( 'ACF to REST API', 'acf-to-rest-api' ); ?></strong> <?php esc_html_e( 'depends on the last version of WordPress REST API to work!', 'acf-to-rest-api' ); ?></p>
<p><a href="<?php echo esc_url( $url ); ?>" class="button button-primary"<?php if ( $target ) : ?> target="_blank"<?php endif; ?>><?php esc_html_e( $action . ' WordPress REST API', 'acf-to-rest-api' ); ?></a></p>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ public function map_meta_cap_for_seo_manager( $caps, $cap ) {
return $caps;
}

if ( ! is_array( $user->roles ) ) {
return $caps;
}

// User must be of role wpseo_manager.
if ( ! in_array( 'wpseo_manager', $user->roles, true ) ) {
return $caps;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,10 @@ protected function styles_to_be_registered() {
'wp-components',
],
],
[
'name' => 'block-editor',
'src' => 'block-editor-' . $flat_version,
],
[
'name' => 'ai-generator',
'src' => 'ai-generator-' . $flat_version,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ class WPSEO_Gutenberg_Compatibility {
*
* @var string
*/
public const CURRENT_RELEASE = '19.8.0';
public const CURRENT_RELEASE = '19.9.0';

/**
* The minimally supported version of Gutenberg by the plugin.
*
* @var string
*/
public const MINIMUM_SUPPORTED = '19.8.0';
public const MINIMUM_SUPPORTED = '19.9.0';

/**
* Holds the current version.
Expand Down
11 changes: 11 additions & 0 deletions wp-content/plugins/wordpress-seo/admin/class-meta-columns.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ class WPSEO_Meta_Columns {
*/
private $score_icon_helper;

/**
* Holds the WPSEO_Admin_Asset_Manager instance.
*
* @var WPSEO_Admin_Asset_Manager
*/
private $admin_asset_manager;

/**
* When page analysis is enabled, just initialize the hooks.
*/
Expand All @@ -62,6 +69,7 @@ public function __construct() {
$this->analysis_readability = new WPSEO_Metabox_Analysis_Readability();
$this->admin_columns_cache = YoastSEO()->classes->get( Admin_Columns_Cache_Integration::class );
$this->score_icon_helper = YoastSEO()->helpers->score_icon;
$this->admin_asset_manager = YoastSEO()->classes->get( WPSEO_Admin_Asset_Manager::class );
}

/**
Expand Down Expand Up @@ -96,6 +104,9 @@ public function column_heading( $columns ) {
return $columns;
}

$this->admin_asset_manager->enqueue_script( 'edit-page' );
$this->admin_asset_manager->enqueue_style( 'edit-page' );

$added_columns = [];

if ( $this->analysis_seo->is_enabled() ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -810,17 +810,12 @@ public function enqueue() {

$asset_manager = new WPSEO_Admin_Asset_Manager();

$is_editor = self::is_post_overview( $pagenow ) || self::is_post_edit( $pagenow );

if ( self::is_post_overview( $pagenow ) ) {
$asset_manager->enqueue_style( 'edit-page' );
$asset_manager->enqueue_script( 'edit-page' );

return;
}

/* Filter 'wpseo_always_register_metaboxes_on_admin' documented in wpseo-main.php */
if ( ( $is_editor === false && apply_filters( 'wpseo_always_register_metaboxes_on_admin', false ) === false ) || $this->display_metabox() === false ) {
if ( ( self::is_post_edit( $pagenow ) === false && apply_filters( 'wpseo_always_register_metaboxes_on_admin', false ) === false ) || $this->display_metabox() === false ) {
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ public function admin_enqueue_scripts() {

if ( self::is_term_overview( $pagenow ) ) {
$asset_manager->enqueue_script( 'edit-page' );
$asset_manager->enqueue_style( 'edit-page' );
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* Yoast SEO that we can import stuff for that plugin.
*/
// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Reason: We are only comparing the variable so no need to sanitize.
if ( isset( $_POST['import_external'] ) && wp_unslash( $_POST['import_external'] ) === 'Import' ) {
if ( isset( $_POST['import_external'] ) && wp_unslash( $_POST['import_external'] ) === __( 'Import', 'wordpress-seo' ) ) {
check_admin_referer( 'wpseo-import-plugins' );
if ( isset( $_POST['import_external_plugin'] ) && is_string( $_POST['import_external_plugin'] ) ) {
// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Reason: We are using the variable as a class name.
Expand All @@ -32,7 +32,7 @@
}
}
// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Reason: We are only comparing the variable so no need to sanitize.
elseif ( isset( $_POST['clean_external'] ) && wp_unslash( $_POST['clean_external'] ) === 'Clean up' ) {
elseif ( isset( $_POST['clean_external'] ) && wp_unslash( $_POST['clean_external'] ) === __( 'Clean up', 'wordpress-seo' ) ) {
check_admin_referer( 'wpseo-clean-plugins' );
if ( isset( $_POST['clean_external_plugin'] ) && is_string( $_POST['clean_external_plugin'] ) ) {
// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Reason: We are using the variable as a class name.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.editor-styles-wrapper mark.annotation-text-yoast{background-color:#e1bee7}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.editor-styles-wrapper mark.annotation-text-yoast{background-color:#e1bee7}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

173 changes: 83 additions & 90 deletions wp-content/plugins/wordpress-seo/js/dist/block-editor.js

Large diffs are not rendered by default.

Loading

0 comments on commit 33dd3c8

Please sign in to comment.