AdvancedCustomFields / AdvancedCustomFields/acf

acf/update_value filter

Open
#796 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
945
Forks
197
PR merge metrics
No merged PRs in 30d

Description

On /includes/acf-value-functions.php on line 216 the $original parameter is not defined

/**
* Filters the $value before it is updated.
*
* @date    28/09/13
* @since   5.0.0
*
* @param   mixed $value The value to update.
* @param   string $post_id The post ID for this value.
* @param   array $field The field array.
* @param   mixed $original The original value before modification.
*/
$value = apply_filters( 'acf/update_value', $value, $post_id, $field, $value );

https://www.advancedcustomfields.com/resources/acf-update_value/

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at /includes/acf-value-functions.php around line 216 and compare the filter invocation with the documented acf/update_value parameters at the linked resource. Confirm that the filter receives the value represented by the documented $original parameter, then verify the resulting behavior against the filter documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.