Download pdf - Wordpress 3.6

Transcript
Page 1: Wordpress 3.6
Page 2: Wordpress 3.6

• Default Theme – Twenty Thirteen

• Revision Management

• Auto Save & Post Locking

• HTML 5 Audio & Video

• Menu Editor

Page 3: Wordpress 3.6

New default theme called Twenty Thirteen – http://twentythirteendemo.wordpress.com/

Page 4: Wordpress 3.6

• Slider to compare revisions

• Changes highlighted side-by-side

Page 5: Wordpress 3.6

• Auto save feature isn’t new

• Utilises browser storage as well as DB

Page 6: Wordpress 3.6

• New separate user stream for auto saves

• Enables Post Locking and User Notifications

Page 7: Wordpress 3.6

Session expiration no longer logs you out completely. Pop-up login = stay in editor

Page 8: Wordpress 3.6

• Biggest thing for video & audio bloggers since sliced bread.

• Upload mp3 and mp4 files

• New HTML 5 player – no need for flash!!

Page 9: Wordpress 3.6

New default theme called Twenty Thirteen

Page 10: Wordpress 3.6

• Audio / Video API

• HTML 5 semantic markup

• More filters

• Updated Libraries

• WordPress Heartbeat

Page 11: Wordpress 3.6

• 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 );

Page 12: Wordpress 3.6

• 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’

Page 13: Wordpress 3.6

• Filter shortcode attributes

– shortcode_atts_{$shortcode}

• Filter post revisions ad-hoc

– wp_revisions_to_keep

• overrides WP_POST_REVISIONS

Page 14: Wordpress 3.6

• 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

Page 15: Wordpress 3.6

• 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)

Page 16: Wordpress 3.6

• 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

Page 17: Wordpress 3.6

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);

Page 18: Wordpress 3.6

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;

}

Page 19: Wordpress 3.6

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' }

}

});

});

Page 20: Wordpress 3.6

• 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)

Page 21: Wordpress 3.6

• 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

Page 22: Wordpress 3.6
Page 24: Wordpress 3.6

• [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

Page 25: Wordpress 3.6

Recommended