WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #45529, comment 30


Ignore:
Timestamp:
10/03/2019 07:22:24 PM (14 months ago)
Author:
desrosj
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #45529, comment 30

    initial v1  
    11While I am not opposed to [attachment:"45529.3.diff"], I did want to question the use of a closure on an action hook.
    22
    3 The latest updates to the coding standards established that:
     3The [https://make.wordpress.org/core/2019/07/12/php-coding-standards-changes/ latest updates to the coding standards established] that:
    44
    55> Closures must not be passed as filter or action callbacks, as they cannot be removed by `remove_action()` / `remove_filter()`
    66
    77Because of that, I am hesitant to introduce this as the recommended example here.
     8
     9''Edit: added link to the blog post updating the coding standards.''