[wp-trac] [WordPress Trac] #20357: Add Return Empty String Function

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 4 21:20:39 UTC 2012


#20357: Add Return Empty String Function
-------------------------+-----------------------------
 Reporter:  wpsmith      |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 There's an easy way to return boolean, integer (0), and an empty array.
 But what about an empty string?
 root\wp-includes\functions.php
 {{{
 /**
  * Returns an empty string.
  *
  * Useful for returning an empty string to filters easily.
  *
  * @since 3.0.0
  * @see __return_empty_string()
  * @return string Empty string
  */
 function __return_empty_string() {
         return '';
 }
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20357>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list