some cleaning in comments in fbpatch

This commit is contained in:
asus
2024-04-25 11:23:26 +02:00
parent a357c64fbc
commit fcfd52bda9

View File

@@ -23,7 +23,6 @@ if (!defined('ABSPATH')) {
* we get the text date * we get the text date
* - then, filter the value when loading, * - then, filter the value when loading,
* to use the acf format date 'Ymd' instead of the text date * to use the acf format date 'Ymd' instead of the text date
* -> except id accessed by divi
* - and finally filter the format step * - and finally filter the format step
* (which is not triggered by admin output) * (which is not triggered by admin output)
* to prevent formating if accessed by divi * to prevent formating if accessed by divi
@@ -49,9 +48,9 @@ if (!defined('ABSPATH')) {
* - 'acf/load_value' : * - 'acf/load_value' :
* using this filter, the value is cached, as explained above * using this filter, the value is cached, as explained above
* - note : the first argument '$value' is actually a little misleading : * - note : the first argument '$value' is actually a little misleading :
* - in case of the second filter, * - in case of the second filter, 'acf/load_value',
* it is indeed tha value that has already been retrieve and that we can override * it is indeed tha value that has already been retrieve and that we can override
* - but for the first filter, it is actually 'null', * - but for the first filter, 'acf/pre_load_value', it is actually 'null',
* and if returned it will let the function go on to try to retrieve the value * and if returned it will let the function go on to try to retrieve the value
* *
*/ */
@@ -65,7 +64,6 @@ function try_get_acf_date($value, $post_id, $field) {
} }
$acf_date = Fbpatch::get_acf_date($post_id, $field['key']); $acf_date = Fbpatch::get_acf_date($post_id, $field['key']);
//error_log("acf_date: " . json_encode($acf_date));
if ($acf_date === false) { if ($acf_date === false) {
return $value; return $value;
} }