[wp-trac] [WordPress Trac] #44530: Post or page custom fields give wrong error message when enter value only.
WordPress Trac
noreply at wordpress.org
Fri Jul 6 15:26:26 UTC 2018
#44530: Post or page custom fields give wrong error message when enter value only.
-------------------------------+-----------------------------
Reporter: harsh175 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: has-screenshots | Focuses: administration
-------------------------------+-----------------------------
Changes (by swissspidy):
* focuses: ui, accessibility, javascript => administration
* component: Administration => Posts, Post Types
* severity: major => normal
* version: trunk =>
* milestone: Awaiting Review => Future Release
Comment:
Regarding [attachment:"44530.diff"]:
`empty()` already does an `isset()` check, so there's no need for both.
Perhaps it's better to use au `isset( $_POST['metakeyinput'] ) && '' ===
$_POST['metakeyinput'] )` check.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44530#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list