Skip to content

Commit

Permalink
Upgrade plugins
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Abraham <cjyabraham@gmail.com>
  • Loading branch information
cjyabraham committed Oct 10, 2024
1 parent 3976a6f commit e7197ba
Showing 531 changed files with 204,229 additions and 119,494 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@
"wpackagist-plugin/code-syntax-block": "*",
"wpackagist-plugin/flying-pages": "^2.0.8",
"wpackagist-plugin/flying-scripts": "^1.1.7",
"wpackagist-plugin/pantheon-advanced-page-cache": "^1.0.0",
"wpackagist-plugin/pantheon-advanced-page-cache": "^2",
"wpackagist-plugin/publishpress-checklists":"^2.5.3",
"wpackagist-plugin/post-meta-controls": "^1.3.3",
"wpackagist-plugin/redirection": "^5",
@@ -38,7 +38,7 @@
"wpackagist-plugin/svg-autocrop": "^0.1.0",
"wpackagist-plugin/wp-mail-smtp": "^4",
"wpackagist-plugin/leadin":"*",
"wpackagist-plugin/find-my-blocks":"^3.5.4",
"wpackagist-plugin/find-my-blocks":"^4",
"wpackagist-plugin/public-post-preview":"^2",
"wpackagist-plugin/branded-social-images":"^1",
"wpackagist-plugin/wp-native-php-sessions": "^1.0.0"
104 changes: 57 additions & 47 deletions composer.lock

Large diffs are not rendered by default.

98 changes: 66 additions & 32 deletions web/wp-content/plugins/advanced-custom-fields-pro/acf.php
Original file line number Diff line number Diff line change
@@ -6,15 +6,17 @@
* @author WP Engine
*
* @wordpress-plugin
* Plugin Name: Advanced Custom Fields PRO
* Plugin URI: https://www.advancedcustomfields.com
* Description: Customize WordPress with powerful, professional and intuitive fields.
* Version: 6.2.0
* Author: WP Engine
* Author URI: https://wpengine.com/?utm_source=wordpress.org&utm_medium=referral&utm_campaign=plugin_directory&utm_content=advanced_custom_fields
* Update URI: https://www.advancedcustomfields.com/pro
* Text Domain: acf
* Domain Path: /lang
* Plugin Name: Advanced Custom Fields PRO
* Plugin URI: https://www.advancedcustomfields.com
* Description: Customize WordPress with powerful, professional and intuitive fields.
* Version: 6.3.8
* Author: WP Engine
* Author URI: https://wpengine.com/?utm_source=wordpress.org&utm_medium=referral&utm_campaign=plugin_directory&utm_content=advanced_custom_fields
* Update URI: false
* Text Domain: acf
* Domain Path: /lang
* Requires PHP: 7.4
* Requires at least: 6.0
*/

if ( ! defined( 'ABSPATH' ) ) {
@@ -34,7 +36,7 @@ class ACF {
*
* @var string
*/
public $version = '6.2.0';
public $version = '6.3.8';

/**
* The plugin settings array.
@@ -62,8 +64,6 @@ class ACF {
*
* @date 23/06/12
* @since 5.0.0
*
* @return void
*/
public function __construct() {
// Do nothing.
@@ -74,8 +74,6 @@ public function __construct() {
*
* @date 28/09/13
* @since 5.0.0
*
* @return void
*/
public function initialize() {

@@ -88,6 +86,9 @@ public function initialize() {
$this->define( 'ACF_FIELD_API_VERSION', 5 );
$this->define( 'ACF_UPGRADE_VERSION', '5.5.0' ); // Highest version with an upgrade routine. See upgrades.php.

// Register activation hook.
register_activation_hook( __FILE__, array( $this, 'acf_plugin_activated' ) );

// Define settings.
$this->settings = array(
'name' => __( 'Advanced Custom Fields', 'acf' ),
@@ -128,6 +129,7 @@ public function initialize() {
'preload_blocks' => true,
'enable_shortcode' => true,
'enable_bidirection' => true,
'enable_block_bindings' => true,
);

// Include utility functions.
@@ -141,6 +143,7 @@ public function initialize() {
// Include classes.
acf_include( 'includes/class-acf-data.php' );
acf_include( 'includes/class-acf-internal-post-type.php' );
acf_include( 'includes/class-acf-site-health.php' );
acf_include( 'includes/fields/class-acf-field.php' );
acf_include( 'includes/locations/abstract-acf-legacy-location.php' );
acf_include( 'includes/locations/abstract-acf-location.php' );
@@ -162,6 +165,14 @@ public function initialize() {
acf_include( 'includes/acf-input-functions.php' );
acf_include( 'includes/acf-wp-functions.php' );

// Override the shortcode default value based on the version when installed.
$first_activated_version = acf_get_version_when_first_activated();

// Only enable shortcode by default for versions prior to 6.3
if ( $first_activated_version && version_compare( $first_activated_version, '6.3', '>=' ) ) {
$this->settings['enable_shortcode'] = false;
}

// Include core.
acf_include( 'includes/fields.php' );
acf_include( 'includes/locations.php' );
@@ -175,7 +186,6 @@ public function initialize() {
acf_include( 'includes/loop.php' );
acf_include( 'includes/media.php' );
acf_include( 'includes/revisions.php' );
acf_include( 'includes/updates.php' );
acf_include( 'includes/upgrades.php' );
acf_include( 'includes/validation.php' );
acf_include( 'includes/rest-api.php' );
@@ -214,18 +224,21 @@ public function initialize() {
acf_include( 'includes/admin/admin-upgrade.php' );
}

// Include polyfill for < PHP7 unserialize.
if ( PHP_VERSION_ID < 70000 ) {
acf_include( 'vendor/polyfill-unserialize/src/Unserialize.php' );
acf_include( 'vendor/polyfill-unserialize/src/DisallowedClassesSubstitutor.php' );
}

// Include legacy.
acf_include( 'includes/legacy/legacy-locations.php' );

// Include PRO.
acf_include( 'pro/acf-pro.php' );

if ( is_admin() && function_exists( 'acf_is_pro' ) && ! acf_is_pro() ) {

// Include WPE update system.
acf_include( 'includes/class-PluginUpdater.php' );
acf_include( 'includes/acf-upgrades.php' );

acf_include( 'includes/admin/admin-options-pages-preview.php' );
}

// Add actions.
add_action( 'init', array( $this, 'register_post_status' ), 4 );
add_action( 'init', array( $this, 'init' ), 5 );
@@ -242,8 +255,6 @@ public function initialize() {
*
* @date 28/09/13
* @since 5.0.0
*
* @return void
*/
public function init() {

@@ -308,6 +319,7 @@ public function init() {
acf_include( 'includes/fields/class-acf-field-date_time_picker.php' );
acf_include( 'includes/fields/class-acf-field-time_picker.php' );
acf_include( 'includes/fields/class-acf-field-color_picker.php' );
acf_include( 'includes/fields/class-acf-field-icon_picker.php' );
acf_include( 'includes/fields/class-acf-field-message.php' );
acf_include( 'includes/fields/class-acf-field-accordion.php' );
acf_include( 'includes/fields/class-acf-field-tab.php' );
@@ -384,6 +396,12 @@ public function init() {
*/
do_action( 'acf/include_taxonomies', ACF_MAJOR_VERSION );

// If we're on 6.5 or newer, load block bindings. This will move to an autoloader in 6.3.
if ( version_compare( get_bloginfo( 'version' ), '6.5-beta1', '>=' ) ) {
acf_include( 'includes/Blocks/Bindings.php' );
new ACF\Blocks\Bindings();
}

/**
* Fires after ACF is completely "initialized".
*
@@ -400,8 +418,6 @@ public function init() {
*
* @date 22/10/2015
* @since 5.3.2
*
* @return void
*/
public function register_post_types() {
$cap = acf_get_setting( 'capability' );
@@ -480,8 +496,6 @@ public function register_post_types() {
*
* @date 22/10/2015
* @since 5.3.2
*
* @return void
*/
public function register_post_status() {

@@ -612,7 +626,7 @@ public function posts_where( $where, $wp_query ) {
* @date 3/5/17
* @since 5.5.13
*
* @param string $name The constant name.
* @param string $name The constant name.
* @param mixed $value The constant value.
* @return void
*/
@@ -654,7 +668,7 @@ public function get_setting( $name ) {
* @date 28/09/13
* @since 5.0.0
*
* @param string $name The setting name.
* @param string $name The setting name.
* @param mixed $value The setting value.
* @return true
*/
@@ -682,7 +696,7 @@ public function get_data( $name ) {
* @date 28/09/13
* @since 5.0.0
*
* @param string $name The data name.
* @param string $name The data name.
* @param mixed $value The data value.
* @return void
*/
@@ -727,7 +741,7 @@ public function new_instance( $class ) {
* @since 5.9.0
*
* @param string $key Key name.
* @return bool
* @return boolean
*/
public function __isset( $key ) {
return in_array( $key, array( 'locations', 'json' ), true );
@@ -751,6 +765,27 @@ public function __get( $key ) {
}
return null;
}

/**
* Plugin Activation Hook
*
* @since 6.2.6
*/
public function acf_plugin_activated() {
// Set the first activated version of ACF.
if ( null === get_option( 'acf_first_activated_version', null ) ) {
// If acf_version is set, this isn't the first activated version, so leave it unset so it's legacy.
if ( null === get_option( 'acf_version', null ) ) {
update_option( 'acf_first_activated_version', ACF_VERSION, true );

do_action( 'acf/first_activated' );
}
}

if ( acf_is_pro() ) {
do_action( 'acf/activated_pro' );
}
}
}

/**
@@ -777,5 +812,4 @@ function acf() {

// Instantiate.
acf();

} // class_exists check
Loading

0 comments on commit e7197ba

Please sign in to comment.