Changes between Initial Version and Version 1 of Ticket #45529, comment 30
- Timestamp:
- 10/03/2019 07:22:24 PM (17 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #45529, comment 30
initial v1 1 1 While I am not opposed to [attachment:"45529.3.diff"], I did want to question the use of a closure on an action hook. 2 2 3 The latest updates to the coding standards establishedthat:3 The [https://make.wordpress.org/core/2019/07/12/php-coding-standards-changes/ latest updates to the coding standards established] that: 4 4 5 5 > Closures must not be passed as filter or action callbacks, as they cannot be removed by `remove_action()` / `remove_filter()` 6 6 7 7 Because 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.''