CoreFiles by mySites.guru
field.php19 lines, 433 bytes, from wordpress-7.2-beta5.zip
Raw History Compare with 7.2-beta4
md5
c4a00640bbdf5d01d057e8905b5367f3
sha1
7b13283f64749b0534e14d67a7bb8f0463a4110f
sha256
379cea5856415dbf6d1fd08f4dc3493c352cf7df1eef9f77db100e0db29f102e
<?php
/**
 * The caption of the media, a copy of the `caption` field of
 * `@wordpress/media-fields`. Its JavaScript parts (`getValue` and `render`)
 * are in `field.tsx`, next to this file.
 *
 * @package WordPress
 */

return array(
	'type'          => 'text',
	'label'         => __( 'Caption' ),
	'Edit'          => array(
		'control' => 'textarea',
		'rows'    => 2,
	),
	'enableSorting' => false,
	'filterBy'      => false,
);

The same content is in 6 releases, WordPress 7.2-beta1 to 7.2-RC1. See them all, or every version of this file.