«

»

Jul
08

Capital W Capital P

I have blogged before about WordPress 3.0 and all the new features packed into it. One that slipped past my overview and indeed slipped past almost all who have talked so much about this new version of wordpress is a nasty little bit of code hidden away and apparently surreptitiously included by the original developer of WordPress Matt Mullenweg in what some say is a personal mission.

The coe in question is fairly simple, and what it does is search all your posted content for the string ‘wordpress’ and ensures that it is in the ‘correct’ format with a capital W and capital P.

This code was applied by change set 14996 which includes the new function as seen below:

 /** 
* 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 ); 

The comments added to that function speaks volumes. It is rather ironic that from someone who preaches open source and allowing users to freely do what ever they wish with software and although it it a very minor point I do not see why they should insist that wordpress is written in the ‘correct’ format.

Matt Mullenweg claims that this small piece of code will not have any impact on users what-so-ever, however, it is clear that he is wrong. I have had the situation today where an apparent bug with a link cloaking script in my WordPress Datafeed Import Plugin was indeed this silly little function messing up the URLS. I have a test area on my server where I install many versions of WordPress so that I can test my scripts and plugins. These are all within a folder called WordPress all in lowercase. When the masked urls are created wordpress finds the wordpress string and changes the case. This in turn breaks the link as Linux platforms are case sensative.

Since I found this and doing a little more digging, I have found that there are reports of people having problems with images named WordPress and indeed others who have their wordpress install in a wordpress folder, find that any internal links in their site will no-longer work.

I really do not understand this position, yes if this is the way that Matt Mullenweg origionally intended WordPress to be written it must be frustrating to see it written otherwise.  However, it does not make any different for SEO, Google is not case sennsative. I agree that they should control the image and the wordpress logo, however, when it is text in a blog post like this, and you subscribe to the full ethos of open source software then this sort of tinkering and forcing the hand of the blogger is simply out of order.

Install the Remove WordPress to WordPress filter which will disable this silly little function…

Related posts:

  1. WordPress 3.1 Release And And Digitalquill Plugin Updates Regular users of WordPress will already be aware that version 3.1 code named ‘Reinhardt’ has just been released. This is the 14th release of WordPress...
  2. WordPress 3.2 Released I Hope You Are Ready! WordPress 3.2 has been released this morning, I hope that you are ready! As I mentioned in my review of the release candidate of WordPress...
  3. Mistakes With Network Active Plugins On WordPress Multi-site Several days ago I was working on a network of WordPress sites I have setup, all using WordPress Multi Site, not an especially strange setup,...
  4. Amazon Import Plugin For WordPress Live Demo Now Working I have just put the Live Demo of the Amazon import Plugin for WordPress Live again. I had hope to get this done yesterday, however,...
  5. Datafeed Import Plugin For WordPress April Discount We are offering our Datafeed Import Plugin for WordPress at a discounted price of £20 for the whole of April when you buy from the...
  6. Timthumb Vulnerability Check There has been a great deal of press and concern in the WordPress community about a Vulnerability found in the TimThumb script whcih is used...
  7. Ebay Import Plugin For WordPress I have just completed work on my latest plugin ‘Ebay Import Plugin for WordPress’ I am looking for affiliates who currently use the Ebay Partner...
  8. Datafeed Import Plugin For WordPress 2.06 Released We have today released version 2.06 of our popular Datafeed Import Plugin for WordPress. We have had this release in the pipeline for some time,...
  9. How To Check If You Are Ready For WordPress 3.2 If you have ready my previous post about a first view of WordPress 3.2, you will have noted that there are some significant requirements changes...
  10. A Big Thanks For All Who Bought My Software I just thought that I would post a little note to say thank you to everyone who bought a copy of any of my WordPress...

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>