This repository has been archived by the owner. It is now read-only.
a fully responsive version of the P2 theme from Automattic
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


=== P2 ===

A group blog theme for short update messages, inspired by Twitter.

== Description ==

P2 is shorter, better, faster, stronger.

P2 is a theme for WordPress that transforms a mild-mannered blog into a super-blog with features like inline comments on the homepage, a posting form right on the homepage, inline editing of posts and comments, real-time updates so new posts and comments come in without reloading, and much more.

P2 is available on
...or you can download it for

You can also check out a demo of the theme in action:
If you need P2 support or want to pitch in, drop a line on the forums:

== Further reading ==

Matt Mullenweg: How P2 changed Automattic:

Official announcement post on

== Changelog ==

= 1.4.2 - July 2012 =
* Fix a whitespace bug in the post form in Chrome Beta and Canary.

= 1.4.1 - July 2012 =
* Replace image usage with css where possible.
* Add 2x versions of all icons for retina displays.
* Replace the spinner gif with spin.js.
* Remove all rss icons and links from the theme.
* Fix double margin bug with the avatar in post form.
* Fix jumpiness when comments are edited.

= 1.4.0 - April 2012 =
* Todo list creation: use lowercase "o" and "x".
* Add support for custom menus.
* Allow mentions to work with default permalink setting.
* Multiple updates to iPhone stylesheet.
* Ensure that mentions get recorded in post/comment meta.
* Remove call to get_users_of_blogs().
* Multiple textdomain fixes.
* RTL style fixes.
* Fix textarea resizing for front-end editing.
* Use dollar sign to reference the jQuery object.
* Better i18n for strings in p2_get_discussion_links().
* Add styling for abbr element.
* CSS Cleanup.
* Better support for Latex images.
* Replace call to deprecated function get_userdatabylogin().

= 1.3.4 - Dec 2011 =
* Add support for post formats: link, quote, status (keeping back compat with categories)
* Fix bug where front-end editor didn't ignore sourcecode shortcode content
* Action links: add title and class attributes for easier styling
* Highlight current user's mentions a bit more than the rest
* Auto-complete UI improvements
* Add new Santa Hat background for the holidays
* New feature: task lists with states (checked, unchecked)
* Huge improvements to list creator: allow nesting, allow ordered lists
* Style fixes for iPhone
* Pinking shears! Trim whitespace from all line endings, all files
* Updated FR translation from ms-studio
* Updated pt_PT translation from vanillalounge

= 1.3.3 - Oct 4 2011 =
* Hide the actions bar when using inline editing tool for post or page
* Before adding links to mention names, make sure the name only appears in the list once; this fixes the case where names mentioned more than once in a post were getting additional anchors added
* When you have the tag list open, hitting Return shouldn't submit the post, it should do nothing
* Set svn:eol-style on JS and TXT files
* Escape get_comment_link() properly
* Escape translatable attribute values with esc_attr_e()
* Allow toggling comment threads on tag archives, props westi
* Improve mentions.php for backcompat with older versions of WP (< 3.1).
* Updates to Italian translation by
* Added Kurdish translation by brwa.osman

= 1.3.2 - Jul 21 2011 =
* Resubmit to because Theme Check didn't allow 'comment-reply' being enqueued as a dependency

= 1.3.1 - Jul 12 2011 =
* Change sticky post color to blue, and place new posts after sticky posts
* Reset the height of the new post textearea after a successful post
* Do not confuse logged out with offline: better logged out/offline error handling
* Add author template so P2 can catch 404 request to non-existent authors on current blog
* Use user_nicename for @-name mention hint, since that is what mentions uses

= 1.3.1-alpha - Jun 21 2011 =
* Refactor P2 into components
* Improve mentions and autocomplete
* Fix malformed dates in Chrome
* Fix the_author underlining bug
* JS locale improvements
* Fix Recent Comments widget to clear cache on comment delete
* Validate custom background input for proper format; add missing # if not in color value
* Take use_ssl user option into account when deciding to display media buttons
* Take domain mapping into account when generating the Ajax URL
* Change 'Cancel reply' hotkey to shift+esc and add an 'are you sure' dialog
* Add 'p2_found_mentions' filter to allow plugins to alter which mentions are attached to a post/comment

= 1.2.3 - Mar 1 2011 =
* Add two new action hooks: p2_post_form and p2_action_links
* Add p2_excerpted_title to provide titles with only whole words
* Run make_clickable later to avoid shortcode conflicts
* Authors widget style fixes
* Allow image upload from front-end regardless of domain and HTTPS setting
* Change include to include_once to avoid conflicts with plugins and clean up require and include calls
* Fix page navigation float clearing and pingback spacing
* Add sticky post styles
* RTL CSS updates
* i18n for user completion JS
* DE translation by Joachim Haydecker
* SK translation by angeloverona
* Updated JA translation from OKAMOTO Wataru

= 1.2.2 - Jan 6 2011 =
* Re-enable is_user_member_of_blog: now works for all cases with back compat
* Add 3.1 support for get_users() with fallback to get_users_of_blog() for back compat
* Hide name mentions taxonomy from Custom Menu form
* Hide screen-reader-text in search form (sidebar and main content)
* Fix empty array warnings
* Misc HTML and CSS validation fixes
* Change discussion author links to use get_comment_author_link
* Add NL translation by Remkus de Vries

= 1.2.1 - Dec 24 2010 =
* Remove is_user_member_of_blog until it's backwards compatible and not dependent on multisite

= 1.2 - Dec 23 2010 =
* Fix inline editing on pages
* Fix comment toggle on pages
* Add title attribute to show @name mention usernames
* Order tags by popularity and display count for tag dropdown; update look to match username dropdown
* Add username suggest autocomplete dropdown based on current users of the site

= 1.1.9 - Nov 30 2010 =
* Remove json.php and use built-in WP JSON functionality
* Add comment paging
* Fix date format bug where an extra 0 was added to the month value
* Fix issues with Custom Menus when adding pages and categories to a menu
* Fix bug where moderated comments did not appear
* Moved changelog.txt to readme.txt
* Misc fixes for 3.1 compatibility
* Portuguese translation update by José Fontainhas (vanillalounge)

1.1.8 - 12 Nov 2010 =
* Show Toggle Comment Threads link on search results view
* Enable auto-parse function for unordered lists in posts and comments
* Fix issue with editing page title from front end
* Remove permalink from pages
* Don't show title for posts in status, quote, or link categories
* Updated Spanish translation by larusalka

= 1.1.7 - 30 Sep 2010 =
* Make quote content links clickable
* Smarter loading for JS libraries
* Update front-end edit form to support editing tags, post title, and quote fields
* Fix display bugs
* Fix issue where posts appear repeatedly on the front page
* Update author name to use display_name instead of nickname on author page
* Uighur translation by Moorshidi (
* Chinese translation by joojen (
* Slovenian translation by dz0ny

= 1.1.6 - 30 Aug 2010 =
* Improve textarea auto-resizing in quick post form
* Fix IE8 comment visibility toggle
* Add styles for network signup form
* Fix for IE prompting user when leaving a page after comment
* Fix minor PHP undefined and redeclared errors and deprecated function calls
* Use built-in WordPress comment_form()
* Don't show comments for password-protected posts
* Add automatic feed links support
* Enable custom background
* Replace includes with get_template_part
* Fix missing after_widget in recent comments widget
* Add 404.php template
* Fix post nav for older/newer with correct placement
* Improve search.php message and add inline search form
* Norwegian translation by Peter Holme (

= 1.1.5 - 8 June 2010 =
* Supported by >= 3.0
* Fixed case where Post Title was used as title for new post
* Fixed media URLs
* Fixed reply link in comment form being appended to wrong post
* Better support for custom header images
* Fixed Edit Page link
* Belorussian translation by  Marcis G. (
* Czech translation by Martin Jurica (

= 1.1.4 - 8 Jan 2010 =
* Nicolas Friedli French translations
* Two sidebars for custom css
* Updated CSS

= 1.1.3 - 5 Dec 2009 =
* Fix for subdirectory installs and media uploads
* RTL updates
* Template tag updates

= 1.1.2 - 2 Dec 2009 =
* Fix for subdirectory installs (with root directory "homes") and media uploads
* Fix for PHP4 issues with str_ireplace

= 1.1 - 26 Nov 2009 =
* Supported by >=2.9 beta
* @name support
* Proper child theme support
* Completely restructured XHR code
* New files to manage functions, including template-tags.php
* iPhone style support
* Refactored JavaScript
* Speed improvements
* Large modifications to backend JS and theme management
* Options for simple style changes, including a custom header

= 1.0.5 - 12 May 2009 =
* Proper 304 response for ajax updates
* ajax updates for each template page
* Fixed posts may create blank titles still
* added hover affect for postbox
* added postbox to every page
* es translations thanks to Luxiano

= 1.0.4 - 7 May 2009 =
* Danish translations (props Adamsen)
* Italian translations (props
* Update for short tags problem
* Update for navigation issues on single.php
* Fixed keyboard shortcuts menu layout
* Added ability for any title that is not auto-generated, to appear as a large title - this is an option which you can turn on and off
* Made trackbacks only visible from archive pages
* Fix Older/Newer link text
* Move logout link
* Comment permalink fix
* Fixed title count for frontpage showing up on single posts
* Fixed bug if posting to an empty blog

= 1.0.3 - 15 April 2009 =
* Fixed JSON class loading twice
* Japanese Translations (props OKAMOTO Wataru)

= 1.0.2 - 13 April 2009 =
* Lots of bug fixes
* Released to themes directory

= 1.0.1 - 11 Mar 2009 =
* Prevent scheduled posts from appearing