Make WordPress Core

Ticket #2777: query_string_array.diff

File query_string_array.diff, 628 bytes (added by markjaquith, 20 years ago)

Patch for /trunk/

  • wp-includes/classes.php

     
    287287                }
    288288
    289289                $this->query_string = apply_filters('query_string', $this->query_string);
     290
     291                parse_str($this->query_string, $query_string_array);
     292                $query_string_array = apply_filters('query_string_array', $query_string_array);
     293                $new_qs = array();
     294                foreach ( (array) $query_string_array as $k => $v) {
     295                        $new_qs[] = $k.'='.$v;
     296                }
     297                $this->query_string = implode('&', $new_qs);
    290298        }
    291299
    292300        function register_globals() {