[wp-hackers] Putting the P in WordPress

John Blackbourn johnbillion+wp at gmail.com
Sat Jul 3 21:42:03 UTC 2010


There's some discussion here around problems that this feature may
cause some people: http://core.trac.wordpress.org/ticket/13971

On Sat, Jul 3, 2010 at 12:28 PM, Brian Layman <bulk at thecodecave.com> wrote:
>>> And if I am not mistaken this kind of thing,misprint or oversight is the
>>> exact reason that Matt either developed or commissioned a plugin that
> would
>>> correct instances of WordPress being written any other way than
> WordPress.
>> When I wrote W-P[1] - a long time ago it seems now, Matt most certainly
>> did not commission it. ;)
>
> Hah!  Now that's old school.
>
> It's now a built in function at the end of formatting.php:
>
> /**
>  * Forever eliminate "Wordpress" from the planet (or at least the little bit
> we can influence).
>  *
>  * Violating our coding standards for a good function name.
>  *
>  * @since 3.0.0
>  */
> function capital_P_dangit( $text ) {
>       return str_replace( 'Wordpress', 'WordPress', $text );
> }
>
> ______________________________________________
> Brian Layman
> eHermits, Inc.
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list