Upload
andrewnacin
View
222
Download
0
Embed Size (px)
Citation preview
8/14/2019 D.C. meetup presentation on WordPress 3.0
1/18
WordPress 3.0WordPress DC Meetup, Feb. 24, 2010
Andrew Nacin
WordPress Core Committer
andrewnacin.com
8/14/2019 D.C. meetup presentation on WordPress 3.0
2/18
Scope for 3.0
Whats in 3.0
The Merge
Menus Custom post types
Custom taxonomies
New default theme Core plugins
Whats not in 3.0
Media/Upload (3.1)
Major UI changes TinyMCE
PHP 5
8/14/2019 D.C. meetup presentation on WordPress 3.0
3/18
Hosting multiple blogs
Top-level categories
Shared user tables
wp-config.php swaps
Blog ids, table prefixes Shared themes
Deeper integration
WPMU
multi-user is more than multi-blog
8/14/2019 D.C. meetup presentation on WordPress 3.0
4/18
The Merge
Multisite / Network feature
Backwards/forwards compatibility
Massive merging, followed by cleanup Terminology/concept nightmare
Easy upgrade at Tools > Network
Network Plugins Per-blog roles and capabilities is_multisite(), is_super_admin()
8/14/2019 D.C. meetup presentation on WordPress 3.0
5/18
Menu Management UI
Taking after dynamic sidebars and
widgets
Multiple menus
Pages, categories, tags, links, arbitrary
Woo Themes
Dogfooding
8/14/2019 D.C. meetup presentation on WordPress 3.0
6/18
WooThemes custom navigation before inclusion in WordPress
8/14/2019 D.C. meetup presentation on WordPress 3.0
7/18
Post types and taxonomies
Post Type: A way to store objects
Obvious: posts, pages, news releases
Not as obvious: navigation menu items
Taxonomy: A way to group objects
Post Tags, Categories, Link Categories,
People, Places, Topics, Things, Animals
Hierarchical (categories) or not (post tags) Taxonomies for movies: Actors, Directors,
Producers, Studios, Genres
8/14/2019 D.C. meetup presentation on WordPress 3.0
8/18
Post types and taxonomies
Will change the way developers work
Dry up code and pages
Allows easy registration
Full admin panels and meta boxes
New capabilities scheme
Taxonomies can route different URLs
www.example.com/people/andrew-nacin/
DRY = dont repeat yourself
8/14/2019 D.C. meetup presentation on WordPress 3.0
9/18
Register a post type
register_post_type( 'news-release', array(
'label' => 'News Releases',
'singular_label' => 'Release',
'public' => true,
'show_ui' => true,
'supports' => array( 'post-thumbnails','excerpts', 'trackbacks', 'comments','custom-fields', 'revisions' ),
// Many more flags available) );
8/14/2019 D.C. meetup presentation on WordPress 3.0
10/18
Register a taxonomy
register_taxonomy( 'people',
array( 'post', 'news-release' ),
array(
'label' => 'People',
'public' => true,
'show_ui' => true,
// More flags available)
);
8/14/2019 D.C. meetup presentation on WordPress 3.0
11/18
A News Release post type with a People taxonomy
8/14/2019 D.C. meetup presentation on WordPress 3.0
12/18
Twentyten
Not your average theme
Exposes as much as possible
New get_loop()-like template tag
Custom background, header, navigation
Footer sidebars
Post thumbnails
Editor styles
Child theme support
T t t th
8/14/2019 D.C. meetup presentation on WordPress 3.0
13/18
Twentyten theme
8/14/2019 D.C. meetup presentation on WordPress 3.0
14/18
Custom Background and Custom Header panels (as of this morning)
8/14/2019 D.C. meetup presentation on WordPress 3.0
15/18
Project development
Core Plugins
Post by Email
Health Check
PodPress
More committers
Mailing lists, workgroups, project blogs
Better workflows
8/14/2019 D.C. meetup presentation on WordPress 3.0
16/18
Other cool features
Pick a username/password during install
Comment and login form functions
Author-specific templates Comment moderation improvements
Search engine visibility indicator
Indenting in file editors More login security by default
8/14/2019 D.C. meetup presentation on WordPress 3.0
17/18
Want categories on pages?
function nacin_cats_for_pages() {
register_taxonomy_for_object_type( 'category','page' );
}
add_action( 'init', 'nacin_cats_for_pages' );
// Done.
8/14/2019 D.C. meetup presentation on WordPress 3.0
18/18
Follow along
wp-svn
mailing list for revisions
wp-hackers
plugin and core developers
wp-testers
alpha/beta testers
IRC #wordpress-dev
wpdevel.wordpress.com Development blog
core.trac.wordpress.org
Bug/feature tracker
Feature freeze is March 1
patch sprint
March 15
Initial public beta
April 15
release candidate
May 1
3.0 (and WordCamp SF)
Timeline