From b753fa107de24b06c76ce17a34806b9dd8b68e42 Mon Sep 17 00:00:00 2001 From: Kolja Nolte Date: Fri, 8 Nov 2024 02:03:24 +0000 Subject: [PATCH] Fixed changelog URL in README.md Signed-off-by: mavrokordato --- README.md | 2 +- acf.php | 323 ++++++++---------- assets/inc/select2/3/select2-spinner.gif | Bin assets/inc/select2/3/select2.css | 0 assets/inc/select2/3/select2.js | 0 assets/inc/select2/3/select2.min.js | 0 assets/inc/select2/3/select2.png | Bin assets/inc/select2/3/select2x2.png | Bin assets/inc/select2/4/select2.css | 0 assets/inc/select2/4/select2.full.js | 0 assets/inc/select2/4/select2.js | 0 assets/inc/select2/4/select2.min.css | 0 assets/inc/select2/4/select2.min.js | 0 .../timepicker/jquery-ui-timepicker-addon.css | 0 .../timepicker/jquery-ui-timepicker-addon.js | 0 .../jquery-ui-timepicker-addon.min.css | 0 .../jquery-ui-timepicker-addon.min.js | 0 includes/admin/admin-tools.php | 2 +- includes/fields.php | 2 +- includes/fields/class-acf-field.php | 0 includes/forms/form-front.php | 2 +- includes/local-meta.php | 0 includes/loop.php | 2 +- includes/revisions.php | 2 +- includes/validation.php | 2 +- pro/blocks.php | 0 pro/locations/class-acf-location-block.php | 0 27 files changed, 143 insertions(+), 194 deletions(-) mode change 100644 => 100755 assets/inc/select2/3/select2-spinner.gif mode change 100644 => 100755 assets/inc/select2/3/select2.css mode change 100644 => 100755 assets/inc/select2/3/select2.js mode change 100644 => 100755 assets/inc/select2/3/select2.min.js mode change 100644 => 100755 assets/inc/select2/3/select2.png mode change 100644 => 100755 assets/inc/select2/3/select2x2.png mode change 100644 => 100755 assets/inc/select2/4/select2.css mode change 100644 => 100755 assets/inc/select2/4/select2.full.js mode change 100644 => 100755 assets/inc/select2/4/select2.js mode change 100644 => 100755 assets/inc/select2/4/select2.min.css mode change 100644 => 100755 assets/inc/select2/4/select2.min.js mode change 100644 => 100755 assets/inc/timepicker/jquery-ui-timepicker-addon.css mode change 100644 => 100755 assets/inc/timepicker/jquery-ui-timepicker-addon.js mode change 100644 => 100755 assets/inc/timepicker/jquery-ui-timepicker-addon.min.css mode change 100644 => 100755 assets/inc/timepicker/jquery-ui-timepicker-addon.min.js mode change 100644 => 100755 includes/fields.php mode change 100644 => 100755 includes/fields/class-acf-field.php mode change 100644 => 100755 includes/local-meta.php mode change 100644 => 100755 pro/blocks.php mode change 100644 => 100755 pro/locations/class-acf-location-block.php diff --git a/README.md b/README.md index 651fc1c..5cde22b 100644 --- a/README.md +++ b/README.md @@ -28,4 +28,4 @@ If you appreciate [WordPress Premium's](https://www.wordpress-premium.net/) serv --- -For other version changelogs, check the [official website](https://rankmath.com/changelog/pro/). +For other version changelogs, check the [official website](https://www.advancedcustomfields.com/changelog/)). diff --git a/acf.php b/acf.php index e41b5b0..7f4ccc8 100644 --- a/acf.php +++ b/acf.php @@ -11,7 +11,7 @@ * Description: Customize WordPress with powerful, professional and intuitive fields. * Version: 6.3.10 * Author: WP Engine - * Author URI: https://wpengine.com + * 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 @@ -20,40 +20,39 @@ */ if ( ! defined( 'ABSPATH' ) ) { - exit(); // Exit if accessed directly. + exit; // Exit if accessed directly. } -@ini_set( 'display_errors', 0 ); - -$lic_data = base64_encode( maybe_serialize( [ - 'key' => '********', - 'url' => home_url(), -] ) ); - -update_option( 'acf_pro_license', $lic_data ); -update_option( 'acf_pro_license_status', [ 'status' => 'active', 'next_check' => time() * 9 ] ); - -add_action( 'init', - function () { - add_filter( 'pre_http_request', - function ( $pre, $url, $request_args ) { - if ( is_string( $url ) && strpos( $url, 'https://connect.advancedcustomfields.com/' ) !== false ) { - return [ 'response' => [ 'code' => 200, 'message' => 'OK' ] ]; - } - - return $pre; - }, - 10, - 3 ); - } ); +//nulled raz0r +$lic_data = base64_encode( + maybe_serialize( + array( + 'key' => '********', + 'url' => home_url(), + ) + ) +); +update_option('acf_pro_license', $lic_data); +update_option('acf_pro_license_status', array('status' => 'active', 'next_check' => time() * 9)); +add_action('init', function () { + add_filter('pre_http_request', function ($pre, $url, $request_args) { + if (is_string($url) && strpos($url, 'https://connect.advancedcustomfields.com/') !== false) { + return array('response' => array('code' => 200, 'message' => 'OK')); + } + return $pre; + }, 10, 3); +}); delete_site_transient( 'update_plugins' ); delete_transient( 'acf_plugin_updates' ); if ( ! class_exists( 'ACF' ) ) { + /** * The main ACF class */ + #[AllowDynamicProperties] class ACF { + /** * The plugin version number. * @@ -66,21 +65,21 @@ class ACF { * * @var array */ - public $settings = []; + public $settings = array(); /** * The plugin data array. * * @var array */ - public $data = []; + public $data = array(); /** * Storage for class instances. * * @var array */ - public $instances = []; + public $instances = array(); /** * A dummy constructor to ensure ACF is only setup once. @@ -99,6 +98,7 @@ public function __construct() { * @since 5.0.0 */ public function initialize() { + // Define constants. $this->define( 'ACF', true ); $this->define( 'ACF_PATH', plugin_dir_path( __FILE__ ) ); @@ -106,14 +106,13 @@ public function initialize() { $this->define( 'ACF_VERSION', $this->version ); $this->define( 'ACF_MAJOR_VERSION', 6 ); $this->define( 'ACF_FIELD_API_VERSION', 5 ); - $this->define( 'ACF_UPGRADE_VERSION', - '5.5.0' ); // Highest version with an upgrade routine. See upgrades.php. + $this->define( 'ACF_UPGRADE_VERSION', '5.5.0' ); // Highest version with an upgrade routine. See upgrades.php. // Register activation hook. - register_activation_hook( __FILE__, [ $this, 'acf_plugin_activated' ] ); + register_activation_hook( __FILE__, array( $this, 'acf_plugin_activated' ) ); // Define settings. - $this->settings = [ + $this->settings = array( 'name' => __( 'Advanced Custom Fields', 'acf' ), 'slug' => dirname( ACF_BASENAME ), 'version' => ACF_VERSION, @@ -129,7 +128,7 @@ public function initialize() { 'local' => true, 'json' => true, 'save_json' => '', - 'load_json' => [], + 'load_json' => array(), 'default_language' => '', 'current_language' => '', 'capability' => 'manage_options', @@ -154,7 +153,7 @@ public function initialize() { 'enable_bidirection' => true, 'enable_block_bindings' => true, 'enable_meta_box_cb_edit' => true, - ]; + ); // Include utility functions. include_once ACF_PATH . 'includes/acf-utility-functions.php'; @@ -262,18 +261,14 @@ public function initialize() { } // Add actions. - add_action( 'init', [ $this, 'register_post_status' ], 4 ); - add_action( 'init', [ $this, 'init' ], 5 ); - add_action( 'init', [ $this, 'register_post_types' ], 5 ); - add_action( 'activated_plugin', [ $this, 'deactivate_other_instances' ] ); - add_action( 'pre_current_active_plugins', - [ - $this, - 'plugin_deactivated_notice', - ] ); + add_action( 'init', array( $this, 'register_post_status' ), 4 ); + add_action( 'init', array( $this, 'init' ), 5 ); + add_action( 'init', array( $this, 'register_post_types' ), 5 ); + add_action( 'activated_plugin', array( $this, 'deactivate_other_instances' ) ); + add_action( 'pre_current_active_plugins', array( $this, 'plugin_deactivated_notice' ) ); // Add filters. - add_filter( 'posts_where', [ $this, 'posts_where' ], 10, 2 ); + add_filter( 'posts_where', array( $this, 'posts_where' ), 10, 2 ); } /** @@ -283,6 +278,7 @@ public function initialize() { * @since 5.0.0 */ public function init() { + // Bail early if called directly from functions.php or plugin file. if ( ! did_action( 'plugins_loaded' ) ) { return; @@ -354,11 +350,9 @@ public function init() { * Fires after field types have been included. * * @date 28/09/13 - * - * @param int ACF_FIELD_API_VERSION The field API version. - * * @since 5.0.0 * + * @param int ACF_FIELD_API_VERSION The field API version. */ do_action( 'acf/include_field_types', ACF_FIELD_API_VERSION ); @@ -389,11 +383,9 @@ public function init() { * Fires after location types have been included. * * @date 28/09/13 - * - * @param int ACF_FIELD_API_VERSION The field API version. - * * @since 5.0.0 * + * @param int ACF_FIELD_API_VERSION The field API version. */ do_action( 'acf/include_location_rules', ACF_FIELD_API_VERSION ); @@ -401,31 +393,27 @@ public function init() { * Fires during initialization. Used to add local fields. * * @date 28/09/13 - * - * @param int ACF_FIELD_API_VERSION The field API version. - * * @since 5.0.0 * + * @param int ACF_FIELD_API_VERSION The field API version. */ do_action( 'acf/include_fields', ACF_FIELD_API_VERSION ); /** * Fires during initialization. Used to add local post types. * - * @param int ACF_MAJOR_VERSION The major version of ACF. - * * @since 6.1 * + * @param int ACF_MAJOR_VERSION The major version of ACF. */ do_action( 'acf/include_post_types', ACF_MAJOR_VERSION ); /** * Fires during initialization. Used to add local taxonomies. * - * @param int ACF_MAJOR_VERSION The major version of ACF. - * * @since 6.1 * + * @param int ACF_MAJOR_VERSION The major version of ACF. */ do_action( 'acf/include_taxonomies', ACF_MAJOR_VERSION ); @@ -437,23 +425,23 @@ public function init() { // If we're ACF free, register the updater. if ( function_exists( 'acf_is_pro' ) && ! acf_is_pro() ) { - acf_register_plugin_update( [ - 'id' => 'acf', - 'slug' => acf_get_setting( 'slug' ), - 'basename' => acf_get_setting( 'basename' ), - 'version' => acf_get_setting( 'version' ), - ] ); + acf_register_plugin_update( + array( + 'id' => 'acf', + 'slug' => acf_get_setting( 'slug' ), + 'basename' => acf_get_setting( 'basename' ), + 'version' => acf_get_setting( 'version' ), + ) + ); } /** * Fires after ACF is completely "initialized". * * @date 28/09/13 - * - * @param int ACF_MAJOR_VERSION The major version of ACF. - * * @since 5.0.0 * + * @param int ACF_MAJOR_VERSION The major version of ACF. */ do_action( 'acf/init', ACF_MAJOR_VERSION ); } @@ -468,9 +456,10 @@ public function register_post_types() { $cap = acf_get_setting( 'capability' ); // Register the Field Group post type. - register_post_type( 'acf-field-group', - [ - 'labels' => [ + register_post_type( + 'acf-field-group', + array( + 'labels' => array( 'name' => __( 'Field Groups', 'acf' ), 'singular_name' => __( 'Field Group', 'acf' ), 'add_new' => __( 'Add New', 'acf' ), @@ -481,28 +470,30 @@ public function register_post_types() { 'search_items' => __( 'Search Field Groups', 'acf' ), 'not_found' => __( 'No Field Groups found', 'acf' ), 'not_found_in_trash' => __( 'No Field Groups found in Trash', 'acf' ), - ], + ), 'public' => false, 'hierarchical' => true, 'show_ui' => true, 'show_in_menu' => false, '_builtin' => false, 'capability_type' => 'post', - 'capabilities' => [ + 'capabilities' => array( 'edit_post' => $cap, 'delete_post' => $cap, 'edit_posts' => $cap, 'delete_posts' => $cap, - ], + ), 'supports' => false, 'rewrite' => false, 'query_var' => false, - ] ); + ) + ); // Register the Field post type. - register_post_type( 'acf-field', - [ - 'labels' => [ + register_post_type( + 'acf-field', + array( + 'labels' => array( 'name' => __( 'Fields', 'acf' ), 'singular_name' => __( 'Field', 'acf' ), 'add_new' => __( 'Add New', 'acf' ), @@ -513,23 +504,24 @@ public function register_post_types() { 'search_items' => __( 'Search Fields', 'acf' ), 'not_found' => __( 'No Fields found', 'acf' ), 'not_found_in_trash' => __( 'No Fields found in Trash', 'acf' ), - ], + ), 'public' => false, 'hierarchical' => true, 'show_ui' => false, 'show_in_menu' => false, '_builtin' => false, 'capability_type' => 'post', - 'capabilities' => [ + 'capabilities' => array( 'edit_post' => $cap, 'delete_post' => $cap, 'edit_posts' => $cap, 'delete_posts' => $cap, - ], - 'supports' => [ 'title' ], + ), + 'supports' => array( 'title' ), 'rewrite' => false, 'query_var' => false, - ] ); + ) + ); } /** @@ -539,21 +531,20 @@ public function register_post_types() { * @since 5.3.2 */ public function register_post_status() { + // Register the Inactive post status. - register_post_status( 'acf-disabled', - [ - 'label' => _x( 'Inactive', - 'post status', - 'acf' ), - 'public' => true, - 'exclude_from_search' => false, - 'show_in_admin_all_list' => true, - 'show_in_admin_status_list' => true, + register_post_status( + 'acf-disabled', + array( + 'label' => _x( 'Inactive', 'post status', 'acf' ), + 'public' => true, + 'exclude_from_search' => false, + 'show_in_admin_all_list' => true, + 'show_in_admin_status_list' => true, /* translators: counts for inactive field groups */ - 'label_count' => _n_noop( 'Inactive (%s)', - 'Inactive (%s)', - 'acf' ), - ] ); + 'label_count' => _n_noop( 'Inactive (%s)', 'Inactive (%s)', 'acf' ), + ) + ); } /** @@ -563,12 +554,7 @@ public function register_post_status() { * @param string $plugin The plugin being activated. */ public function deactivate_other_instances( $plugin ) { - if ( ! in_array( $plugin, - [ - 'advanced-custom-fields/acf.php', - 'advanced-custom-fields-pro/acf.php', - ], - true ) ) { + if ( ! in_array( $plugin, array( 'advanced-custom-fields/acf.php', 'advanced-custom-fields-pro/acf.php' ), true ) ) { return; } @@ -582,20 +568,16 @@ public function deactivate_other_instances( $plugin ) { } if ( is_multisite() && is_network_admin() ) { - $active_plugins = (array) get_site_option( 'active_sitewide_plugins', - [] ); + $active_plugins = (array) get_site_option( 'active_sitewide_plugins', array() ); $active_plugins = array_keys( $active_plugins ); } else { - $active_plugins = (array) get_option( 'active_plugins', [] ); + $active_plugins = (array) get_option( 'active_plugins', array() ); } foreach ( $active_plugins as $plugin_basename ) { if ( $plugin_to_deactivate === $plugin_basename ) { - set_transient( 'acf_deactivated_notice_id', - $deactivated_notice_id, - 1 * HOUR_IN_SECONDS ); + set_transient( 'acf_deactivated_notice_id', $deactivated_notice_id, 1 * HOUR_IN_SECONDS ); deactivate_plugins( $plugin_basename ); - return; } } @@ -606,34 +588,33 @@ public function deactivate_other_instances( $plugin ) { */ public function plugin_deactivated_notice() { $deactivated_notice_id = (int) get_transient( 'acf_deactivated_notice_id' ); - if ( ! in_array( $deactivated_notice_id, [ 1, 2 ], true ) ) { + if ( ! in_array( $deactivated_notice_id, array( 1, 2 ), true ) ) { return; } - $message = __( "Advanced Custom Fields and Advanced Custom Fields PRO should not be active at the same time. We've automatically deactivated Advanced Custom Fields.", - 'acf' ); + $message = __( "Advanced Custom Fields and Advanced Custom Fields PRO should not be active at the same time. We've automatically deactivated Advanced Custom Fields.", 'acf' ); if ( 2 === $deactivated_notice_id ) { - $message = __( "Advanced Custom Fields and Advanced Custom Fields PRO should not be active at the same time. We've automatically deactivated Advanced Custom Fields PRO.", - 'acf' ); + $message = __( "Advanced Custom Fields and Advanced Custom Fields PRO should not be active at the same time. We've automatically deactivated Advanced Custom Fields PRO.", 'acf' ); } + ?> -
-

-
- +

+ + prepare( " AND {$wpdb->posts}.post_name = %s", - $field_key ); + $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_name = %s", $field_key ); } // Add custom "acf_field_name" arg. if ( $field_name ) { - $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_excerpt = %s", - $field_name ); + $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_excerpt = %s", $field_name ); } // Add custom "acf_group_key" arg. if ( $group_key ) { - $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_name = %s", - $group_key ); + $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_name = %s", $group_key ); } // Add custom "acf_post_type_key" arg. if ( $post_type_key ) { - $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_name = %s", - $post_type_key ); + $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_name = %s", $post_type_key ); } // Add custom "acf_taxonomy_key" arg. if ( $taxonomy_key ) { - $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_name = %s", - $taxonomy_key ); + $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_name = %s", $taxonomy_key ); } return $where; @@ -681,13 +657,11 @@ public function posts_where( $where, $wp_query ) { * Defines a constant if doesnt already exist. * * @date 3/5/17 - * - * @param string $name The constant name. - * @param mixed $value The constant value. - * - * @return void * @since 5.5.13 * + * @param string $name The constant name. + * @param mixed $value The constant value. + * @return void */ public function define( $name, $value = true ) { if ( ! defined( $name ) ) { @@ -699,12 +673,10 @@ public function define( $name, $value = true ) { * Returns true if a setting exists for this name. * * @date 2/2/18 - * - * @param string $name The setting name. - * - * @return boolean * @since 5.6.5 * + * @param string $name The setting name. + * @return boolean */ public function has_setting( $name ) { return isset( $this->settings[ $name ] ); @@ -714,12 +686,10 @@ public function has_setting( $name ) { * Returns a setting or null if doesn't exist. * * @date 28/09/13 - * - * @param string $name The setting name. - * - * @return mixed * @since 5.0.0 * + * @param string $name The setting name. + * @return mixed */ public function get_setting( $name ) { return isset( $this->settings[ $name ] ) ? $this->settings[ $name ] : null; @@ -729,17 +699,14 @@ public function get_setting( $name ) { * Updates a setting for the given name and value. * * @date 28/09/13 - * - * @param string $name The setting name. - * @param mixed $value The setting value. - * - * @return true * @since 5.0.0 * + * @param string $name The setting name. + * @param mixed $value The setting value. + * @return true */ public function update_setting( $name, $value ) { $this->settings[ $name ] = $value; - return true; } @@ -747,12 +714,10 @@ public function update_setting( $name, $value ) { * Returns data or null if doesn't exist. * * @date 28/09/13 - * - * @param string $name The data name. - * - * @return mixed * @since 5.0.0 * + * @param string $name The data name. + * @return mixed */ public function get_data( $name ) { return isset( $this->data[ $name ] ) ? $this->data[ $name ] : null; @@ -762,13 +727,11 @@ public function get_data( $name ) { * Sets data for the given name and value. * * @date 28/09/13 - * - * @param string $name The data name. - * @param mixed $value The data value. - * - * @return void * @since 5.0.0 * + * @param string $name The data name. + * @param mixed $value The data value. + * @return void */ public function set_data( $name, $value ) { $this->data[ $name ] = $value; @@ -778,16 +741,13 @@ public function set_data( $name, $value ) { * Returns an instance or null if doesn't exist. * * @date 13/2/18 - * - * @param string $class The instance class name. - * - * @return object * @since 5.6.9 * + * @param string $class The instance class name. + * @return object */ public function get_instance( $class ) { $name = strtolower( $class ); - return isset( $this->instances[ $name ] ) ? $this->instances[ $name ] : null; } @@ -795,18 +755,15 @@ public function get_instance( $class ) { * Creates and stores an instance of the given class. * * @date 13/2/18 - * - * @param string $class The instance class name. - * - * @return object * @since 5.6.9 * + * @param string $class The instance class name. + * @return object */ public function new_instance( $class ) { $instance = new $class(); $name = strtolower( $class ); $this->instances[ $name ] = $instance; - return $instance; } @@ -814,27 +771,23 @@ public function new_instance( $class ) { * Magic __isset method for backwards compatibility. * * @date 24/4/20 - * - * @param string $key Key name. - * - * @return boolean * @since 5.9.0 * + * @param string $key Key name. + * @return boolean */ public function __isset( $key ) { - return in_array( $key, [ 'locations', 'json' ], true ); + return in_array( $key, array( 'locations', 'json' ), true ); } /** * Magic __get method for backwards compatibility. * * @date 24/4/20 - * - * @param string $key Key name. - * - * @return mixed * @since 5.9.0 * + * @param string $key Key name. + * @return mixed */ public function __get( $key ) { switch ( $key ) { @@ -843,7 +796,6 @@ public function __get( $key ) { case 'json': return acf_get_instance( 'ACF_Local_JSON' ); } - return null; } @@ -875,26 +827,24 @@ public function acf_plugin_activated() { * * Example: * - * @return ACF\Updater The singleton instance of Updater. * @since 5.5.12 * + * @return ACF\Updater The singleton instance of Updater. */ function acf_updates() { global $acf_updates; if ( ! isset( $acf_updates ) ) { $acf_updates = new ACF\Updater(); } - return $acf_updates; } /** * Alias of acf_updates()->add_plugin(). * - * @param array $plugin Plugin data array. - * * @since 5.5.10 * + * @param array $plugin Plugin data array. */ function acf_register_plugin_update( $plugin ) { acf_updates()->add_plugin( $plugin ); @@ -903,11 +853,11 @@ function acf_register_plugin_update( $plugin ) { /** * An ACF specific getter to replace `home_url` in our license checks to ensure we can avoid third party filters. * - * @return string $home_url The output from home_url, sans known third party filters which cause license activation issues. + * @since 6.0.1 * @since 6.2.8 - Renamed to acf_pro_get_home_url to match pro exclusive function naming. * @since 6.3.10 - Renamed to acf_get_home_url now updater logic applies to free. * - * @since 6.0.1 + * @return string $home_url The output from home_url, sans known third party filters which cause license activation issues. */ function acf_get_home_url() { // Disable WPML and TranslatePress's home url overrides for our license check. @@ -938,9 +888,9 @@ function acf_get_home_url() { * Example: * * @date 4/09/13 - * @return ACF * @since 4.3.0 * + * @return ACF */ function acf() { global $acf; @@ -950,7 +900,6 @@ function acf() { $acf = new ACF(); $acf->initialize(); } - return $acf; } diff --git a/assets/inc/select2/3/select2-spinner.gif b/assets/inc/select2/3/select2-spinner.gif old mode 100644 new mode 100755 diff --git a/assets/inc/select2/3/select2.css b/assets/inc/select2/3/select2.css old mode 100644 new mode 100755 diff --git a/assets/inc/select2/3/select2.js b/assets/inc/select2/3/select2.js old mode 100644 new mode 100755 diff --git a/assets/inc/select2/3/select2.min.js b/assets/inc/select2/3/select2.min.js old mode 100644 new mode 100755 diff --git a/assets/inc/select2/3/select2.png b/assets/inc/select2/3/select2.png old mode 100644 new mode 100755 diff --git a/assets/inc/select2/3/select2x2.png b/assets/inc/select2/3/select2x2.png old mode 100644 new mode 100755 diff --git a/assets/inc/select2/4/select2.css b/assets/inc/select2/4/select2.css old mode 100644 new mode 100755 diff --git a/assets/inc/select2/4/select2.full.js b/assets/inc/select2/4/select2.full.js old mode 100644 new mode 100755 diff --git a/assets/inc/select2/4/select2.js b/assets/inc/select2/4/select2.js old mode 100644 new mode 100755 diff --git a/assets/inc/select2/4/select2.min.css b/assets/inc/select2/4/select2.min.css old mode 100644 new mode 100755 diff --git a/assets/inc/select2/4/select2.min.js b/assets/inc/select2/4/select2.min.js old mode 100644 new mode 100755 diff --git a/assets/inc/timepicker/jquery-ui-timepicker-addon.css b/assets/inc/timepicker/jquery-ui-timepicker-addon.css old mode 100644 new mode 100755 diff --git a/assets/inc/timepicker/jquery-ui-timepicker-addon.js b/assets/inc/timepicker/jquery-ui-timepicker-addon.js old mode 100644 new mode 100755 diff --git a/assets/inc/timepicker/jquery-ui-timepicker-addon.min.css b/assets/inc/timepicker/jquery-ui-timepicker-addon.min.css old mode 100644 new mode 100755 diff --git a/assets/inc/timepicker/jquery-ui-timepicker-addon.min.js b/assets/inc/timepicker/jquery-ui-timepicker-addon.min.js old mode 100644 new mode 100755 diff --git a/includes/admin/admin-tools.php b/includes/admin/admin-tools.php index 60239a7..0185f0a 100644 --- a/includes/admin/admin-tools.php +++ b/includes/admin/admin-tools.php @@ -266,7 +266,7 @@ public function metabox_html( $post, $metabox ) { } // initialize - @acf()->admin_tools = (new acf_admin_tools()); + acf()->admin_tools = new acf_admin_tools(); endif; // class_exists check diff --git a/includes/fields.php b/includes/fields.php old mode 100644 new mode 100755 index 5b7ea6f..f391382 --- a/includes/fields.php +++ b/includes/fields.php @@ -114,7 +114,7 @@ function get_field_types() { // initialize - @acf()->fields = new acf_fields(); + acf()->fields = new acf_fields(); endif; // class_exists check diff --git a/includes/fields/class-acf-field.php b/includes/fields/class-acf-field.php old mode 100644 new mode 100755 diff --git a/includes/forms/form-front.php b/includes/forms/form-front.php index ece6126..1e29d6e 100644 --- a/includes/forms/form-front.php +++ b/includes/forms/form-front.php @@ -543,7 +543,7 @@ function render_form( $args = array() ) { } // initialize - @acf()->form_front = new acf_form_front(); + acf()->form_front = new acf_form_front(); endif; // class_exists check diff --git a/includes/local-meta.php b/includes/local-meta.php old mode 100644 new mode 100755 diff --git a/includes/loop.php b/includes/loop.php index e04b879..8fd85b2 100644 --- a/includes/loop.php +++ b/includes/loop.php @@ -228,7 +228,7 @@ function remove_loop( $i = 'active' ) { } // initialize - @acf()->loop = new acf_loop(); + acf()->loop = new acf_loop(); endif; // class_exists check diff --git a/includes/revisions.php b/includes/revisions.php index 27f4b3e..0007580 100644 --- a/includes/revisions.php +++ b/includes/revisions.php @@ -415,7 +415,7 @@ function acf_validate_post_id( $post_id, $_post_id ) { } // initialize - @acf()->revisions = new acf_revisions(); + acf()->revisions = new acf_revisions(); endif; // class_exists check diff --git a/includes/validation.php b/includes/validation.php index d47d71b..fe7088c 100644 --- a/includes/validation.php +++ b/includes/validation.php @@ -182,7 +182,7 @@ public function acf_validate_save_post() { } // initialize - @acf()->validation = new acf_validation(); + acf()->validation = new acf_validation(); endif; // class_exists check diff --git a/pro/blocks.php b/pro/blocks.php old mode 100644 new mode 100755 diff --git a/pro/locations/class-acf-location-block.php b/pro/locations/class-acf-location-block.php old mode 100644 new mode 100755