[wp-trac] [WordPress Trac] #30188: Introduce utility functions to check constants

WordPress Trac noreply at wordpress.org
Fri Dec 4 05:17:56 UTC 2015


#30188: Introduce utility functions to check constants
-------------------------------------------------+-------------------------
 Reporter:  rzen                                 |       Owner:  chriscct7
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  Awaiting
Component:  General                              |  Review
 Severity:  normal                               |     Version:
 Keywords:  has-patch dev-feedback needs-        |  Resolution:
  testing                                        |     Focuses:
-------------------------------------------------+-------------------------

Comment (by nacin):

 Replying to [comment:7 chriscct7]:
 > Replying to [comment:6 nacin]:
 > > This feels like an unnecessary over-abstraction. I'd rather improve
 the ability to save meta boxes, not suppress basic defined logic.
 >
 > Metaboxes?

 This structure — checking a bunch of (DOING_) constants in a row — is
 commonly seen in a save_post hook to handle the saving of a meta box.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30188#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list