Files
wordpress/wp-includes/rewrite.php
Sergey Biryukov 877e90bbff Coding Standards: Remove redundant checks in wp_resolve_numeric_slug_conflicts().
This commit removes two unnecessary conditional checks:
* A truthy check for `$compare`, as a falsey value causes an earlier return a few lines above.
* A check to ensure `$maybe_page` is not an empty string, as it is already cast to an integer.

Follow-up to [32648], [34492], [53857].

Props justlevine.
See #63268.
Built from https://develop.svn.wordpress.org/trunk@60447


git-svn-id: http://core.svn.wordpress.org/trunk@59783 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-11 13:16:28 +00:00

19 KiB