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:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user