WordPress.org

Make WordPress Core

Changeset 13526


Ignore:
Timestamp:
03/01/2010 08:50:27 AM (9 years ago)
Author:
nacin
Message:

Add return_true() to complement return_false(). see #12381

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r13508 r13526  
    40494049
    40504050/**
     4051 * Returns true
     4052 *
     4053 * Useful for returning true to filters easily
     4054 *
     4055 * @see __return_false()
     4056 * @return bool true
     4057 */
     4058function __return_true() {
     4059    return true;
     4060}
     4061
     4062/**
    40514063 * Returns false
    40524064 *
    40534065 * Useful for returning false to filters easily
    4054  *
     4066 *
     4067 * @see __return_true()
    40554068 * @return bool false
    40564069 */
Note: See TracChangeset for help on using the changeset viewer.