[wp-trac] [WordPress Trac] #44292: Make use of protected process_fields

WordPress Trac noreply at wordpress.org
Fri Jun 1 12:23:58 UTC 2018


#44292: Make use of protected process_fields
-------------------------+-----------------------------
 Reporter:  andizer      |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Database     |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 I have written an 'upsert' routine and thought it would be nice to have
 this functionality in WordPress core. Searching for results in this ticket
 https://core.trac.wordpress.org/ticket/22196.

 Not having a method for it, is okay. I already have my own implementation.
 However I need some field processing like the same way has been done for
 the insert and update routines. Unfortunately the method for that
 (process_fields) has been made protected.

 Is it desirable to make that method public or should I copy the logic of
 those routines to be able to use it?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44292>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list