Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #12955, comment 54


Ignore:
Timestamp:
12/14/2016 10:10:42 PM (8 years ago)
Author:
MikeSchinkel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12955, comment 54

    v1 v2  
    1010> @MikeSchinkel - here is a full example based on the extendable Post class I linked above and how we are using it in a themeable plugin.
    1111
    12 And as I mentioned to @flixos90, that is fine until you''(r client)'' wants ''(you)'' to use a plugin that expects there to be a global `$post` and within a hook that plugin calls a function that calls `get_post()` to sanitize/normalize said global `$post`.
     12As I mentioned to @flixos90, that is fine until you''(r client)'' want ''(s you)'' to use add a plugin that calls a template tag that uses `get_post()` to sanitize/normalize the global `$post` and causes your container post to disappear.