Remove some dead variable assignments.
See #27882. git-svn-id: https://develop.svn.wordpress.org/trunk@28629 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1da8a18e5f
commit
7ab6b096e6
@ -519,11 +519,11 @@ class WP_Comments_List_Table extends WP_List_Table {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function column_date( $comment ) {
|
public function column_date() {
|
||||||
return get_comment_date( __( 'Y/m/d \a\t g:ia' ) );
|
return get_comment_date( __( 'Y/m/d \a\t g:ia' ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
public function column_response( $comment ) {
|
public function column_response() {
|
||||||
$post = get_post();
|
$post = get_post();
|
||||||
|
|
||||||
if ( isset( $this->pending_count[$post->ID] ) ) {
|
if ( isset( $this->pending_count[$post->ID] ) ) {
|
||||||
|
@ -196,10 +196,9 @@ class WP_Importer {
|
|||||||
/**
|
/**
|
||||||
* Bump up the request timeout for http requests
|
* Bump up the request timeout for http requests
|
||||||
*
|
*
|
||||||
* @param int $val
|
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function bump_request_timeout( $val ) {
|
public function bump_request_timeout() {
|
||||||
return 60;
|
return 60;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -269,10 +269,9 @@ class WP_Posts_List_Table extends WP_List_Table {
|
|||||||
/* translators: manage posts column name */
|
/* translators: manage posts column name */
|
||||||
$posts_columns['title'] = _x( 'Title', 'column name' );
|
$posts_columns['title'] = _x( 'Title', 'column name' );
|
||||||
|
|
||||||
if ( post_type_supports( $post_type, 'author' ) )
|
if ( post_type_supports( $post_type, 'author' ) ) {
|
||||||
$posts_columns['author'] = __( 'Author' );
|
$posts_columns['author'] = __( 'Author' );
|
||||||
|
}
|
||||||
$taxonomies = array();
|
|
||||||
|
|
||||||
$taxonomies = get_object_taxonomies( $post_type, 'objects' );
|
$taxonomies = get_object_taxonomies( $post_type, 'objects' );
|
||||||
$taxonomies = wp_filter_object_list( $taxonomies, array( 'show_admin_column' => true ), 'and', 'name' );
|
$taxonomies = wp_filter_object_list( $taxonomies, array( 'show_admin_column' => true ), 'and', 'name' );
|
||||||
|
@ -189,7 +189,6 @@ class WP_Terms_List_Table extends WP_List_Table {
|
|||||||
foreach ( $terms as $term ) {
|
foreach ( $terms as $term ) {
|
||||||
$this->single_row( $term );
|
$this->single_row( $term );
|
||||||
}
|
}
|
||||||
$count = $number; // Only displaying a single page.
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1919,7 +1919,6 @@ class WP_Automatic_Updater {
|
|||||||
* @param object $item The update offer.
|
* @param object $item The update offer.
|
||||||
*/
|
*/
|
||||||
protected function send_core_update_notification_email( $item ) {
|
protected function send_core_update_notification_email( $item ) {
|
||||||
$notify = true;
|
|
||||||
$notified = get_site_option( 'auto_core_update_notified' );
|
$notified = get_site_option( 'auto_core_update_notified' );
|
||||||
|
|
||||||
// Don't notify if we've already notified the same email address of the same version.
|
// Don't notify if we've already notified the same email address of the same version.
|
||||||
|
Loading…
Reference in New Issue
Block a user