Make WordPress Core

Opened 5 weeks ago

Last modified 5 weeks ago

#62664 new enhancement

Automatically prepopulate registered meta keys in the Custom Fields meta box

Reported by: psykro's profile psykro Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: trunk
Component: Options, Meta APIs Keywords: has-patch
Focuses: Cc:

Description

When the Custom fields meta box is enabled, it does not provide the option to select from any meta fields registered using either register_meta or register_post_meta.

Change History (1)

This ticket was mentioned in PR #7974 on WordPress/wordpress-develop by @psykro.


5 weeks ago
#1

  • Keywords has-patch added

Once the query has been run to fetch any post_meta keys from the table, this checks if that array contains values. If it does not, it fetches any registered post meta keys and uses that array instead.

Trac ticket: https://core.trac.wordpress.org/ticket/62664#ticket

Note: See TracTickets for help on using tickets.