Download - Wordpress 3.6
• Default Theme – Twenty Thirteen
• Revision Management
• Auto Save & Post Locking
• HTML 5 Audio & Video
• Menu Editor
New default theme called Twenty Thirteen – http://twentythirteendemo.wordpress.com/
• Slider to compare revisions
• Changes highlighted side-by-side
• Auto save feature isn’t new
• Utilises browser storage as well as DB
• New separate user stream for auto saves
• Enables Post Locking and User Notifications
Session expiration no longer logs you out completely. Pop-up login = stay in editor
• Biggest thing for video & audio bloggers since sliced bread.
• Upload mp3 and mp4 files
• New HTML 5 player – no need for flash!!
New default theme called Twenty Thirteen
• Audio / Video API
• HTML 5 semantic markup
• More filters
• Updated Libraries
• WordPress Heartbeat
• Allows access to AV meta data such as ID3
– wp_read_audio_metadata($file);
– wp_read_video_metadata( $file );
– wp_add_id3_tag_data( $metadata, $data );
• A theme feature
– add_theme_support( 'html5' );
“allows themes to explicitly choose to apply HTML5 markup for search forms, comment forms, and comment lists”
– ‘comment-list’, ‘search-form’, ’comment-form’
• Filter shortcode attributes
– shortcode_atts_{$shortcode}
• Filter post revisions ad-hoc
– wp_revisions_to_keep
• overrides WP_POST_REVISIONS
• has_shortcode( $content, $tag )
• shortcode($out, $pairs, $atts)
• get_post_galleries($post)
– Get access to all the galleries on a page/post
• wp_registration_url()
– Echo the registration URL
• Update to jQuery Color 2.2.1
• Update to Backbone 1.0.0
• Update to jQuery UI 1.10.3
• Services_JSON 1.0.3
• Iris 1.0.3
• hoverIntent r7
• MediaElement.js 2.11.1 (New)
• getid3 1.9.7 (New)
• Regular communication between the user’s browser and the server
1. Data sent from browser to server
2. Response sent from server to browser
• Used for new post locking system
• API allows plugins to hook into both ends of the communication
• Happens periodically in the background
Sending data from Browser to Server
– wp.heartbeat.enqueue($handle, $data, $override)
e.g.
wp.heartbeat.enqueue(‘lc-hb-plugin’, {‘beer’: ‘good’, ‘pizza’: ‘yummy’, }, false);
Sending response from Server to Browser – For logged in users:
• add_filter( ‘heartbeat_received’, ‘lc_response’, 10, 3 )
– For logged out sessions: • add_filter( ‘heartbeat_nopriv_received’, ‘lc_response’, 10, 3 )
e.g.
function lc_response ( $response, $data, $screen_id ) {
if ( isset( $data[‘lc-hb-plugin‘] ) ) { // We have data with our handle! Lets respond with something...
echo $data[‘lc-hb-plugin’][‘beer’]; //prints ‘good’;
$response[‘lc-hb-plugin’] = array( ‘hello’ => ‘world’ );
}
return $response;
}
Listening for the Return ‘Beat’ – WordPress triggers ‘heartbeat_tick’ event
e.g. jQuery(document).ready( function($) {
$(document).on( 'heartbeat-tick.lc-hb-plugin', function( event, data ) {
if ( data.hasOwnProperty( ‘lc-hb-plugin' ) ) {
console.log( data[‘lc-hb-plugin'] ); // Prints to the console { 'hello' : 'world' }
}
});
});
• October release date
• Language packs
• Auto-updates for minor releases
– With option to turn this off
• User password strength enhancements
• Trac ticket clean up (~3,500 open tickets)
• December release date
• Could see…
– MP6 project inclusion (admin dashboard revamp)
– Twenty Fourteen in beta
– Widget admin area overhaul
– Dashboard help
– Post formats UI (pulled from 3.6 final release)
– Revamp wordpress.org theme repository
http://twentyfourteendemo.wordpress.com/
• [4] http://wpmu.org
• [5] http://www.wpbeginner.com
• [7] http://vip.wordpress.com
• [8] http://www.ode2eggs.com
• [9] http://blog.teamtreehouse.com
• [16] http://www.seodenver.com