~canonical-sysadmins/wordpress/4.9.4

« back to all changes in this revision

Viewing changes to wp-includes/http.php

  • Committer: Barry Price
  • Date: 2017-11-17 04:49:02 UTC
  • mfrom: (1.1.30 upstream)
  • Revision ID: barry.price@canonical.com-20171117044902-5frux4ycbq6g9fyf
Merge WP4.9 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
643
643
 * @since 4.4.0
644
644
 * @since 4.7.0 The $component parameter was added for parity with PHP's parse_url().
645
645
 *
 
646
 * @link https://secure.php.net/manual/en/function.parse-url.php
 
647
 *
646
648
 * @param string $url       The URL to parse.
647
649
 * @param int    $component The specific component to retrieve. Use one of the PHP
648
650
 *                          predefined constants to specify which one.
649
651
 *                          Defaults to -1 (= return all parts as an array).
650
 
 *                          @see http://php.net/manual/en/function.parse-url.php
651
652
 * @return mixed False on parse failure; Array of URL components on success;
652
653
 *               When a specific component has been requested: null if the component
653
654
 *               doesn't exist in the given URL; a string or - in the case of
687
688
 * @internal
688
689
 *
689
690
 * @since 4.7.0
 
691
 * @access private
 
692
 *
 
693
 * @link https://secure.php.net/manual/en/function.parse-url.php
690
694
 *
691
695
 * @param array|false $url_parts The parsed URL. Can be false if the URL failed to parse.
692
696
 * @param int    $component The specific component to retrieve. Use one of the PHP
693
697
 *                          predefined constants to specify which one.
694
698
 *                          Defaults to -1 (= return all parts as an array).
695
 
 *                          @see http://php.net/manual/en/function.parse-url.php
696
699
 * @return mixed False on parse failure; Array of URL components on success;
697
700
 *               When a specific component has been requested: null if the component
698
701
 *               doesn't exist in the given URL; a string or - in the case of
717
720
 * @internal
718
721
 *
719
722
 * @since 4.7.0
 
723
 * @access private
720
724
 *
721
 
 * @see   http://php.net/manual/en/url.constants.php
 
725
 * @link https://secure.php.net/manual/en/url.constants.php
722
726
 *
723
727
 * @param int $constant PHP_URL_* constant.
724
728
 * @return string|bool The named key or false.