Latest Entries

Disable Title Rewrite in WordPress SEO

Here are two simple filters to remove the rewrite of <title> content functionality provided by WordPress SEO:

// Remove the wp_title filter
add_action( 'init', 'remove_wpseo_title_rewrite' );

function remove_wpseo_title_rewrite() {
        global $wpseo_front;

	remove_filter( 'wp_title', array( $wpseo_front, 'title' ), 15 );
}

// Remove the title metabox from backend UI
add_filter( 'init', 'remove_wpseo_title_rewrite_metabox' );

function remove_wpseo_title_rewrite_metabox( $metaboxes ) {
	if ( isset( $metaboxes['title'] ) )
		unset( $metaboxes['title'] );

	return $metaboxes;
}

Interview with Dougal Campbell

It was in these early days that I first heard of this CGI script called PHP/FI. At this time, “PHP” stood for “Personal Home Pages” — it was only later that it was renamed to mean “PHP Hypertext Processor”. One of my first experiments was to use PHP and MySQL to create a database-driven news site for our customers, which I loosely modeled after Slashdot. It was my first blog-like system, pulling articles from the database newest-first, and displaying them ten-per-page. I didn’t even bother to make an article editing system, I just used PHPMyAdmin to add new entries to the database.

via Dougal Campbell Interview

Building Medium

One of the first iterations of Medium publishing platform

The making of Medium.com is a truly great insight into how a team of paid designers and developers lead by one vision and visionary try to build a modern day publishing platform.

While the idea behind Medium might be good, I think that at the current iteration the interface for consuming the content is really terrible and confusing. All posts are grouped into “collections” (which are just glorified categories) and they are almost impossible to navigate. It doesn’t provide any sense of the amount of collections there is or a way to see most popular / populated collections.

Update: It looks like they have recently added a dedicated page for all collections which makes it a lot easier to navigate and explore.

FeedBurner and WordPress

While adding new blogs to WP Roll I noticed that a lot of them still redirect their RSS feeds to FeedBurner. I guess it’s because of subscriber stats, email delivery and other little features that FeedBurner provides.

However, like others I have a strong feeling that FeedBurner will be the next product that Google shuts down. Luckily, FeedBurner offers 30-day feed redirection option, if you decide to remove the feed from FeedBurner:

FeedBurner redirect feed after removing

So go ahead and claim back your short and awesome feed URL that WordPress provides by default.

Darkleech and Apache

According to recent blog posts published here and here by researchers from security firm Securi, Darkleech uses rogue Apache modules to inject malicious payloads into the webpages of the sites it infects and to maintain control of compromised systems. Disinfecting Web servers can prove extremely difficult since the malware takes control of the secure shell (SSH) mechanism that legitimate administrators use to make technical changes and update content to a site.

via Exclusive: Ongoing malware attack targeting Apache hijacks 20,000 sites

Automatic Theme Fallbacks for Post Formats in WordPress 3.6

WordPress 3.6 adding post format content to main content automatically

Today I noticed that WordPress (3.6-alpha-23883) has started automatically adding content to my posts that use post format other than the standard “post” and have some of the new meta fields filled out. Then I found this ticket #23347 which along with the attached patches explained everything — posts of the following post format: link, image, quote, video and audio will have post_formats_compat applied to the_content filter in wp-includes/default-filters.php, which means that all themes that don’t explicitly define

add_theme_support( 'structured-post-formats', array( 'link', 'image', 'etc...' ) )

will have that meta information prepended or appended automatically to post content.

Solution

Simply remove post_formats_compat from the_content filter, like so:

remove_filter( 'the_content', 'post_formats_compat', 7 );

or mark your theme as being aware of that new post format meta:

add_theme_support( 'structured-post-formats', array( 'link', 'image', 'quote', 'video', 'audio' ) );

Page 1 of 30