Make WordPress Core

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


Ignore:
Timestamp:
04/12/2016 09:30:42 AM (8 years ago)
Author:
flixos90
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36217, comment 12

    initial v1  
    1 [attachment:36217.3.diff] separates the post type object logic from the additional steps that are performed when registering the post type. There are two new methods `_register()` and `_unregister()` for that which are called from `register_post_type()` and `unregister_post_type()`. Maybe these should set some kind of flag so that they are not executed more than once.
     1[attachment:36217.3.diff] separates the post type object logic from the additional steps that are performed when registering the post type. There are two new methods `_register()` and `_unregister()` for that which are called from `register_post_type()` and `unregister_post_type()` (contrary to my above post I thought it was better to put these steps into the class as well, just separated). Maybe these should set some kind of flag so that they are not executed more than once.