mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-03 22:27:04 +00:00
When calling unset(), it is unnecessary to immediately precede it with a call to isset().
See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32545 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2668,9 +2668,7 @@ function paginate_links( $args = '' ) {
|
||||
|
||||
// Remove the format argument from the array of query arguments, to avoid overwriting custom format.
|
||||
foreach ( $format_args as $format_arg => $format_arg_value ) {
|
||||
if ( isset( $url_query_args[ $format_arg ] ) ) {
|
||||
unset( $url_query_args[ $format_arg ] );
|
||||
}
|
||||
unset( $url_query_args[ $format_arg ] );
|
||||
}
|
||||
|
||||
$args['add_args'] = array_merge( $args['add_args'], urlencode_deep( $url_query_args ) );
|
||||
|
||||
Reference in New Issue
Block a user