My Plugins With WordPress 2.6 Beta

I have downloaded WordPress 2.6 Beta 1 and installed it. Not much difference from WordPress 2.5 in terms of the layout.

Now on the extreme top menu on the extreme right, there is a link called “Speed up!” which links to Google Gears.

In the Dashboard, right under “Right Now”, there is a comment break down added to it. Here is an example: “You have 1 post, 1 page, contained within 1 category and 0 tags. Current comment break down: 1 total, 1 approved, 0 spam and 0 awaiting moderation.”

When you write a page or post, underneath the “Save” and “Published” button, there is a word count indicator.

The display of themes under “Available Themes” has also changed a little.

Now back to serious business.

I am still deciding whether or not to maintain WordPress 2.5 compatibility for the next wave of updates for my plugins as WordPress 2.6 introduces a lot of constants like “WP_PLUGIN_URL”, “WP_PLUGIN_DIR”
“WP_CONTENT_DIR”, “WP_CONTENT_URL”, etc.

2 potential issues that would break my plugin in WordPress 2.6 and I will be unable to fix it unless I find another way to do the AJAX, “Allow wp-config.php to exist one level up from WordPress root directory
and “Allow wp-content directory to exist in a custom location (not relative to ABSPATH)“.

Argh! WordPress 2.5 has the shortest development cycle!

1 Star2 Stars3 Stars4 Stars5 Stars (59 votes, average: 3.49 out of 5)

WordPress 3.9.2

WordPress 3.9.2 has been released and it is a security release and hence it is recommended that you update your site immediately.

This release fixes a possible denial of service issue in PHP’s XML processing, reported by Nir Goldshlager of the Salesforce.com Product Security Team. It  was fixed by Michael Adams and Andrew Nacin of the WordPress security team and David Rothstein of the Drupal security team. This is the first time our two projects have coordinated on joint security releases.

WordPress 3.9.2 also contains other security changes:

  • Fixes a possible but unlikely code execution when processing widgets (WordPress is not affected by default), discovered by Alex Concha of the WordPress security team.
  • Prevents information disclosure via XML entity attacks in the external GetID3 library, reported by Ivan Novikov of ONSec.
  • Adds protections against brute attacks against CSRF tokens, reported by David Tomaschik of the Google Security Team.
  • Contains some additional security hardening, like preventing cross-site scripting that could be triggered only by administrators.

We appreciated responsible disclosure of these issues directly to our security team. For more information, see the release notes or consult the list of changes.

Download WordPress 3.9.2 now or go to Dashboard -> Updates and click “Update Now”.

1 Star2 Stars3 Stars4 Stars5 Stars (49 votes, average: 3.49 out of 5)

Canonical URLs

Mark has posted a very detailed post containing this Canonical URLs, a new feature in WordPress 2.3 and personally I like this feature a lot because some of my users are complaining to me that when they are using my WP-PageNavi, when they access http://example.com/page/1/ they do not get redirected to http://example.com, but I told them it is a WordPress issue over here and finally, this “bug” is gone for good.

So, what’s the problem with this? The URLs are all showing the exact same content, so why should it matter? Well, search engines can’t assume that all of these alternative URLs represent the same resource. So they don’t automatically get condensed into a single resource. As a result, you can actually end up competing against yourself in search engine rankings. So to avoid confuse search engines and to consolidate your rankings for your content, there should only be one URL for a resource. We call this URL the canonical URL. Canonical means “standard” or “authoritative”. It’s the one that WordPress generates, and it’s the one that you want everyone to use.

1 Star2 Stars3 Stars4 Stars5 Stars (64 votes, average: 3.47 out of 5)

WP-Print And WP-EMail On WP 2.3

Someone reported to me that WP-Email is not working on this site, and after some checking, I also found out that WP-Print is also not working due to the extra / that WordPress generates for wp-print and wp-email permalink structure in WP 2.3.

WP-EMail has another problem which took me 4 hours just go pin-point it. Apparently when it includes wp-email.php and in wp-email.php there is a add_filter(‘the_title’) which hooks onto the title filter. For some reasons, the core WordPress function get_the_title() is casing the server to throw an error. In order to bypass it I have to create a new function to emulate something like the get_the_title() function.

I have since fixed all the bugs that I mentioned above and now WP-Print and WP-EMail will only work for WP2.3 and nothing below it. Sorry for any inconvenience caused.

1 Star2 Stars3 Stars4 Stars5 Stars (36 votes, average: 3.47 out of 5)