wpseek.com
A WordPress-centric search engine for devs and theme authors



_wp_get_sources_from_meta › WordPress Function

Since6.1.0
Deprecatedn/a
_wp_get_sources_from_meta ( $meta )
Access:
  • private
Parameters:
  • (array) $meta The meta to get the source from.
    Required: Yes
Returns:
  • (array) The source array element.
Defined at:
Codex:

Gets a sources array element from a meta.



Source

function _wp_get_sources_from_meta( $meta ) {
	return array(
		'file'     => isset( $meta['file'] ) ? wp_basename( $meta['file'] ) : '',
		'filesize' => isset( $meta['filesize'] ) ? $meta['filesize'] : wp_filesize( $meta['path'] ),
	);
}