Revisions: Mark deprecated arguments in wp_list_post_revisions().

* Second argument is now a string, which controls the revision type
* Back compat for $args['type']
* Remove lines for the old form-table format, since it's now just a list 

props a.hoereth. fixes #24213.

git-svn-id: http://core.svn.wordpress.org/trunk@24175 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling
2013-05-04 12:54:00 +00:00
parent 2f1777986c
commit 8ebc1c654e
2 changed files with 38 additions and 89 deletions

View File

@@ -602,8 +602,8 @@ function post_author_meta_box($post) {
*
* @param object $post
*/
function post_revisions_meta_box($post) {
wp_list_post_revisions();
function post_revisions_meta_box( $post ) {
wp_list_post_revisions( $post );
}
// -- Page related Meta Boxes
@@ -979,4 +979,4 @@ function link_advanced_meta_box($link) {
function post_thumbnail_meta_box( $post ) {
$thumbnail_id = get_post_meta( $post->ID, '_thumbnail_id', true );
echo _wp_post_thumbnail_html( $thumbnail_id, $post->ID );
}
}