WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #42089


Ignore:
Timestamp:
02/24/2018 11:52:08 AM (3 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #42089

    • Property Component changed from General to Posts, Post Types
  • Ticket #42089 – Description

    initial v1  
    1 It would be very helpful if there was a function to detect if the page being viewed is a scheduled post. Call this is_draft_preview().
     1It would be very helpful if there was a function to detect if the page being viewed is a preview of a draft. Call this is_draft_preview().
    22Currently, you can achieve this check with code like this:
    33{{{#!php