WordPress.org

Make WordPress Core

Ticket #13452: use http_build_query.diff

File use http_build_query.diff, 1.0 KB (added by simonwheatley, 5 years ago)
  • Users/simon/Projects/WordPress-Bleeding/site/wp-includes/functions.php

     
    13241324 * Build URL query based on an associative and, or indexed array. 
    13251325 * 
    13261326 * This is a convenient function for easily building url queries. It sets the 
    1327  * separator to '&' and uses _http_build_query() function. 
     1327 * separator to '&' and uses http_build_query() function. 
    13281328 * 
    1329  * @see _http_build_query() Used to build the query 
     1329 * @see http_build_query() Used to build the query 
    13301330 * @link http://us2.php.net/manual/en/function.http-build-query.php more on what 
    13311331 *              http_build_query() does. 
    13321332 * 
     
    13361336 * @return string URL encoded string 
    13371337 */ 
    13381338function build_query( $data ) { 
    1339         return _http_build_query( $data, null, '&', '', false ); 
     1339        return http_build_query( $data, null, '&', '', false ); 
    13401340} 
    13411341 
    13421342/**