Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #21676, comment 74


Ignore:
Timestamp:
06/07/2020 05:24:48 PM (4 years ago)
Author:
enrico.sorcinelli
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21676, comment 74

    initial v1  
    22I used  `$wp_tmpl_args` as scoped variable name, but we could chose another one in order to avoid possible conflicts.
    33
    4 Core devs already added this approach in 5.2.0 to `get_search_form()` function. For example, **twentytwenty** theme uses it by passing `array(   'label' => ... )` as scoped arguments to ''searchform.php'' template, so I cannot se any reasonable why to don't apply it also to other `get_*` template family functions.
     4Core devs already added this approach in 5.2.0 to `get_search_form()` function. For example, **twentytwenty** theme uses it by passing `array(   'label' => ... )` as scoped arguments to ''searchform.php'' template, so I cannot see any reasonable why to don't apply it also to other `get_*` template family functions.