@@ -15,7 +15,7 @@ class ACF
1515 *
1616 * @var string
1717 */
18- public $ version = '6.0.6 ' ;
18+ public $ version = '6.0.7 ' ;
1919 /**
2020 * The plugin settings array.
2121 *
@@ -410,7 +410,7 @@ public function save_post($post_id, $post)
410410 {
411411 }
412412 /**
413- * This function will render the HTML for the medtabox 'acf-field-group-fields'
413+ * This function will render the HTML for the metabox 'acf-field-group-fields'
414414 *
415415 * @since 5.0.0
416416 *
@@ -2312,13 +2312,6 @@ class ACF_Assets
23122312 * @var array
23132313 */
23142314 public $ data = array ();
2315- /**
2316- * List of enqueue flags.
2317- *
2318- * @since 5.9.0
2319- * @var bool
2320- */
2321- private $ enqueue = array ();
23222315 /**
23232316 * Constructor.
23242317 *
@@ -2404,18 +2397,6 @@ public function enqueue_script($name)
24042397 public function enqueue_style ($ name )
24052398 {
24062399 }
2407- /**
2408- * Adds the actions needed to print supporting inline scripts.
2409- *
2410- * @date 27/4/20
2411- * @since 5.9.0
2412- *
2413- * @param void
2414- * @return void
2415- */
2416- private function add_actions ()
2417- {
2418- }
24192400 /**
24202401 * Extends the add_action() function with two additional features:
24212402 * 1. Renames $action depending on the current page (customizer, login, front-end).
@@ -3491,18 +3472,6 @@ function render_field_settings($field)
34913472 public function format_value ($ value , $ post_id , $ field )
34923473 {
34933474 }
3494- /**
3495- * Convert either a Hexadecimal or RGBA string to an RGBA array.
3496- *
3497- * @since 5.10
3498- * @date 15/12/20
3499- *
3500- * @param string $value
3501- * @return array
3502- */
3503- private function string_to_array ($ value )
3504- {
3505- }
35063475}
35073476class acf_field_date_picker extends \acf_field
35083477{
@@ -7799,8 +7768,6 @@ function admin_footer()
77997768}
78007769class acf_form_front
78017770{
7802- /** @var array An array of registered form settings */
7803- private $ forms = array ();
78047771 /** @var array An array of default fields */
78057772 public $ fields = array ();
78067773 /**
@@ -8757,13 +8724,6 @@ public function __call($name, $arguments)
87578724}
87588725class ACF_Local_JSON
87598726{
8760- /**
8761- * The found JSON field group files.
8762- *
8763- * @since 5.9.0
8764- * @var array
8765- */
8766- private $ files = array ();
87678727 /**
87688728 * Constructor.
87698729 *
@@ -10324,18 +10284,6 @@ public function save_files($post_id = 0)
1032410284 public function handle_upload_prefilter ($ file )
1032510285 {
1032610286 }
10327- /**
10328- * Returns the field responsible for the current Media query or upload context.
10329- *
10330- * @date 21/5/21
10331- * @since 5.9.7
10332- *
10333- * @param void
10334- * @return array| false.
10335- */
10336- private function get_source_field ()
10337- {
10338- }
1033910287 /**
1034010288 * Fires during the WP Modal Query AJAX call.
1034110289 *
@@ -10391,10 +10339,6 @@ function image_size_names_choose($size_names)
1039110339}
1039210340class ACF_Rest_Api
1039310341{
10394- /** @var ACF_Rest_Request */
10395- private $ request ;
10396- /** @var ACF_Rest_Embed_Links */
10397- private $ embed_links ;
1039810342 public function __construct ()
1039910343 {
1040010344 }
@@ -10407,14 +10351,6 @@ public function initialize($response, $handler, $request)
1040710351 public function register_field ()
1040810352 {
1040910353 }
10410- /**
10411- * Dynamically generate the schema for the current request.
10412- *
10413- * @return array
10414- */
10415- private function get_schema ()
10416- {
10417- }
1041810354 /**
1041910355 * Validate the request args. Mostly a wrapper for `rest_validate_request_arg()`, but also
1042010356 * fires off a filter, so we can add some custom validation for specific fields.
@@ -10460,66 +10396,6 @@ public function load_fields($object, $field_name, $request, $object_sub_type)
1046010396 public function update_fields ($ data , $ object , $ property , $ request , $ object_sub_type )
1046110397 {
1046210398 }
10463- // todo - this should check for a flag and validate a nonce to ensure we are in admin mode.
10464- // todo - consider/discuss handling this in the request object instead.
10465- private function is_admin_mode ($ data )
10466- {
10467- }
10468- /**
10469- * Make the ACF identifier string for the given object.
10470- *
10471- * @param int $object_id
10472- * @param string $object_type 'user', 'term', or 'post'
10473- * @return string
10474- */
10475- private function make_identifier ($ object_id , $ object_type )
10476- {
10477- }
10478- /**
10479- * Gets an array of the location types that a field group is configured to use.
10480- *
10481- * @param string $object_type 'user', 'term', or 'post'
10482- * @param array $field_group The field group to check.
10483- * @param array $location_types An array of location types.
10484- *
10485- * @return bool
10486- */
10487- private function object_type_has_field_group ($ object_type , $ field_group , $ location_types = array ())
10488- {
10489- }
10490- /**
10491- * Get all field groups for the provided object type.
10492- *
10493- * @param string $object_type 'user', 'term', or 'post'
10494- *
10495- * @return array An array of field groups that display for that location type.
10496- */
10497- private function get_field_groups_by_object_type ($ object_type )
10498- {
10499- }
10500- /**
10501- * Get all field groups for a given object.
10502- *
10503- * @param int $object_id
10504- * @param string $object_type 'user', 'term', or 'post'
10505- * @param string|null $object_sub_type The post type or taxonomy. When an $object_type of 'user' is in play, this can be ignored.
10506- * @param array $scope Field group keys to limit the returned set of field groups to. This is used to scope field lookups to specific groups.
10507- * @return array An array of matching field groups.
10508- */
10509- private function get_field_groups_by_id ($ object_id , $ object_type , $ object_sub_type = \null, $ scope = array ())
10510- {
10511- }
10512- /**
10513- * Get all ACF fields for a given field group and allow third party filtering.
10514- *
10515- * @param array $field_group This could technically be other possible values supported by acf_get_fields() but in this
10516- * context, we're only using the field group arrays.
10517- * @param null|int $object_id The ID of the object being prepared.
10518- * @return array
10519- */
10520- private function get_fields ($ field_group , $ object_id = \null)
10521- {
10522- }
1052310399}
1052410400/**
1052510401 * Class ACF_Rest_Embed_Links
@@ -10528,17 +10404,9 @@ private function get_fields($field_group, $object_id = \null)
1052810404 */
1052910405class ACF_Rest_Embed_Links
1053010406{
10531- /** @var array Links to add to the response. These can be flagged as embeddable and expanded when _embed is passed with the request. */
10532- private $ links = array ();
1053310407 public function initialize ()
1053410408 {
1053510409 }
10536- /**
10537- * Hook into all REST-enabled post type, taxonomy, and the user controllers in order to prepare links.
10538- */
10539- private function hook_link_handlers ()
10540- {
10541- }
1054210410 /**
1054310411 * Add links to internal property for subsequent use in \ACF_Rest_Embed_Links::load_item_links().
1054410412 *
@@ -10569,27 +10437,6 @@ public function load_item_links($response, $item, $request)
1056910437 */
1057010438class ACF_Rest_Request
1057110439{
10572- /**
10573- * Define which private/protected class properties are allowed read access. Access to these is controlled in
10574- * \ACF_Rest_Request::__get();
10575- *
10576- * @var string[]
10577- */
10578- private $ readonly_props = array ('object_type ' , 'object_sub_type ' , 'child_object_type ' , 'http_method ' );
10579- /** @var string The HTTP request method for the current request. i.e; GET, POST, PATCH, PUT, DELETE, OPTIONS, HEAD */
10580- private $ http_method ;
10581- /** @var string The current route being requested. */
10582- private $ current_route ;
10583- /** @var array Route URL patterns we support. */
10584- private $ supported_routes = array ();
10585- /** @var array Parameters matched from the URL. e.g; object IDs. */
10586- private $ url_params = array ();
10587- /** @var string The underlying object type. e.g; post, term, user, etc. */
10588- private $ object_type ;
10589- /** @var string The requested object type. */
10590- private $ object_sub_type ;
10591- /** @var string The object type for a child object. e.g. post-revision, autosaves, etc. */
10592- private $ child_object_type ;
1059310440 /**
1059410441 * Determine all required information from the current request.
1059510442 */
@@ -10614,56 +10461,6 @@ public function __get($name)
1061410461 public function get_url_param ($ param )
1061510462 {
1061610463 }
10617- /**
10618- * Determine the HTTP method of the current request.
10619- */
10620- private function set_http_method ()
10621- {
10622- }
10623- /**
10624- * Get the current REST route as determined by WordPress.
10625- */
10626- private function set_current_route ($ request )
10627- {
10628- }
10629- /**
10630- * Build an array of route match patterns that we handle. These are the same as WordPress' core patterns except
10631- * we are also matching the object type here as well.
10632- */
10633- private function build_supported_routes ()
10634- {
10635- }
10636- /**
10637- * Loop through supported routes to find matching pattern. Use matching pattern to determine any URL parameters.
10638- */
10639- private function set_url_params ()
10640- {
10641- }
10642- /**
10643- * Determine the object type and sub type from the requested route. We need to know both the underlying WordPress
10644- * object type as well as post type or taxonomy in order to provide the right context when getting/updating fields.
10645- */
10646- private function set_object_types ()
10647- {
10648- }
10649- /**
10650- * Find the REST enabled post type object that matches the given REST base.
10651- *
10652- * @param string $rest_base
10653- * @return WP_Post_Type|null
10654- */
10655- private function get_post_type_by_rest_base ($ rest_base )
10656- {
10657- }
10658- /**
10659- * Find the REST enabled taxonomy object that matches the given REST base.
10660- *
10661- * @param $rest_base
10662- * @return WP_Taxonomy|null
10663- */
10664- private function get_taxonomy_by_rest_base ($ rest_base )
10665- {
10666- }
1066710464}
1066810465class acf_revisions
1066910466{
@@ -13086,42 +12883,6 @@ public function ajax_get_rows()
1308612883 */
1308712884class ACF_Repeater_Table
1308812885{
13089- /**
13090- * The main field array used to render the repeater.
13091- *
13092- * @var array
13093- */
13094- private $ field ;
13095- /**
13096- * An array containing the subfields used in the repeater.
13097- *
13098- * @var array
13099- */
13100- private $ sub_fields ;
13101- /**
13102- * The value(s) of the repeater field.
13103- *
13104- * @var array
13105- */
13106- private $ value ;
13107- /**
13108- * If we should show the "Add Row" button.
13109- *
13110- * @var bool
13111- */
13112- private $ show_add = \true;
13113- /**
13114- * If we should show the "Remove Row" button.
13115- *
13116- * @var bool
13117- */
13118- private $ show_remove = \true;
13119- /**
13120- * If we should show the order of the fields.
13121- *
13122- * @var bool
13123- */
13124- private $ show_order = \true;
1312512886 /**
1312612887 * Constructs the ACF_Repeater_Table class.
1312712888 *
@@ -13130,26 +12891,6 @@ class ACF_Repeater_Table
1313012891 public function __construct ($ field )
1313112892 {
1313212893 }
13133- /**
13134- * Sets up the field for rendering.
13135- *
13136- * @since 6.0.0
13137- *
13138- * @return void
13139- */
13140- private function setup ()
13141- {
13142- }
13143- /**
13144- * Prepares the repeater values for rendering.
13145- *
13146- * @since 6.0.0
13147- *
13148- * @return array
13149- */
13150- private function prepare_value ()
13151- {
13152- }
1315312894 /**
1315412895 * Renders the full repeater table.
1315512896 *
0 commit comments