WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/03/2021 09:55:04 PM (11 months ago)
Author:
johnbillion
Message:

Docs: Various docblock corrections particularly relating to boolean types.

See #51800

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/plugin.php

    r49196 r49926  
    134134 *                   hook is returned, or false if the function is not attached. When using the
    135135 *                   $function_to_check argument, this function may return a non-boolean value
    136  *                   that evaluates to false (e.g.) 0, so use the === operator for testing the
     136 *                   that evaluates to false (e.g. 0), so use the === operator for testing the
    137137 *                   return value.
    138138 */
     
    567567 *                  hook is returned, or false if the function is not attached. When using the
    568568 *                  $function_to_check argument, this function may return a non-boolean value
    569  *                  that evaluates to false (e.g.) 0, so use the === operator for testing the
     569 *                  that evaluates to false (e.g. 0), so use the === operator for testing the
    570570 *                  return value.
    571571 */
Note: See TracChangeset for help on using the changeset viewer.