Skip to content

Commit

Permalink
[deploy:live] Merge pull request #239 from PRX/plugin-updates-decembe…
Browse files Browse the repository at this point in the history
…r-2024

Plugin updates December 2024.
  • Loading branch information
brandonhundt authored Dec 18, 2024
2 parents d0b8e0a + 74fdc64 commit 8289411
Show file tree
Hide file tree
Showing 353 changed files with 14,127 additions and 7,002 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Plugin URI: https://github.com/WebDevStudios/custom-post-type-ui/
* Description: Admin UI panel for registering custom post types and taxonomies
* Author: WebDevStudios
* Version: 1.17.1
* Version: 1.17.2
* Author URI: https://webdevstudios.com/
* Text Domain: custom-post-type-ui
* Domain Path: /languages
Expand All @@ -33,8 +33,8 @@
exit;
}

define( 'CPT_VERSION', '1.17.1' ); // Left for legacy purposes.
define( 'CPTUI_VERSION', '1.17.1' );
define( 'CPT_VERSION', '1.17.2' ); // Left for legacy purposes.
define( 'CPTUI_VERSION', '1.17.2' );
define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );

/**
Expand Down
8 changes: 6 additions & 2 deletions wp-content/plugins/custom-post-type-ui/inc/tools.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,9 @@ function cptui_render_posttypes_taxonomies_section() {
$cptui_post_types = cptui_get_post_type_data();
if ( ! empty( $cptui_post_types ) ) {
foreach ( $cptui_post_types as $type => $values ) {
$cptui_post_types[ $type ]['description'] = wp_slash( html_entity_decode( $values['description'] ) );
if ( ! empty( $values['description'] ) ) {
$cptui_post_types[ $type ]['description'] = wp_slash( html_entity_decode( $values['description'] ) );
}
}
$content = wp_json_encode( $cptui_post_types );
} else {
Expand Down Expand Up @@ -439,7 +441,9 @@ function cptui_render_posttypes_taxonomies_section() {
$cptui_taxonomies = cptui_get_taxonomy_data();
if ( ! empty( $cptui_taxonomies ) ) {
foreach ( $cptui_taxonomies as $tax => $values ) {
$cptui_taxonomies[ $tax ]['description'] = wp_slash( html_entity_decode( $values['description'] ) );
if ( ! empty( $values['description'] ) ) {
$cptui_taxonomies[ $tax ]['description'] = wp_slash( html_entity_decode( $values['description'] ) );
}
}
$content = wp_json_encode( $cptui_taxonomies );
} else {
Expand Down
12 changes: 10 additions & 2 deletions wp-content/plugins/custom-post-type-ui/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: webdevstudios, pluginize, tw2113, williamsba1
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3084056
Tags: custom post types, post type, taxonomy, content types, types
Requires at least: 6.5
Tested up to: 6.5.5
Stable tag: 1.17.1
Tested up to: 6.7
Stable tag: 1.17.2
License: GPL-2.0+
Requires PHP: 7.4

Expand Down Expand Up @@ -32,6 +32,10 @@ Custom Post Type UI development is managed on GitHub, with official releases pub

== Changelog ==

= 1.17.2 - 2024-11-19 =
* Fixed: PHP warnings around empty description variables from tools page.
* Updated: Confirmed compatibility with WordPress 6.7

= 1.17.1 - 2024-06-27 =
* Fixed: Missed re-showing of autolabel fill links for js enabled browsers.

Expand Down Expand Up @@ -104,6 +108,10 @@ Custom Post Type UI development is managed on GitHub, with official releases pub

== Upgrade Notice ==

= 1.17.2 - 2024-11-19 =
* Fixed: PHP warnings around empty description variables from tools page.
* Updated: Confirmed compatibility with WordPress 6.7

= 1.17.1 - 2024-06-27 =
* Fixed: Missed re-showing of autolabel fill links for js enabled browsers.

Expand Down
8 changes: 5 additions & 3 deletions wp-content/plugins/redirection/fileio/json.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public function load( $group, $filename, $data ) {
}

// Import groups
$groups = array();
$group_map = array();

if ( isset( $json['groups'] ) ) {
Expand Down Expand Up @@ -67,8 +66,11 @@ public function load( $group, $filename, $data ) {
}

$redirect['group_id'] = $group_map[ $redirect['group_id'] ];
Red_Item::create( $redirect );
$count++;
$created = Red_Item::create( $redirect );

if ( $created instanceof Red_Item ) {
$count++;
}

// Helps reduce memory usage
unset( $json['redirects'][ $pos ] );
Expand Down
7 changes: 6 additions & 1 deletion wp-content/plugins/redirection/models/permalinks.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct( $permalinks ) {
* @return void
*/
public function migrate( WP_Query $query ) {
global $wp;
global $wp, $wp_query;

if ( count( $this->permalinks ) === 0 ) {
return;
Expand All @@ -46,6 +46,8 @@ public function migrate( WP_Query $query ) {

$this->intercept_permalinks();

$query_copy = clone $query;

foreach ( $this->permalinks as $old ) {
// Set the current permalink
$this->current_permalink = $old;
Expand All @@ -72,6 +74,9 @@ public function migrate( WP_Query $query ) {
}
}

// Reset the query back to the original
// phpcs:ignore
$wp_query = $query_copy;
break;
}
}
Expand Down
10 changes: 8 additions & 2 deletions wp-content/plugins/redirection/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: johnny5
Donate link: https://redirection.me/donation/
Tags: redirect, htaccess, 301, 404, apache
Tested up to: 6.6.1
Stable tag: 5.5.0
Tested up to: 6.7
Stable tag: 5.5.1
License: GPLv3

Manage 301 redirects, track 404 errors, and improve your site. No knowledge of Apache or Nginx required.
Expand Down Expand Up @@ -182,6 +182,12 @@ The plugin works in a similar manner to how WordPress handles permalinks and sho

A x.1 version increase introduces new or updated features and can be considered to contain 'breaking' changes. A x.x.1 increase is purely a bug fix and introduces no new features, and can be considered as containing no breaking changes.

= 5.5.1 =
* Fix problem with category pages and permalink migration
* Don't report invalid JSON import as successful
* Exclude CPTs without URLs for monitoring
* Update for WP 6.7

= 5.5.0 =
* Multiple 'URL and WP page type' redirects will now work
* Translations now use WP core
Expand Down
2 changes: 1 addition & 1 deletion wp-content/plugins/redirection/redirection-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function red_get_plugin_data( $plugin ) {
}

function red_get_post_types( $full = true ) {
$types = get_post_types( array( 'public' => true ), 'objects' );
$types = get_post_types( [ 'public' => true, 'rewrite' => false ], 'objects' );
$types[] = (object) array(
'name' => 'trash',
'label' => __( 'Trash', 'default' ),
Expand Down
4 changes: 2 additions & 2 deletions wp-content/plugins/redirection/redirection-version.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

define( 'REDIRECTION_VERSION', '5.5.0' );
define( 'REDIRECTION_VERSION', '5.5.1' );
define( 'REDIRECTION_MIN_WP', '6.4' );
define( 'REDIRECTION_BUILD', 'eff218e8a6050e14b616f8d6629e0ae4' );
define( 'REDIRECTION_BUILD', '08d49200baf486dd62bdff53420d0b5d' );
4 changes: 2 additions & 2 deletions wp-content/plugins/redirection/redirection.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion wp-content/plugins/redirection/redirection.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Redirection
Plugin URI: https://redirection.me/
Description: Manage all your 301 redirects and monitor 404 errors
Version: 5.5.0
Version: 5.5.1
Author: John Godley
Text Domain: redirection
Requires PHP: 7.0
Expand Down
12 changes: 11 additions & 1 deletion wp-content/plugins/revisionary/admin/admin-init_rvy.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,17 @@ function rvy_load_textdomain() {
if ( defined('RVY_TEXTDOMAIN_LOADED') )
return;

load_plugin_textdomain('revisionary', false, dirname(plugin_basename(REVISIONARY_FILE)) . '/languages');
if (did_action('init')) {
load_plugin_textdomain('revisionary', false, dirname(plugin_basename(REVISIONARY_FILE)) . '/languages');
} else {
add_action(
'init',
function() {
load_plugin_textdomain('revisionary', false, dirname(plugin_basename(REVISIONARY_FILE)) . '/languages');
},
5
);
}

define('RVY_TEXTDOMAIN_LOADED', true);
}
Expand Down
13 changes: 12 additions & 1 deletion wp-content/plugins/revisionary/admin/history_rvy.php
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,10 @@ public function actAjaxRevisionDiffs() {
return;
}

if (!current_user_can('edit_post', $revision_id) && !current_user_can('read_post', $revision_id)) {
return;
}

$return = array();
@set_time_limit( 0 );

Expand Down Expand Up @@ -854,7 +858,14 @@ private function prepare_revisions_for_js( $post, $selected_revision_id, $from =

$revisions = [$post->ID => $post] + $revisions;

foreach ( $revisions as $revision ) {
$is_administrator = is_content_administrator_rvy();

foreach ( $revisions as $k => $revision ) {
if (!$is_administrator && !current_user_can('edit_post', $revision->ID) && !current_user_can('read_post', $revision->ID)) {
unset($revisions[$k]);
continue;
}

$modified = strtotime( $revision->post_modified );
$modified_gmt = strtotime( $revision->post_modified_gmt . ' +0000' );

Expand Down
Binary file modified wp-content/plugins/revisionary/languages/revisionary-es_ES.mo
Binary file not shown.
Loading

0 comments on commit 8289411

Please sign in to comment.