WordPress.org

Make WordPress Core

Ticket #22251: 22251.patch

File 22251.patch, 598 bytes (added by evansolomon, 3 years ago)
  • wp-includes/functions.php

     
    37943794function wp_checkdate( $month, $day, $year, $source_date ) { 
    37953795        return apply_filters( 'wp_checkdate', checkdate( $month, $day, $year ), $source_date ); 
    37963796} 
     3797 
     3798/** 
     3799 * Determine if a constant exists and evaluates to boolean true 
     3800 * 
     3801 * @since  3.5.0 
     3802 * 
     3803 * @return bool true|false 
     3804 */ 
     3805function wp_constant( $constant ) { 
     3806        return defined( $constant ) && constant( $constant ); 
     3807}