[wp-trac] [WordPress Trac] #49500: WordPress 5.4 messes up custom fields added to menu items they are duplicated.
WordPress Trac
noreply at wordpress.org
Thu Mar 26 19:25:25 UTC 2020
#49500: WordPress 5.4 messes up custom fields added to menu items they are
duplicated.
--------------------------+-------------------------
Reporter: BackuPs | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Menus | Version: trunk
Severity: normal | Resolution: worksforme
Keywords: | Focuses:
--------------------------+-------------------------
Comment (by helgatheviking):
`version_compare()` is straight out of the PHP manual:
https://www.php.net/manual/en/function.version-compare.php
so while I have some typos above, once I fix that version 5.4 will be
greater than 5.4-RC1.
{{{
$wp_version = '5.4';
$result = version_compare( strtolower( $wp_version ), strtolower(
'5.4-RC1' ), '>=' );
var_dump($result); // true
}}}
Can you give me an example where this will not work?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49500#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list