Opened 8 years ago
#44292 new enhancement
Make use of protected process_fields
| Reported by: | andizer | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Database | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
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?
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)