WordPress.org

Make WordPress Core

Ticket #51426: 51426.patch

File 51426.patch, 2.8 KB (added by ravipatel, 14 months ago)

Per core's PHP documentation standards: For boolean and integer types, use bool and int, respectively.

  • wp-content/themes/twentythirteen/functions.php

     
    515515         *
    516516         * @since Twenty Thirteen 1.0
    517517         *
    518          * @param boolean $echo (optional) Whether to echo the date. Default true.
     518         * @param bool $echo (optional) Whether to echo the date. Default true.
    519519         * @return string The HTML-formatted post date.
    520520         */
    521521        function twentythirteen_entry_date( $echo = true ) {
  • wp-includes/class-requests.php

     
    498498         * Get the default options
    499499         *
    500500         * @see Requests::request() for values returned by this method
    501          * @param boolean $multirequest Is this a multirequest?
     501         * @param bool $multirequest Is this a multirequest?
    502502         * @return array Default option values
    503503         */
    504504        protected static function get_default_options($multirequest = false) {
  • wp-includes/class-wp-simplepie-file.php

     
    2929         * @param string|array $headers         Optional. Array or string of headers to send with the request.
    3030         *                                      Default null.
    3131         * @param string       $useragent       Optional. User-agent value sent. Default null.
    32          * @param boolean      $force_fsockopen Optional. Whether to force opening internet or unix domain socket
     32         * @param bool      $force_fsockopen Optional. Whether to force opening internet or unix domain socket
    3333         *                                      connection or not. Default false.
    3434         */
    3535        public function __construct( $url, $timeout = 10, $redirects = 5, $headers = null, $useragent = null, $force_fsockopen = false ) {
  • wp-includes/Requests/Response.php

     
    105105         *
    106106         * @throws Requests_Exception If `$allow_redirects` is false, and code is 3xx (`response.no_redirects`)
    107107         * @throws Requests_Exception_HTTP On non-successful status code. Exception class corresponds to code (e.g. {@see Requests_Exception_HTTP_404})
    108          * @param boolean $allow_redirects Set to false to throw on a 3xx as well
     108         * @param bool $allow_redirects Set to false to throw on a 3xx as well
    109109         */
    110110        public function throw_for_status($allow_redirects = true) {
    111111                if ($this->is_redirect()) {