WordPress.org

Make WordPress Core

Opened 2 weeks ago

#44292 new enhancement

Make use of protected process_fields

Reported by: andizer Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Database Keywords:
Focuses: Cc:

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?

Change History (0)

Note: See TracTickets for help on using tickets.