Changeset 2687878
- Timestamp:
- 03/03/2022 12:27:32 AM (4 years ago)
- Location:
- acf-to-rest-api/trunk
- Files:
-
- 3 edited
-
class-acf-to-rest-api.php (modified) (3 diffs)
-
composer.json (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
acf-to-rest-api/trunk/class-acf-to-rest-api.php
r2405721 r2687878 5 5 * Author: Aires Gonçalves 6 6 * Author URI: http://github.com/airesvsg 7 * Version: 3.3. 27 * Version: 3.3.3 8 8 * Plugin URI: http://github.com/airesvsg/acf-to-rest-api 9 9 */ … … 17 17 class ACF_To_REST_API { 18 18 19 const VERSION = '3.3. 2';19 const VERSION = '3.3.3'; 20 20 21 21 private static $old_request_version = 2; … … 68 68 69 69 private static function hooks() { 70 $acf_plugin_version = get_option( 'acf_version' ); 71 $hook_type = $acf_plugin_version >= '5.12' ? 'rest_pre_dispatch' : 'rest_api_init'; 72 70 73 add_action( 'init', array( __CLASS__, 'load_plugin_textdomain' ) ); 71 72 74 if ( self::is_plugin_active( 'all' ) ) { 73 add_action( 'rest_api_init', array( __CLASS__, 'create_rest_routes' ), 10 );75 add_action( $hook_type, array( __CLASS__, 'create_rest_routes' ), 10 ); 74 76 if ( self::$default_request_version == self::handle_request_version() ) { 75 77 ACF_To_REST_API_ACF_Field_Settings::hooks(); -
acf-to-rest-api/trunk/composer.json
r2405721 r2687878 3 3 "description": "Exposes Advanced Custom Fields Endpoints in the WordPress REST API", 4 4 "type": "wordpress-plugin", 5 "version": "3.3. 2",5 "version": "3.3.3", 6 6 "keywords": ["wordpress", "wp", "rest-api", "acf", "wp-api", "json", "wordpres-plugin", "fields"], 7 7 "homepage": "https://github.com/airesvsg/acf-to-rest-api", -
acf-to-rest-api/trunk/readme.txt
r2678547 r2687878 1 1 === ACF to REST API === 2 2 Contributors: airesvsg 3 Donate link: https://www.paypal.com/ donate?hosted_button_id=P4DVDKW4ZV7GE&source=url3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=E5M7HDWNPFVF4&lc=BR&item_name=Aires%20Goncalves&no_note=0¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest 4 4 Tags: acf, api, rest, wp-api, wp-rest-api, json, wp, wordpress, wp-rest-api, wordpress-rest-api 5 5 Requires at least: 4.6 6 Tested up to: 5. 96 Tested up to: 5.4.2 7 7 Stable tag: 3.3.2 8 8 License: GPLv2 or later … … 21 21 22 22 == Changelog == 23 24 = 3.3.3 = 25 fix issue with ACF 5.12 ( https://github.com/airesvsg/acf-to-rest-api/issues/398 ) - Thanks to Jack Pallot 23 26 24 27 = 3.3.2 =
Note: See TracChangeset
for help on using the changeset viewer.