Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #17115, comment 29


Ignore:
Timestamp:
04/05/2016 01:41:34 PM (9 years ago)
Author:
GhostToast
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17115, comment 29

    initial v1  
    11Patch 17115.5 considers whether a given post supports a particular field before determining if it's presence matters. This will actually cause ''more'' things to be considered empty instead of just post types that have all 3 of these supports. It fixes the too-much-logic in one line that was happening when defining `$maybe_empty`.
    22
    3 In my own project, I ended up utilizing the filter to prevent my post type from being flagged as empty. This is important because much data could be saved in post_meta or taxonomical connections, before a title, content or excerpt could be drafted. Looks a bit like this:
     3In my own project, I ended up utilizing the filter to prevent my post type from being flagged as empty. This is important because much data could be saved in post meta or taxonomical connections, before a title, content or excerpt could be drafted. Looks a bit like this:
    44
    55{{{#!php