WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #50913, comment 14


Ignore:
Timestamp:
09/09/2020 04:47:36 AM (11 months ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #50913, comment 14

    initial v1  
    22> [48961] should be considered a BC-break and will need a dev-note.
    33
    4 Thanks, adding the tag. Just noted a few other instances of `array_map( 'get_comment', ... )` in core and the tests, and thought this could be a more  common pattern than relying on the reference for filling an empty variable, so bringing some consistency with `get_posts()` would make sense.
     4Thanks, adding the tag. Just noted a few other instances of `array_map( 'get_comment', ... )` in core and the tests, and thought this could be a more  common pattern than relying on the reference for filling an empty variable, so bringing some consistency with `get_post()` would make sense.
    55
    66A [https://wpdirectory.net/search/01EHRJHKGVG96FWZT71P9GNEF4 brief search] shows that some popular plugins do indeed use `array_map( 'get_comment', ... )`.