Opened 2 years ago
Last modified 2 years ago
#17482 new enhancement
Formalize a list of "Object Types"
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | dev-feedback has-patch |
| Cc: |
Description
I'm finding a need to use a defined list of object types for numerous things including for object relationships, term relationships that relate taxonomy terms to something other than a post, data entry forms, and I am sure there are more than just these requirements (An "object" is anything in WordPress for which we can identify a name and a unique ID form the database, i.e. $post->ID, $user->ID, $term->term_id and so on.)
While thinking about it this seems to be something that would be valuable to include core so I am proposing and submitting a patch for their potential inclusion. If this is not something that the team would want to include then I'll simply incorporate them into my own code but I wanted to make sure that the team wouldn't want to include them into WordPress core instead.
Attachments (2)
Change History (5)
mikeschinkel
— 2 years ago
comment:1
follow-up:
↓ 3
scribu
— 2 years ago
Shouldn't those be run through __() ?
In general, we don't include strings that are not directly used in Core: #14972
comment:2
scribu
— 2 years ago
Yes, I realize that the strings aren't the main thing you're interested in.
comment:3
in reply to:
↑ 1
mikeschinkel
— 2 years ago
Replying to scribu:
Shouldn't those be run through __() ?
In general, we don't include strings that are not directly used in Core: #14972
Great point, and fixing it caused me to realize I had forgotten something too, to make the values an array to enable support for future object type attributes. I'm uploading a patch to overwrite the first one.
Patch to /wp-settings.php to require object-types.php