Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #49927, comment 12


Ignore:
Timestamp:
06/30/2020 04:10:41 PM (6 years ago)
Author:
kraftbj

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #49927, comment 12

    initial v1  
    22
    33I think confirming `$post` is an `WP_Post` would handle it.
     4
     5
     6To add on, this is due to the way the test mocks `$post` incompletely. We can fix this plugin side ( https://github.com/Automattic/jetpack/pull/16337 ), but I think Core could be a little more defensive too.