diff --git src/wp-includes/functions.php src/wp-includes/functions.php
index 0e720ee..2a7f4d5 100644
|
|
function add_query_arg() { |
781 | 781 | $uri = $args[2]; |
782 | 782 | } |
783 | 783 | |
784 | | if ( $frag = strstr( $uri, '#' ) ) |
785 | | $uri = substr( $uri, 0, -strlen( $frag ) ); |
786 | | else |
| 784 | $frag = strrchr( $uri, '#' ); |
| 785 | if ( $frag && false === strpos( $frag, '#038;' ) ) { |
| 786 | $uri = substr( $uri, 0, - strlen( $frag ) ); |
| 787 | } else { |
787 | 788 | $frag = ''; |
| 789 | } |
788 | 790 | |
789 | 791 | if ( 0 === stripos( $uri, 'http://' ) ) { |
790 | 792 | $protocol = 'http://'; |