WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #40325, comment 3


Ignore:
Timestamp:
12/13/2020 08:44:03 PM (13 months ago)
Author:
engahmeds3ed
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #40325, comment 3

    initial v1  
    2222so when `get_post_type` calls `get_post` without the argument `$post`, it tries to assign
    2323
     24{{{#!php
    2425$post = $GLOBALS['post'];
     26}}}
    2527
    2628and here in this case $GLOBALS['post'] is null.