Posts 2 Posts: Version 0.9
This version brings admin box enhancements, multiple connections per post type and more.
This version brings admin box enhancements, multiple connections per post type and more.
You know what really grinds my gears? Code duplication. And you know where you can find plenty of that? In WordPress themes! This has gotten a little better recently, thanks to get_template_part(), but it’s still not a complete solution.
In previous versions, the plugin stored individual post ids in a cookie. To avoid having a huge cookie, I limited it to 500 ids. Needless to say, this was not a very scalable solution.
In the current version, it remembers the query vars instead, which are later used to get the adjacent posts.
A while ago I started using Mark Jaquith’s gitified WordPress for contributing to Core.
The trouble is that the patches generated by git diff aren’t exactly the same as the ones generated by svn. I’ve tried several cooky solutions until I found this one.
The main feature added in this version is the “Provides:” header. This allows virtual packages to be defined. The first advantage is that dependencies are no longer tied to plugin file paths. More importantly, you can now have dependency alternatives.
A significant enhancement in this version is the ability to create draft posts from the connection box. The idea is to be able to make the connections first and then write the content.
Filters are the most awesome thing about WordPress, code wise.
Passing a class method to a filter, however, is not so awesome.
This version comes with better titles and easier customization through Mustache templates.
This version integrates Aloha Editor, a rising star on the wysiwyg editor scene. Unlike other established editors like TinyMCE, it makes the content editable inline, rather than using an iframe, which means that all the theme styles are preserved.
In previous versions, you entered editing mode by double-clicking on the element. This required all sorts of hacks to make single-clicking on the same element to work.
In the new version, there’s a slick overlay with an edit button that you only have to click once.