From e00a90c571f933414ab3eb7190b9f10eddbc0bed Mon Sep 17 00:00:00 2001 From: audrasjb Date: Tue, 7 Feb 2023 09:08:20 +0000 Subject: [PATCH] Media: Maintain the functionnality of the deprecated `WP_Media_List_Table::column_desc()` method. Follow-up to [55159]. Props peterwilsoncc, costdev, mukesh27. Fixes #39710. Built from https://develop.svn.wordpress.org/trunk@55249 git-svn-id: http://core.svn.wordpress.org/trunk@54782 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-media-list-table.php | 2 ++ wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/class-wp-media-list-table.php b/wp-admin/includes/class-wp-media-list-table.php index 9b17bd95bd..266b365ee2 100644 --- a/wp-admin/includes/class-wp-media-list-table.php +++ b/wp-admin/includes/class-wp-media-list-table.php @@ -503,6 +503,8 @@ class WP_Media_List_Table extends WP_List_Table { */ public function column_desc( $post ) { _deprecated_function( __METHOD__, '6.2.0' ); + + echo has_excerpt() ? $post->post_excerpt : ''; } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index e36680141c..9b60ff7764 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-55248'; +$wp_version = '6.2-alpha-55249'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.