WordPress.org

Make WordPress Core

Ticket #51426: 51426.diff

File 51426.diff, 33.0 KB (added by justinahinon, 14 months ago)
  • src/wp-admin/includes/media.php

     
    176176 * @since 2.6.0
    177177 *
    178178 * @param string  $html    The image HTML markup to send.
    179  * @param integer $id      Image attachment ID.
     179 * @param int $id      Image attachment ID.
    180180 * @param string  $caption Image caption.
    181181 * @param string  $title   Image title attribute (not used).
    182182 * @param string  $align   Image CSS alignment property.
     
    13191319 * @since 2.5.0
    13201320 *
    13211321 * @param string  $html
    1322  * @param integer $attachment_id
     1322 * @param int $attachment_id
    13231323 * @param array   $attachment
    13241324 * @return string
    13251325 */
     
    22752275 *
    22762276 * @param string  $type
    22772277 * @param object  $errors
    2278  * @param integer $id
     2278 * @param int $id
    22792279 */
    22802280function media_upload_type_form( $type = 'file', $errors = null, $id = null ) {
    22812281
     
    23492349 *
    23502350 * @param string  $type
    23512351 * @param object  $errors
    2352  * @param integer $id
     2352 * @param int $id
    23532353 */
    23542354function media_upload_type_url_form( $type = null, $errors = null, $id = null ) {
    23552355        if ( null === $type ) {
  • src/wp-content/themes/twentyfourteen/inc/template-tags.php

     
    128128 *
    129129 * @since Twenty Fourteen 1.0
    130130 *
    131  * @return boolean true if blog has more than 1 category
     131 * @return bool true if blog has more than 1 category
    132132 */
    133133function twentyfourteen_categorized_blog() {
    134134        $all_the_cool_cats = get_transient( 'twentyfourteen_category_count' );
  • src/wp-content/themes/twentyseventeen/inc/template-tags.php

     
    127127 * Display a front page section.
    128128 *
    129129 * @param WP_Customize_Partial $partial Partial associated with a selective refresh request.
    130  * @param integer              $id Front page section to display.
     130 * @param int              $id Front page section to display.
    131131 */
    132132function twentyseventeen_front_page_section( $partial = null, $id = 0 ) {
    133133        if ( is_a( $partial, 'WP_Customize_Partial' ) ) {
  • src/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 ) {
  • src/wp-content/themes/twentytwenty/inc/template-tags.php

     
    2626 * Displays the site logo, either text or image.
    2727 *
    2828 * @param array   $args Arguments for displaying the site logo either as an image or text.
    29  * @param boolean $echo Echo or return the HTML.
     29 * @param bool $echo Echo or return the HTML.
    3030 * @return string Compiled HTML based on our arguments.
    3131 */
    3232function twentytwenty_site_logo( $args = array(), $echo = true ) {
     
    8888/**
    8989 * Displays the site description.
    9090 *
    91  * @param boolean $echo Echo or return the html.
     91 * @param bool $echo Echo or return the html.
    9292 * @return string The HTML to display.
    9393 */
    9494function twentytwenty_site_description( $echo = true ) {
  • src/wp-includes/Requests/Cookie/Jar.php

     
    5858         * Check if the given item exists
    5959         *
    6060         * @param string $key Item key
    61          * @return boolean Does the item exist?
     61         * @return bool Does the item exist?
    6262         */
    6363        public function offsetExists($key) {
    6464                return isset($this->cookies[$key]);
  • src/wp-includes/Requests/Cookie.php

     
    9090         * Checks the age against $this->reference_time to determine if the cookie
    9191         * is expired.
    9292         *
    93          * @return boolean True if expired, false if time is valid.
     93         * @return bool True if expired, false if time is valid.
    9494         */
    9595        public function is_expired() {
    9696                // RFC6265, s. 4.1.2.2:
     
    114114         * Check if a cookie is valid for a given URI
    115115         *
    116116         * @param Requests_IRI $uri URI to check
    117          * @return boolean Whether the cookie is valid for the given URI
     117         * @return bool Whether the cookie is valid for the given URI
    118118         */
    119119        public function uri_matches(Requests_IRI $uri) {
    120120                if (!$this->domain_matches($uri->host)) {
     
    132132         * Check if a cookie is valid for a given domain
    133133         *
    134134         * @param string $string Domain to check
    135          * @return boolean Whether the cookie is valid for the given domain
     135         * @return bool Whether the cookie is valid for the given domain
    136136         */
    137137        public function domain_matches($string) {
    138138                if (!isset($this->attributes['domain'])) {
     
    181181         * From the path-match check in RFC 6265 section 5.1.4
    182182         *
    183183         * @param string $request_path Path to check
    184          * @return boolean Whether the cookie is valid for the given path
     184         * @return bool Whether the cookie is valid for the given path
    185185         */
    186186        public function path_matches($request_path) {
    187187                if (empty($request_path)) {
     
    223223        /**
    224224         * Normalize cookie and attributes
    225225         *
    226          * @return boolean Whether the cookie was successfully normalized
     226         * @return bool Whether the cookie was successfully normalized
    227227         */
    228228        public function normalize() {
    229229                foreach ($this->attributes as $key => $value) {
  • src/wp-includes/Requests/Exception.php

     
    3131         * @param string $message Exception message
    3232         * @param string $type Exception type
    3333         * @param mixed $data Associated data
    34          * @param integer $code Exception numerical code, if applicable
     34         * @param int $code Exception numerical code, if applicable
    3535         */
    3636        public function __construct($message, $type, $data = null, $code = 0) {
    3737                parent::__construct($message, $code);
  • src/wp-includes/Requests/Hooker.php

     
    2727         *
    2828         * @param string $hook Hook name
    2929         * @param array $parameters Parameters to pass to callbacks
    30          * @return boolean Successfulness
     30         * @return bool Successfulness
    3131         */
    3232        public function dispatch($hook, $parameters = array());
    3333}
     34 Pas de fin de ligne à la fin du fichier
  • src/wp-includes/Requests/Hooks.php

     
    5050         *
    5151         * @param string $hook Hook name
    5252         * @param array $parameters Parameters to pass to callbacks
    53          * @return boolean Successfulness
     53         * @return bool Successfulness
    5454         */
    5555        public function dispatch($hook, $parameters = array()) {
    5656                if (empty($this->hooks[$hook])) {
  • src/wp-includes/Requests/Response.php

     
    9393        /**
    9494         * Is the response a redirect?
    9595         *
    96          * @return boolean True if redirect (3xx status), false if not.
     96         * @return bool True if redirect (3xx status), false if not.
    9797         */
    9898        public function is_redirect() {
    9999                $code = $this->status_code;
     
    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()) {
  • src/wp-includes/Requests/SSL.php

     
    8686         * the third rule.
    8787         *
    8888         * @param string $reference Reference dNSName
    89          * @return boolean Is the name valid?
     89         * @return bool Is the name valid?
    9090         */
    9191        public static function verify_reference_name($reference) {
    9292                $parts = explode('.', $reference);
     
    122122         *
    123123         * @param string $host Requested host
    124124         * @param string $reference dNSName to match against
    125          * @return boolean Does the domain match?
     125         * @return bool Does the domain match?
    126126         */
    127127        public static function match_domain($host, $reference) {
    128128                // Check if the reference is blocklisted first
  • src/wp-includes/Requests/Session.php

     
    231231         * Merge a request's data with the default data
    232232         *
    233233         * @param array $request Request data (same form as {@see request_multiple})
    234          * @param boolean $merge_options Should we merge options as well?
     234         * @param bool $merge_options Should we merge options as well?
    235235         * @return array Request data
    236236         */
    237237        protected function merge_request($request, $merge_options = true) {
  • src/wp-includes/Requests/Transport/cURL.php

     
    432432         *
    433433         * @param resource $handle cURL resource
    434434         * @param string $headers Header string
    435          * @return integer Length of provided header
     435         * @return int Length of provided header
    436436         */
    437437        public function stream_headers($handle, $headers) {
    438438                // Why do we do this? cURL will send both the final response and any
     
    457457         *
    458458         * @param resource $handle cURL resource
    459459         * @param string $data Body data
    460          * @return integer Length of provided data
     460         * @return int Length of provided data
    461461         */
    462462        public function stream_body($handle, $data) {
    463463                $this->hooks->dispatch('request.progress', array($data, $this->response_bytes, $this->response_byte_limit));
     
    522522         * Whether this transport is valid
    523523         *
    524524         * @codeCoverageIgnore
    525          * @return boolean True if the transport is valid, false otherwise.
     525         * @return bool True if the transport is valid, false otherwise.
    526526         */
    527527        public static function test($capabilities = array()) {
    528528                if (!function_exists('curl_init') || !function_exists('curl_exec')) {
  • src/wp-includes/Requests/Transport/fsockopen.php

     
    420420         * Whether this transport is valid
    421421         *
    422422         * @codeCoverageIgnore
    423          * @return boolean True if the transport is valid, false otherwise.
     423         * @return bool True if the transport is valid, false otherwise.
    424424         */
    425425        public static function test($capabilities = array()) {
    426426                if (!function_exists('fsockopen')) {
  • src/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php

     
    3535         * Check if the given item exists
    3636         *
    3737         * @param string $key Item key
    38          * @return boolean Does the item exist?
     38         * @return bool Does the item exist?
    3939         */
    4040        public function offsetExists($key) {
    4141                $key = strtolower($key);
  • src/wp-includes/SimplePie/HTTP/Parser.php

     
    499499         * Prepare headers (take care of proxies headers)
    500500         *
    501501         * @param string  $headers Raw headers
    502          * @param integer $count   Redirection count. Default to 1.
     502         * @param int $count   Redirection count. Default to 1.
    503503         *
    504504         * @return string
    505505         */
  • src/wp-includes/SimplePie/Item.php

     
    203203         * MD5 hash based on the permalink, title and content.
    204204         *
    205205         * @since Beta 2
    206          * @param boolean $hash Should we force using a hash instead of the supplied ID?
     206         * @param bool $hash Should we force using a hash instead of the supplied ID?
    207207         * @param string|false $fn User-supplied function to generate an hash
    208208         * @return string|null
    209209         */
     
    309309         * `<itunes:subtitle>`
    310310         *
    311311         * @since 0.8
    312          * @param boolean $description_only Should we avoid falling back to the content?
     312         * @param bool $description_only Should we avoid falling back to the content?
    313313         * @return string|null
    314314         */
    315315        public function get_description($description_only = false)
     
    379379         * Uses `<atom:content>` or `<content:encoded>` (RSS 1.0 Content Module)
    380380         *
    381381         * @since 1.0
    382          * @param boolean $content_only Should we avoid falling back to the description?
     382         * @param bool $content_only Should we avoid falling back to the description?
    383383         * @return string|null
    384384         */
    385385        public function get_content($content_only = false)
  • src/wp-includes/Text/Diff.php

     
    7575     *
    7676     * @since Text_Diff 1.1.0
    7777     *
    78      * @return integer The number of new lines
     78     * @return int The number of new lines
    7979     */
    8080    function countAddedLines()
    8181    {
     
    9494     *
    9595     * @since Text_Diff 1.1.0
    9696     *
    97      * @return integer The number of deleted lines
     97     * @return int The number of deleted lines
    9898     */
    9999    function countDeletedLines()
    100100    {
     
    139139    /**
    140140     * Checks for an empty diff.
    141141     *
    142      * @return boolean  True if two sequences were identical.
     142     * @return bool  True if two sequences were identical.
    143143     */
    144144    function isEmpty()
    145145    {
     
    156156     *
    157157     * This is mostly for diagnostic purposes.
    158158     *
    159      * @return integer  The length of the LCS.
     159     * @return int  The length of the LCS.
    160160     */
    161161    function lcs()
    162162    {
     
    210210     * with array_walk().
    211211     *
    212212     * @param string $line  The line to trim.
    213      * @param integer $key  The index of the line in the array. Not used.
     213     * @param int $key  The index of the line in the array. Not used.
    214214     */
    215215    static function trimNewlines(&$line, $key)
    216216    {
  • src/wp-includes/blocks.php

     
    812812 * @param array  $style_properties Array containing the properties of the style name,
    813813 *                                 label, style (name of the stylesheet to be enqueued),
    814814 *                                 inline_style (string containing the CSS to be added).
    815  * @return boolean True if the block style was registered with success and false otherwise.
     815 * @return bool True if the block style was registered with success and false otherwise.
    816816 */
    817817function register_block_style( $block_name, $style_properties ) {
    818818        return WP_Block_Styles_Registry::get_instance()->register( $block_name, $style_properties );
     
    825825 *
    826826 * @param string $block_name       Block type name including namespace.
    827827 * @param array  $block_style_name Block style name.
    828  * @return boolean True if the block style was unregistered with success and false otherwise.
     828 * @return bool True if the block style was unregistered with success and false otherwise.
    829829 */
    830830function unregister_block_style( $block_name, $block_style_name ) {
    831831        return WP_Block_Styles_Registry::get_instance()->unregister( $block_name, $block_style_name );
  • src/wp-includes/class-http.php

     
    10761076         * @since 3.7.0
    10771077         *
    10781078         * @param string $maybe_ip A suspected IP address.
    1079          * @return integer|bool Upon success, '4' or '6' to represent a IPv4 or IPv6 address, false upon failure
     1079         * @return int|bool Upon success, '4' or '6' to represent a IPv4 or IPv6 address, false upon failure
    10801080         */
    10811081        public static function is_ip_address( $maybe_ip ) {
    10821082                if ( preg_match( '/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/', $maybe_ip ) ) {
  • src/wp-includes/class-json.php

     
    932932     * @deprecated 5.3.0 Use the PHP native JSON extension instead.
    933933     *
    934934     * @param string
    935      * @return integer length
     935     * @return int length
    936936     */
    937937    function strlen8( $str )
    938938    {
     
    950950     * @deprecated 5.3.0 Use the PHP native JSON extension instead.
    951951     *
    952952     * @param string
    953      * @param integer start
    954      * @param integer length
    955      * @return integer length
     953     * @param int start
     954     * @param int length
     955     * @return int length
    956956     */
    957957    function substr8( $string, $start, $length=false )
    958958    {
  • src/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) {
  • src/wp-includes/class-simplepie.php

     
    10081008         * @deprecated Use {@see get_registry()} instead
    10091009         * @link http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.extends PHP5 extends documentation
    10101010         * @param string $class Name of custom class
    1011          * @return boolean True on success, false otherwise
     1011         * @return bool True on success, false otherwise
    10121012         */
    10131013        /**
    10141014         * Set which class SimplePie uses for caching
     
    13041304        /**
    13051305         * Set the limit for items returned per-feed with multifeeds
    13061306         *
    1307          * @param integer $limit The maximum number of items to return.
     1307         * @param int $limit The maximum number of items to return.
    13081308         */
    13091309        public function set_item_limit($limit = 0)
    13101310        {
     
    13141314        /**
    13151315         * Enable throwing exceptions
    13161316         *
    1317          * @param boolean $enable Should we throw exceptions, or use the old-style error property?
     1317         * @param bool $enable Should we throw exceptions, or use the old-style error property?
    13181318         */
    13191319        public function enable_exceptions($enable = true)
    13201320        {
     
    13281328         * configuration options get processed, feeds are fetched, cached, and
    13291329         * parsed, and all of that other good stuff.
    13301330         *
    1331          * @return boolean True if successful, false otherwise
     1331         * @return bool True if successful, false otherwise
    13321332         */
    13331333        public function init()
    13341334        {
     
    31773177         * @access private
    31783178         * @param SimplePie $a
    31793179         * @param SimplePie $b
    3180          * @return boolean
     3180         * @return bool
    31813181         */
    31823182        public static function sort_items($a, $b)
    31833183        {
  • src/wp-includes/class-wp-block-styles-registry.php

     
    3838         * @param array  $style_properties Array containing the properties of the style name, label,
    3939         *                                 style (name of the stylesheet to be enqueued),
    4040         *                                 inline_style (string containing the CSS to be added).
    41          * @return boolean True if the block style was registered with success and false otherwise.
     41         * @return bool True if the block style was registered with success and false otherwise.
    4242         */
    4343        public function register( $block_name, $style_properties ) {
    4444
     
    6969         *
    7070         * @param string $block_name       Block type name including namespace.
    7171         * @param string $block_style_name Block style name.
    72          * @return boolean True if the block style was unregistered with success and false otherwise.
     72         * @return bool True if the block style was unregistered with success and false otherwise.
    7373         */
    7474        public function unregister( $block_name, $block_style_name ) {
    7575                if ( ! $this->is_registered( $block_name, $block_style_name ) ) {
  • src/wp-includes/class-wp-block-type.php

     
    192192         *
    193193         * @since 5.0.0
    194194         *
    195          * @return boolean Whether block type is dynamic.
     195         * @return bool Whether block type is dynamic.
    196196         */
    197197        public function is_dynamic() {
    198198                return is_callable( $this->render_callback );
  • src/wp-includes/class-wp-hook.php

     
    490490         *
    491491         * @link https://www.php.net/manual/en/iterator.valid.php
    492492         *
    493          * @return boolean
     493         * @return bool
    494494         */
    495495        public function valid() {
    496496                return key( $this->callbacks ) !== null;
  • src/wp-includes/class-wp-http-requests-hooks.php

     
    4545         *
    4646         * @param string $hook       Hook name.
    4747         * @param array  $parameters Parameters to pass to callbacks.
    48          * @return boolean True if hooks were run, false if nothing was hooked.
     48         * @return bool True if hooks were run, false if nothing was hooked.
    4949         */
    5050        public function dispatch( $hook, $parameters = array() ) {
    5151                $result = parent::dispatch( $hook, $parameters );
  • src/wp-includes/class-wp-simplepie-file.php

     
    2323         * @since 3.2.0 Updated to use a PHP5 constructor.
    2424         *
    2525         * @param string       $url             Remote file URL.
    26          * @param integer      $timeout         Optional. How long the connection should stay open in seconds.
     26         * @param int      $timeout         Optional. How long the connection should stay open in seconds.
    2727         *                                      Default 10.
    28          * @param integer      $redirects       Optional. The number of allowed redirects. Default 5.
     28         * @param int      $redirects       Optional. The number of allowed redirects. Default 5.
    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 ) {
  • src/wp-includes/class-wp-simplepie-sanitize-kses.php

     
    2727         * @since 3.5.0
    2828         *
    2929         * @param mixed   $data The data that needs to be sanitized.
    30          * @param integer $type The type of data that it's supposed to be.
     30         * @param int $type The type of data that it's supposed to be.
    3131         * @param string  $base Optional. The `xml:base` value to use when converting relative
    3232         *                      URLs to absolute ones. Default empty.
    3333         * @return mixed Sanitized data.
  • src/wp-includes/class-wp-widget.php

     
    544544         *
    545545         * @since 2.8.0
    546546         *
    547          * @param integer $number Optional. The unique order number of this widget instance
     547         * @param int $number Optional. The unique order number of this widget instance
    548548         *                        compared to other instances of the same class. Default -1.
    549549         */
    550550        public function _register_one( $number = -1 ) {
  • src/wp-includes/class-wp-xmlrpc-server.php

     
    55735573         *
    55745574         * @since 2.8.0
    55755575         *
    5576          * @param integer $post_ID   Post ID.
     5576         * @param int $post_ID   Post ID.
    55775577         * @param array   $enclosure Enclosure data.
    55785578         */
    55795579        public function add_enclosure_if_new( $post_ID, $enclosure ) {
  • src/wp-includes/pomo/po.php

     
    283283
    284284                /**
    285285                 * @param string $filename
    286                  * @return boolean
     286                 * @return bool
    287287                 */
    288288                function import_from_file( $filename ) {
    289289                        $f = fopen( $filename, 'r' );
     
    454454                /**
    455455                 * @param resource $f
    456456                 * @param string   $action
    457                  * @return boolean
     457                 * @return bool
    458458                 */
    459459                function read_line( $f, $action = 'read' ) {
    460460                        static $last_line     = '';
  • src/wp-includes/pomo/streams.php

     
    6262                /**
    6363                 * Reads an array of 32-bit Integers from the Stream
    6464                 *
    65                  * @param integer $count How many elements should be read
     65                 * @param int $count How many elements should be read
    6666                 * @return mixed Array of integers or false if there isn't
    6767                 *  enough data or on error
    6868                 */
     
    175175
    176176                /**
    177177                 * @param int $pos
    178                  * @return boolean
     178                 * @return bool
    179179                 */
    180180                function seekto( $pos ) {
    181181                        if ( -1 == fseek( $this->_f, $pos, SEEK_SET ) ) {
  • src/wp-includes/pomo/translations.php

     
    116116                 * This function should be overridden by the subclasses. For example MO/PO can derive the logic
    117117                 * from their headers.
    118118                 *
    119                  * @param integer $count number of items
     119                 * @param int $count number of items
    120120                 */
    121121                function select_plural_form( $count ) {
    122122                        return 1 == $count ? 0 : 1;
  • src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

     
    13711371         * @since 4.9.0 Added the `$validate` parameter.
    13721372         *
    13731373         * @param string  $template Page template filename.
    1374          * @param integer $post_id  Post ID.
     1374         * @param int $post_id  Post ID.
    13751375         * @param bool    $validate Whether to validate that the template selected is valid.
    13761376         */
    13771377        public function handle_template( $template, $post_id, $validate = false ) {
  • src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php

     
    11731173         *
    11741174         * @since 4.7.0
    11751175         *
    1176          * @param integer $user_id User ID.
     1176         * @param int $user_id User ID.
    11771177         * @param array   $roles   New user roles.
    11781178         * @return true|WP_Error True if the current user is allowed to make the role change,
    11791179         *                       otherwise a WP_Error object.
  • src/wp-includes/rest-api.php

     
    11611161 *
    11621162 * @since 4.7.0
    11631163 *
    1164  * @return integer 401 if the user is not logged in, 403 if the user is logged in.
     1164 * @return int 401 if the user is not logged in, 403 if the user is logged in.
    11651165 */
    11661166function rest_authorization_required_code() {
    11671167        return is_user_logged_in() ? 403 : 401;
     
    12581258 * @since 4.7.0
    12591259 *
    12601260 * @param bool|string|int $value The value being evaluated.
    1261  * @return boolean Returns the proper associated boolean value.
     1261 * @return bool Returns the proper associated boolean value.
    12621262 */
    12631263function rest_sanitize_boolean( $value ) {
    12641264        // String values are translated to `true`; make sure 'false' is false.
     
    12791279 * @since 4.7.0
    12801280 *
    12811281 * @param bool|string $maybe_bool The value being evaluated.
    1282  * @return boolean True if a boolean, otherwise false.
     1282 * @return bool True if a boolean, otherwise false.
    12831283 */
    12841284function rest_is_boolean( $maybe_bool ) {
    12851285        if ( is_bool( $maybe_bool ) ) {
  • src/wp-includes/widgets/class-wp-widget-custom-html.php

     
    5858         *
    5959         * @since 4.9.0
    6060         *
    61          * @param integer $number Optional. The unique order number of this widget instance
     61         * @param int $number Optional. The unique order number of this widget instance
    6262         *                        compared to other instances of the same class. Default -1.
    6363         */
    6464        public function _register_one( $number = -1 ) {
  • src/wp-includes/widgets/class-wp-widget-media.php

     
    9696         *
    9797         * @since 4.8.0
    9898         *
    99          * @param integer $number Optional. The unique order number of this widget instance
     99         * @param int $number Optional. The unique order number of this widget instance
    100100         *                        compared to other instances of the same class. Default -1.
    101101         */
    102102        public function _register_one( $number = -1 ) {
  • src/wp-includes/widgets/class-wp-widget-text.php

     
    4545        /**
    4646         * Add hooks for enqueueing assets when registering all widget instances of this widget class.
    4747         *
    48          * @param integer $number Optional. The unique order number of this widget instance
     48         * @param int $number Optional. The unique order number of this widget instance
    4949         *                        compared to other instances of the same class. Default -1.
    5050         */
    5151        public function _register_one( $number = -1 ) {