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:
Scott Taylor
2015-05-22 05:46:47 +00:00
parent 06ea5c78be
commit 46752a491e
9 changed files with 17 additions and 35 deletions
+1 -3
View File
@@ -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 ) );