Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #43644, comment 6


Ignore:
Timestamp:
03/27/2018 05:32:51 PM (7 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #43644, comment 6

    initial v1  
    22
    33Lets add it then. The above example for `wp_comment_reply` is really hard to read.
     4
     5I'd go one step further: for best readability arrays should be defined outside of function and filter calls. Example:
     6{{{
     7$array = array(
     8   'position' => $position,
     9   'checkbox' => $checkbox,
     10   'mode'     => $mode,
     11);
     12
     13$content = apply_filters( 'wp_comment_reply', '', $array );
     14}}}