WordPress.org

Make WordPress Core

Changeset 19607


Ignore:
Timestamp:
12/20/11 20:58:30 (2 years ago)
Author:
nacin
Message:

Add __return_null() to complement the existing true, false, zero, and empty array methods. props johnbillion, fixes #18845.

File:
1 edited

Legend:

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

    r19602 r19607  
    35033503 
    35043504/** 
     3505 * Returns null. 
     3506 * 
     3507 * Useful for returning null to filters easily. 
     3508 * 
     3509 * @since 3.3.0 
     3510 * @return null 
     3511 */ 
     3512function __return_null() { 
     3513    return null; 
     3514} 
     3515 
     3516/** 
    35053517 * Send a HTTP header to disable content type sniffing in browsers which support it. 
    35063518 * 
Note: See TracChangeset for help on using the changeset viewer.