[wp-trac] [WordPress Trac] #19347: Ugly alert: false !== strpos( $which_one_was_needle, $this_one )

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 28 16:29:40 UTC 2012


#19347: Ugly alert: false !== strpos( $which_one_was_needle, $this_one )
---------------------------------------------+-----------------------------
 Reporter:  nbachiyski                       |       Owner:  westi
     Type:  enhancement                      |      Status:  reviewing
 Priority:  normal                           |   Milestone:  Future Release
Component:  General                          |     Version:
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch westi-likes 3.5-early  |
---------------------------------------------+-----------------------------

Comment (by nbachiyski):

 And I'd like to propose another a last-minute change. In the spirit of the
 WordPress naming scheme, I think the best names would be:

  * {{{wp_starts_with()}}}
  * {{{wp_ends_with()}}}
  * {{{wp_contains()}}}

 The arguments and their order should be obvious.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19347#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list