WP_MS_Sites_List_Table::column_lastupdated( array $blog )

In this article

Handles the lastupdated column output.

Parameters

$blogarrayrequired
Current site.

Source

public function column_lastupdated( $blog ) {
	global $mode;

	if ( 'list' === $mode ) {
		$date = __( 'Y/m/d' );
	} else {
		$date = __( 'Y/m/d g:i:s a' );
	}

	if ( '0000-00-00 00:00:00' === $blog['last_updated'] ) {
		_e( 'Never' );
	} else {
		echo mysql2date( $date, $blog['last_updated'] );
	}
}

Changelog

VersionDescription
4.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.