Skip to content

Commit

Permalink
Merge pull request #220 from PRX/plugin-updates-june-2024
Browse files Browse the repository at this point in the history
Update plugins June 2024
  • Loading branch information
brandonhundt authored Jul 8, 2024
2 parents 128ad8b + 79b82a2 commit aa0868d
Show file tree
Hide file tree
Showing 442 changed files with 83,478 additions and 44,991 deletions.
24 changes: 20 additions & 4 deletions wp-content/plugins/advanced-custom-fields-pro/acf.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
* Plugin Name: Advanced Custom Fields PRO
* Plugin URI: https://www.advancedcustomfields.com
* Description: Customize WordPress with powerful, professional and intuitive fields.
* Version: 6.2.9
* Version: 6.3.1.2
* 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
* Requires PHP: 7.0
* Requires at least: 5.8
* Requires PHP: 7.4
* Requires at least: 6.0
*/

if ( ! defined( 'ABSPATH' ) ) {
Expand All @@ -36,7 +36,7 @@ class ACF {
*
* @var string
*/
public $version = '6.2.9';
public $version = '6.3.1.2';

/**
* The plugin settings array.
Expand Down Expand Up @@ -143,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' );
Expand All @@ -164,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' );
Expand Down Expand Up @@ -305,6 +314,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' );
Expand Down Expand Up @@ -762,8 +772,14 @@ public function acf_plugin_activated() {
// 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' );
}
}
}

Expand Down

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.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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.

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

Large diffs are not rendered by default.

Loading

0 comments on commit aa0868d

Please sign in to comment.