falando sobre design, tecnologia e o mundo web

WordPress 2.8

WordPress 2.8

Jun 12, 2009

No dia 10 de junho de 2009 foi libe­rada a ver­são Word­Press 2.8 “Baker”, em home­na­gem ao trom­pe­tista e can­tor Chet Baker. Para mais infor­ma­ções sobre as melho­rias e cor­re­ções de bugs deste rele­ase, leia o Deve­lop­ment Blog Announ­ce­ment e tam­bém o Chan­ge­log for 2.8.

High­lights

  • New drag-and-drop wid­gets admin inter­face and new wid­gets API
  • Syn­tax high­ligh­ting and func­tion loo­kup built into plu­gin and theme editors
  • Browse the theme direc­tory and ins­tall the­mes from the admin
  • Allow the dash­bo­ard wid­gets to be arran­ged in up to four columns
  • Allow con­fi­gu­ring the num­ber of items to show on mana­ge­ment pages with an option in Screen Options
  • Sup­port time­zo­nes and auto­ma­tic day­light savings time adjustment
  • Sup­port IIS 7.0 URL Rewrite Module
  • Fas­ter loa­ding of admin pages via script com­pres­sion and concatenation

New Fea­tu­res

User Fea­tu­res

  • New Theme Ins­tal­ler routines
  • Add Code­Press syn­tax high­ligh­ting to Theme and Plu­gin editors
  • Add Documentation(function) loo­kup to Theme and Plu­gin editors
  • Use “Cus­tom Hea­der” for menu text and revise Default theme to reflect change
  • Sepa­rate Com­ments into a sepa­rate post­box, from Dis­cus­sion post­box, on the Edit Post screen
  • Make tags acces­si­ble without Javas­cript on the edit screen
  • Don’t ask for con­fir­ma­tion when mar­king a com­ment as spam
  • Don’t notify post author of own comments
  • Fix com­ment paging for sta­tic front page
  • Allow the dash­bo­ard wid­gets to be arran­ged in up to four columns as set via the Screen Opti­ons tab
  • Make titles into links in Dash­bo­ard Right Now module (this was in 2.7.1)
  • Impro­ved Admin icons (grey-to-transparent shadows)
  • Update Blue Admin Color Scheme
  • Press This impro­ve­ments UI, quo­ting fixes, plus abi­lity for Con­tri­bu­tors to use Press This
  • Add a Can­cel Upload but­ton and a Delete link to Admi­nis­tra­tionMediaAdd New
  • Add column “Rating” in Admi­nis­tra­tionLinksEdit
  • Improve ins­tal­ler to help peo­ple ente­ring wrong email addresses
  • Impro­ved Wid­get user inter­face
  • Allow edi­ting of all plu­gin files (Tic­ket 6732)
  • Impro­ved Plu­gin search (this was in 2.7.1) on Admi­nis­tra­tionPlu­ginsAdd New
  • Per Page option for plugins
  • Move “Ins­tall a plu­gin in .zip for­mat” to new Upload tab under Admi­nis­tra­tionPlu­ginsAdd New
  • Show abso­lute date ins­tead of rela­tive date for sche­du­led posts
  • Fix tags sug­gest for post quick edit and bulk edit
  • Per­ma­link edi­tor chan­ges and fix for pages
  • Auto­save post/page when pres­sing Control/Command+S
  • Add tog­gle all but­ton to the Gal­lery tab in the uploader
  • Sup­port more than one gal­lery on the same page
  • Add per page option to Screen Opti­ons for com­ments, posts, pages, media, cate­go­ries, and tags
  • Overhaul of Live­Jour­nal impor­ter (also add define WP_IMPORTING)
  • Import cate­gory des­crip­ti­ons for Admi­nis­tra­tionToolsImport > WordPress
  • Show Tools menu for all users so they can access Turbo
  • Check for new ver­sion when visi­ting Admi­nis­tra­tionToolsUpgrade
  • In upgrade pro­cess, pro­vide bet­ter expla­na­tion for data­base upgrade message
  • Fix most popu­lar link cate­gory list
  • Add des­crip­tion field for Tags in Admi­nis­tra­tionPostsTags
  • WAI-ARIA land­mark roles to added to Word­Press Default theme
  • “Cho­ose a city in the same time­zone as you” for Time­zone in Admi­nis­tra­tionSet­tingsGene­ral
  • Remove My Hacks option from Admi­nis­tra­tionSet­tingsMis­cel­la­ne­ous
  • Hide email addres­ses from low pri­vi­lege users on Admi­nis­tra­tionCom­ments
  • Allow case-insensitive logins
  • Login and Regis­tra­tion pages noin­dex followed
  • Give login screen pro­per iPhone viewport
  • Enforce uni­que email addres­ses in Add/Edit users
  • Make user_nicenames uni­que during registration
  • Add “Send this pas­sword to the new user by email” option to Admi­nis­tra­tionUsersAdd New
  • Don’t set user’s Web­site url to http:// in Admi­nis­tra­tionUsersAdd New
  • Add pas­sword strength meter to Add User and Edit User
  • Hide things that need to be avai­la­ble to screen rea­ders via offs­creen positioning
  • Use invi­si­ble class for hiding labels and legends
  • Use a seman­tic class name for text tar­ge­ted to screen readers

Deve­lop­ment, The­mes, Plugins

  • Impro­ved data­base performance
  • Drop post_category column from wp_posts table, and link_category column from wp_links sche­mas
  • Fix delete sta­te­ments to ensure data inte­grity when innodb and foreign keys are used
  • Enforce con­sis­tent ID types to allow for foreign keys to be defi­ned between tables
  • Add Sticky to list of post states
  • Add a fil­ter to the post sta­tes list
  • Intro­duc­tion and wides­pread use of tran­si­ent and rela­ted filters
  • Add fil­ters so AIM, Yahoo, and Jab­ber IM labels, in user pro­file, can be changed
  • Add hook “after_db_upgrade”
  • Add hooks for the Users, Cate­go­ries, Link Cate­go­ries, Tags and Com­ments table columns
  • HTTP API upda­tes and fixes
  • Add sup­port for bloc­king all out­bound HTTP requests
  • Upda­ted List of HTTP sta­tus codes (Tic­ket 9297)
  • Use Sim­ple­Pie for wid­get and dash­bo­ard feeds
  • Switch to pomo lib. Sup­port get­text con­texts. Depre­cate long form functions
  • TinyMCE 3.2.4.1
  • Use Jcrop 0.9.8 for cropping
  • Update pcl­zip to 2.8
  • Update PHP­Mai­ler to 2.0.4
  • Update SWFU­pload to 2.2.0.1
  • Impro­ved per­for­mance for script loading
  • Impro­ved archive and calen­dar queries
  • Cron spaw­ning improvements
  • Time­zone enhan­ce­ments for PHP 5
  • Add WP_Widget class and move native wid­gets into WP_Widget
  • Allow other taxo­no­mies (e.g. post cate­go­ries) to be used with wp_tag_cloud (Chan­ge­set 10554)
  • Add echo argu­ment to wp_tag_cloud()
  • Allow a plu­gin to con­trol how many posts are dis­played on edit pages
  • Add “style” and “html” argu­ments to wp_list_authors (Tic­ket 4420)
  • Add “exclude_tree” argu­ment to wp_list_categories and make exclude behave like exclude_tree when hie­rar­chi­cal is spe­ci­fied – this was actu­ally a 2.7.1 change (Tic­ket 8614)
  • New Tem­plate Tagthe_modified_author (Tic­ket 9154)
  • Enhan­ced sup­port for cus­tom taxonomies
  • Put page title before blog name in admin title (Tic­ket 9028)
  • Use https://api.wordpress.org/secret-key/1.1/ for the WordPress.org secret-key service
  • Vari­ous php­Doc updates
  • Refac­tor fil­ters to avoid poten­tial XSS attacks
  • XMLRPC improvements
  • Impro­ved mysql2date coding
  • Make authen­ti­ca­tion more pluggable
  • Switch to using the ID when cal­ling get_avatar inter­nally to sup­port caching plugins
  • Allow plu­gins to pro­vide a cano­ni­cal redirect_url even if Word­Press does not pro­vide its own
  • Drafts have post_date popu­la­ted now, so look for a zeroed out post_date_gmt to deter­mine non-scheduled nature
  • Fixes to query_posts (obey post_type, drop orderby=category, use group by for meta key que­ries, remove meta_value from selec­ted fields)
  • New orderby=none para­me­ter for use with query_posts
  • Allow a plu­gin to fil­ter the clas­ses applied in wp_list_pages()
  • Func­ti­ons (get_adjacent_post_rel_link() and adjacent_post_rel_link()) to dis­play rela­ti­o­nal links for adja­cent posts in the head (Tic­ket 8703)
  • Add the sticky post grey back­ground to the default theme
  • Proxy sup­port
  • Let a plu­gin fil­ter the expan­ded capa­bi­li­ties retur­ned by map_meta_cap
  • Allow the update period to be fil­te­red in RSS/RDF feeds
  • Store field types in wpdb object
  • Add tag des­crip­tion func­ti­ons tag_description and term_description
  • Add page class to get_body_class()
  • Depre­cate get_catname()
  • Use comments_open() and pings_open() in Word­Press Default and Clas­sic themes
  • Add wp_trim_excerpt() filter
  • Con­so­li­date plugin/theme/core upgrade/install functions
  • Add page-id-x class to body for pages
  • Return empty list in wp_list_bookmarks() if reques­ted book­mark cate­gory does not exist
  • Allow menu reor­de­ring via plugin
  • Add hook for upda­ting user profile
  • Add redi­rect argu­ment to wp_loginout
  • Add wp_lostpassword_url (Tic­ket 9932)
  • Add get_the_author_meta() and the_author_meta() functions
  • Depre­cate the_author_IDthe_author_loginthe_author_firstnamethe_author_lastnamethe_author_nickname,the_author_emailthe_author_urlthe_author_aimthe_author_yimthe_author_mnsthe_author_description and all their “get_*()” func­ti­ons. (The full list at wp-includes/deprecated.php)
  • Let plu­gins use screen layout columns
  • Add labels to titles and text inputs
  • Add hook for adding info to plu­gin update message
  • Don’t do core ver­sion check from front page loads
  • Allow a plu­gin to vary the com­ment coo­kie life­time (or even remove the coo­kies altogether)
  • Allow plu­gin to replace just the default help while pre­ser­ving the con­tex­tual help
  • New esca­ping naming con­ven­tion Tic­ket 9650
  • Depre­cate wp_specialchars() in favor of esc_html(). Encode quo­tes for esc_html() as in esc_attr(), to improve plu­gin secu­rity (ref. Deve­lop­ment Upda­tes)
  • Depre­cate sanitize_url() and clean_url() in favor of esc_url_raw() and esc_url() (ref. Deve­lop­ment Upda­tes)
  • Add number/offset argu­ments to get_pages() (same para­me­ters can be used for wp_list_pages()
  • Make login more pluggable
  • Add the_widget() func­tion to out­put a gene­ric wid­get anywhere in a tem­plate (Tic­ket 9701)
  • Allow plu­gins to over­ride tz sup­port enable/disable
  • Fix com­bi­ning cate­gory and tag queries
  • Sup­port IIS 7.0 URL Rewrite Module
  • Recog­nize Expres­sion Web 2 as IIS
  • Allow mul­ti­ple search form templates
  • Intro­duce sanitize_html_class() and use it to give cate­go­ries, tags, users etc mea­ning­ful clas­s­na­mes where pos­si­ble but fall­back to the id if neces­sary (Tic­ket 8446)
  • Allow a dif­fe­rent role to be set for users when they are cre­a­ted in a call to wp_insert_user()
  • Improve Filesys­tem method choice for ‘direct’; intro­duce FS_METHOD constant
  • Add a hook in print_footer_scripts as in print_head_scripts
  • Add a comment_moderation_headers filter
  • Move upload_dir fil­ter to before direc­tory is cre­a­ted, so plu­gins can have a bet­ter effect
  • Pass name to side­bar, foo­ter, and hea­der get actions
  • Upgra­der impro­ve­ments, inclu­ding move curl to last posi­tion and foc­ko­pen to 2nd posi­tion due to higher compatibility
  • Upda­ted Trac

Advan­ced Features

JS script loa­der Improvements

  • jQuery 1.3.2
  • Impro­ve­ments to the script loa­der: allows plu­gins to queue scripts for the front end head and foo­ter, adds hooks for ser­ver side caching of com­pres­sed scripts, adds sup­port for ENFORCE_GZIP cons­tant (deflate is used by default since it’s faster)
  • Load the mini­fied ver­si­ons of the scripts by default, define(‘SCRIPT_DEBUG’, true); can be used to load the deve­lop­ment versions
  • Remove events from cate­go­ries che­ch­bo­xes in quick edit to speed up page unload
  • Make sim­ple form vali­da­tion and ajax-add new cate­go­ries com­pa­ti­ble with jQuery 1.3.1
  • Load farbtastic.js has to be loa­ded in the head
  • Note: see Les­ter Chan’s Loa­ding Javas­cript in Foo­ter blog and Andrew Ozz’s Script Loa­der Upda­tes blog

New Wid­gets API

WP_Widget is a class that abs­tracts away much of the com­ple­xity invol­ved in wri­ting a wid­get, espe­ci­ally multi-widgets.

  • Basi­cally, you extend WP_Widget with your own class that pro­vi­des a cons­truc­tor and three methods — wid­get(), form(), and update().
    • widget() — outputs the actual con­tent of the widget.
    • update() — processes opti­ons to be saved.
    • form() — outputs the opti­ons form.
  • A wid­get is regis­te­red by pas­sing the name of the wid­get class to register_widget().
  • All wid­gets writ­ten with WP_Widget are mul­ti­ple ins­tance capable.
  • Opti­ons
    • Opti­ons for old single-instance wid­gets por­ted to WP_Widget will be upgra­ded to the new multi-option sto­rage for­mat, which is sim­ply a multi-dimensional array keyed by ins­tance ID.
    • Opti­ons for wid­gets using the old multi-instance pat­tern should work as is.
    • If your wid­get has cus­tom option sto­rage needs, you can pro­vide your own get_settings() and save_settings() methods.
  • The WP_Widget source can be viewed here (read the php­doc for moreinfo on usage):http://core.trac.wordpress.org/browser/trunk/wp-includes/widgets.php
  • You can see exam­ples of how to use it here: http://core.trac.wordpress.org/browser/trunk/wp-includes/default-widgets.php
  • If you author any wid­gets, try por­ting them to WP_Widget and give your feed­back on what can be impro­ved an Trac Tic­ket 8441.
  • Props to the Mul­tiWid­get class, on which WP_Widget is based: http://blog.firetree.net/2008/11/30/wordpress-multi-widget/
  • The above extrac­ted from Ryan Boren’s wp-hackers post.

See also Wid­gets API.

Menu reor­de­ring via plugin

  • Exam­ple plu­gin demons­tra­tes menus with Dash­bo­ard, Posts, and Com­ments in the first menu group. The remai­ning menus fol­low in their usual order.
  • When fil­te­ring the order array, any menus that are not men­ti­o­ned in the array will be sor­ted after ones that are mentioned.
  • Unmen­ti­o­ned menus are sor­ted in their usual order, rela­tive to other unmen­ti­o­ned menus.
  • Infor­ma­tion extrac­ted from Ryan Boren’s com­ments on Trac Tic­ket 9652

Arti­gos relacionados:

No comments

Trackbacks/Pingbacks

  1. Marcos Nahr - Wordpress 2.8 “Chet Baker” http://tinyurl.com/n7dtdt
  2. Posts about themes as of June 12, 2009 | All About WordPress - [...] &#99&#97&#108endars, rss feeds, blogs, uploading images/files – don’t get t&#111&#111&#10 Wordpress 2.8 “Chet Baker” – marcosnahr.com.br 06/12/2009 &#78&#111&#32dia ...

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes