�PNG  IHDR22?�� pHYs  �� OiCCPPhotoshop ICC profilexڝSgTS�=���BK���KoR RB���&*! J�!��Q�EEȠ�����Q, � ��!���������{�kּ������>���� �H3Q5� �B�������.@� $p�d!s�#�~<<+"��x� �M��0���B�\���t�8K�@z�B�@F���&S�`�cb�P-`'������{[�!�� e�Dh;��V�EX0fK�9�-0IWfH���� � 0Q��){`�##x��F�W<�+��*x��<�$9E�[-qWW.(�I+6aa�@.�y�2�4���������x����6��_-��"bb���ϫp@�t~��,/��;�m��%�h^ �u��f�@����W�p�~<�5�j>{�-�]c�K'Xt����o��(�h���w��?�G�%�fI�q^D$.Tʳ?�D��*�A��,���� �`6�B$��BB d�r`)��B(�Ͱ*`/�@4�Qh��p.�U�=p�a��(�� A�a!ڈb�X#����!�H�$ ɈQ"K�5H1R�T UH�=r9�\F��;�2����G1���Q=� �C��7�F� �dt1�����r�=�6��Ыhڏ>C�0��3�l0.��B�8, �c˱"� ���V����cϱw�E� 6wB aAHXLXN�H� $4� 7 �Q�'"��K�&���b21�XH,#��/{�C�7$�C2'��I��T��F�nR#�,��4H#���dk�9�, +ȅ����3��!�[ �b@q��S�(R�jJ��4�e�2AU��Rݨ�T5�ZB���R�Q��4u�9̓IK�����hh�i��t�ݕN��W���G���w ��Ljg(�gw��L�Ӌ�T071���oUX*�*|�� �J�&�*/T����ު U�U�T��^S}�FU3S� Ԗ�U��P�SSg�;���g�oT?�~Y��Y�L�OC�Q��_�� c�x,!k ��u�5�&���|v*�����=���9C3J3W�R�f?�q��tN �(���~���)�)�4L�1e\k����X�H�Q�G�6������E�Y��A�J'\'Gg����S�Sݧ �M=:��.�k���Dw�n��^��Lo��y���}/�T�m���G X� $� �<�5qo</���QC]�@C�a�a�ᄑ��<��F�F�i�\�$�m�mƣ&&!&KM�M�RM��)�;L;L���͢�֙5�=1�2��כ߷`ZxZ,����eI��Z�Yn�Z9Y�XUZ]�F���%ֻ�����N�N���gð�ɶ�����ۮ�m�}agbg�Ů��}�}��= ���Z~s�r:V:ޚΜ�?}����/gX���3��)�i�S��Ggg�s�󈋉K��.�>.���Ƚ�Jt�q]�z���������ۯ�6�i�ܟ�4�)�Y3s���C�Q��? ��0k߬~OCO�g��#/c/�W�װ��w��a�>�>r��>�<7�2�Y_�7��ȷ�O�o�_��C#�d�z����%g��A�[��z|!��?:�e����A���AA�������!h�쐭!��Α�i�P~���a�a��~ '���W�?�p�X�1�5w��Cs�D�D�Dޛg1O9�-J5*>�.j<�7�4�?�.fY��X�XIlK9.*�6nl������� �{�/�]py�����.,:�@L�N8��A*��%�w%� y��g"/�6ш�C\*N�H*Mz�쑼5y$�3�,幄'���L Lݛ:��v m2=:�1����qB�!M��g�g�fvˬe����n��/��k���Y- �B��TZ(�*�geWf�͉�9���+��̳�ې7�����ᒶ��KW-X潬j9�������(�x��oʿ�ܔ���Ĺd�f�f���-�[����n �ڴ �V����E�/��(ۻ��C���<��e����;?T�T�T�T6��ݵa��n��{��4���[���>ɾ�UUM�f�e�I���?�������m]�Nmq����#�׹���=TR��+�G�����w- 6 U����#pDy��� �� :�v�{���vg/jB��F�S��[b[�O�>����z�G��499�?r����C�d�&����ˮ/~�����јѡ�򗓿m|������������x31^�V���w�w��O�| (�h���SЧ��������c3-� cHRMz%������u0�`:�o�_�F5IDATx��ytUս�?�;���fN$$��@B�!�k��� -*�gE���j�O�kQ�ʠ`U�B_ �AÐ0%�Ȕ�@r3ޛ;߳��$�@��v����^�s����������$��ߢ !�W��5�̱'-٘������4�>�Rƫ$�G��0U�H}�_ _� #��k�MJ/=�9Du *ڲ�k�PQ;0��j|�*�$�^컂脛y���>�z×� B��� ��(�:$�ʔ_�6��C!B����MVx��a��ζyY����j��ƋY2�9�F�{r��r�딟F��Q��hY6��� x��[l��RC��������nt@��;P��3��� F�w��7��:�P���ɋ'���mj���Bƪ�$�Q�L��y��߷g��\���z����v5�p�v$�v櫻�`6~K �Y�X����,�:��"�o�e0II"(��,������l_�C���/4�+f�E�!q��:����u����c��樼.UE�@� �]K�W���$-�h]�JG���Dz)�`��.�A/ ���mᏣc�3jK� �!�>���$�Q�!�_�? \�C2(E �M$Z I{�U���s�ǣ���=��@Բe ޻��W�����@ �w����}�9v,)��.}*|"�s��di���,���G�]W�AC�������|<����[��ߕ������K�*�G nߴ!��‹��J�!��6(L�a)��Am��������;adf��:�xm��nh�;֦I��(���o�C~ډa?�=��s����h��E������xp����)���_���t��W�����´;8���`dz=(��@@�+,�;�`�fhl��XȌ�3,uI�~z(J����� �ZX�A����H'�À�㜦�82|��a�n�z2��I���� ���EY�h�ε<�0�q�{��C��v�˅��?"@��χ�x�WS+��N�~�KQ�J�8ل�� _.W��� !TU{�����,��"�� �;�������HI S� ��))�o�1�H�D� ���� (� ;����"Ҕ��,���� �F=���O��&�Ph>�`���y��߲ &S��P�<��'��1s�1cĂ�N����2)����@�u��tv��<�+�-&�����h��[!FSG���' � z z0��<����8d&�����E0�,��<��"!P�b4��� �{S�����X����.�囤���T��hEF��X�q0"-<����h���]�Py*����F⩍��@v�˂�Y08�� .q��a��s����(!<̫1�3�L�H��7sYW�`��qtu�\7��?�@�Y�� %Ka�x�GZ�*W�P��y�����N0r9��Z�c�%���q,��k�����!!,��>���IB��� �x1�Xu�Y���v-���ֺ��N������JP��a�2`�e5��w��u;�6�i���̃��(K���ťa��(l51��JL��O'%���]���ٖ뿉!��{*�p+f ���i8��D�ȑ���ܩ�M��V��ӟz��x�7Z�1i}�^͜���6e����x��)u�d�ˏ�V�eG�\�X1�����=n�U'�~Y����L�\,�(d!x ,�:�TW8� M`r���@��r+v�Q0��>^;˴�VbF��('����� �*O��i��j�Ӆ����^�S3&� ���{������.ی�� N;��NU%d0�Ce\r"�C�b��&t7N�7��� �ȪD�[%l�۪�$��'m?�A9tI�9>��NVL ��� 6v~M�����ъ�B���0����9$&=ώm��W�0���L���&��E���f�f��'+�9��hv��7,���M��6�D�&�^� �����8 D֮�����o��k^z��O��hP�8q�5d*��YVq3�{��������#LX4�?��jP=3�~�؅c�ݰ�̱�ұ��8̲��2�G�����j��έ�9��w7���U�X�w�85C��?!I&���o&����L���I#�^�eV�,�^t5�k� �xs˛\��U�8��."���{���ǵ�l4��ݼ�;��r"���G�/~���gJV�N糦��ZZ^k+NN�D��I$�=OE�z����|*�*{��%k���G��>�`9��b;�s���8,�qs��c��.b��q�%�>r��n�R�Ƨ�%�,�A��le#�8���}; 21�0�b�&�QX�f���q�00����$>�h�N�'�a3��A���/�r ��L5�8�GԲ'�����w;��c#�q1���h$*��V^�k��QĽ�b:i������� ����H F#�_���,��]g����Ը����`RUU���� ��"�qD���>-��ϤI�~��3�̴�����NZ[[555�eeek7�m����YF#[��Đ��R��i��L�H�r ��@��J-�Pŝ��_|�-��6y��ks�V�U~��6���w.����(��0A� 4��f��� /���C�xŊ�ٳ����z=6�����rg���mKo��o�/����a�g���?'9%9��P��斓��~���L{�� �H��{AW��B��$����v�1b�&Mb�ر��ر#�0`�`xMBp! )Z�Nmo�mZ�g�}�eذaWTVV ���'99��C5��&�&+5�bT>|8��PUUETT����&���t��~TE%��'������b�tEGG;RSS�S�N�v��ѯ��t����u1@�ޚ"f��͈���r'L�Ph��m��ƌ�74o��`�x�q�P���NRSS�X,�����l&&&��MFFA!-��`��ҷ�n��Yuu�����x<I�LB%����KԒ50�!�3�bz�����ʸKL���;---�l6[��`��������Ȏ;�����egg4��!D�T��jWujyZ��������K����%����p�^���X,6��sV=�ܖ����6�3�X ���4ҿ��A2�&����_k�;d�� �VfOIEND�B`� 0x0x
PHP 8.1.34
Preview: class-wp-rest-entity-fields-controller.php Size: 11.62 KB
//home2/astrociv/www/gurujii.in/wp-includes/rest-api/endpoints/class-wp-rest-entity-fields-controller.php
<?php
/**
 * REST API: WP_REST_Entity_Fields_Controller class
 *
 * @package    WordPress
 * @subpackage REST_API
 * @since      7.2.0
 */

/**
 * Controller which provides a REST endpoint for retrieving the fields
 * registered for a given entity type.
 *
 * The fields are the ones registered on the server on the
 * `wp_entity_fields_api_init` action: the serializable part of each field, plus
 * the script modules that provide the JavaScript parts (render callbacks,
 * components, value getters and setters), each with the ids of the fields
 * it applies to. The client merges both into the fields it derives itself.
 *
 * @since 7.2.0
 *
 * @see WP_REST_Controller
 */
class WP_REST_Entity_Fields_Controller extends WP_REST_Controller {

	/**
	 * Constructor.
	 *
	 * @since 7.2.0
	 */
	public function __construct() {
		$this->namespace = 'wp/v2';
		$this->rest_base = 'entity-fields';
	}

	/**
	 * Registers the routes for the controller.
	 *
	 * @since 7.2.0
	 */
	public function register_routes() {
		register_rest_route(
			$this->namespace,
			'/' . $this->rest_base,
			array(
				array(
					'methods'             => WP_REST_Server::READABLE,
					'callback'            => array( $this, 'get_items' ),
					'permission_callback' => array( $this, 'get_items_permissions_check' ),
					'args'                => array(
						'kind' => array(
							'description' => __( 'Entity kind.' ),
							'type'        => 'string',
							'required'    => true,
						),
						'name' => array(
							'description' => __( 'Entity name.' ),
							'type'        => 'string',
							'required'    => true,
						),
					),
				),
				'schema' => array( $this, 'get_public_item_schema' ),
			)
		);
	}

	/**
	 * Checks if a given request has access to read the fields of an entity.
	 *
	 * @since 7.2.0
	 *
	 * @param WP_REST_Request $request Full details about the request.
	 * @return true|WP_Error True if the request has read access, WP_Error object otherwise.
	 */
	public function get_items_permissions_check( $request ) {
		$kind = $request->get_param( 'kind' );
		$name = $request->get_param( 'name' );

		$capability = $this->get_required_capability( $kind, $name );

		if ( null === $capability ) {
			return new WP_Error(
				'rest_entity_fields_invalid_entity',
				__( 'Invalid entity kind or name.' ),
				array( 'status' => 404 )
			);
		}

		if ( ! current_user_can( $capability ) ) {
			return new WP_Error(
				'rest_cannot_read',
				__( 'Sorry, you are not allowed to read the fields of this entity.' ),
				array( 'status' => rest_authorization_required_code() )
			);
		}

		return true;
	}

	/**
	 * Resolves the capability required to read the fields of an entity.
	 *
	 * Mirrors the view config endpoint, which gates the same entities: post
	 * types use their own `edit_posts` capability (which honors custom
	 * `capability_type` registrations), taxonomies use `manage_terms`, and
	 * root-level entities use `manage_options`. A post type or taxonomy that is
	 * not registered, or not exposed to the REST API, resolves to `null` so the
	 * request is treated as referencing an unknown entity.
	 *
	 * Any other kind falls back to `edit_posts`, so fields registered for a
	 * custom entity kind stay readable behind a baseline capability.
	 *
	 * @since 7.2.0
	 *
	 * @param string $kind The entity kind (e.g. `postType`).
	 * @param string $name The entity name (e.g. `page`).
	 * @return string|null Capability required to read the fields, or null if
	 *                     the entity is not registered.
	 */
	protected function get_required_capability( $kind, $name ) {
		switch ( $kind ) {
			case 'postType':
				$post_type = get_post_type_object( $name );
				if ( $post_type && $post_type->show_in_rest ) {
					return $post_type->cap->edit_posts;
				}
				return null;

			case 'taxonomy':
				$taxonomy = get_taxonomy( $name );
				if ( $taxonomy && $taxonomy->show_in_rest ) {
					return $taxonomy->cap->manage_terms;
				}
				return null;

			case 'root':
				return 'manage_options';
		}

		return 'edit_posts';
	}

	/**
	 * Returns the fields registered for the given entity type.
	 *
	 * @since 7.2.0
	 *
	 * @param WP_REST_Request $request Full details about the request.
	 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
	 */
	public function get_items( $request ) {
		$kind = $request->get_param( 'kind' );
		$name = $request->get_param( 'name' );

		$field_schema = $this->get_field_schema();
		$fields       = array();
		foreach ( wp_get_registered_entity_fields( $kind, $name ) as $field ) {
			$fields[] = wp_prepare_json_value_for_client( $field, $field_schema );
		}

		$response = array(
			'kind'           => $kind,
			'name'           => $name,
			'fields'         => $fields,
			'script_modules' => wp_get_registered_entity_field_modules( $kind, $name ),
		);

		return rest_ensure_response( $response );
	}

	/**
	 * Retrieves the item's schema, conforming to JSON Schema.
	 *
	 * @since 7.2.0
	 *
	 * @return array Item schema data.
	 */
	public function get_item_schema() {
		if ( $this->schema ) {
			return $this->add_additional_fields_schema( $this->schema );
		}

		$this->schema = array(
			'$schema'    => 'http://json-schema.org/draft-04/schema#',
			'title'      => 'entity-fields',
			'type'       => 'object',
			'properties' => array(
				'kind'           => array(
					'description' => __( 'Entity kind.' ),
					'type'        => 'string',
					'readonly'    => true,
				),
				'name'           => array(
					'description' => __( 'Entity name.' ),
					'type'        => 'string',
					'readonly'    => true,
				),
				'fields'         => array(
					'description' => __( 'The fields registered for the entity, in registration order.' ),
					'type'        => 'array',
					'readonly'    => true,
					'items'       => $this->get_field_schema(),
				),
				'script_modules' => array(
					'description' => __( 'The script modules providing the JavaScript parts of the fields, each with the ids of the fields it applies to.' ),
					'type'        => 'array',
					'readonly'    => true,
					'items'       => array(
						'type'       => 'object',
						'properties' => array(
							'id'     => array(
								'description' => __( 'The id of the script module.' ),
								'type'        => 'string',
							),
							'fields' => array(
								'description' => __( 'The ids of the fields the script module applies to.' ),
								'type'        => 'array',
								'items'       => array(
									'type' => 'string',
								),
							),
						),
					),
				),
			),
		);

		return $this->add_additional_fields_schema( $this->schema );
	}

	/**
	 * Returns the schema for a field definition.
	 *
	 * Describes the serializable subset of the DataViews Field API, see
	 * packages/dataviews/src/types/field-api.ts in Gutenberg. The properties
	 * that are JavaScript callbacks or components (`render`, `sort`,
	 * `getValue`, …) come from the script modules and are not part of the
	 * definition.
	 * Additional properties are allowed, so a plugin can register a field
	 * with properties of its own that its script module understands.
	 *
	 * @since 7.2.0
	 *
	 * @return array Schema for a field definition.
	 */
	protected function get_field_schema() {
		$option_schema = array(
			'type'       => 'object',
			'properties' => array(
				'value'       => array(
					'description' => __( 'The value of the option.' ),
					'type'        => array( 'string', 'integer', 'number', 'boolean', 'null' ),
				),
				'label'       => array(
					'description' => __( 'The label of the option.' ),
					'type'        => 'string',
				),
				'description' => array(
					'description' => __( 'The description of the option.' ),
					'type'        => 'string',
				),
			),
		);

		return array(
			'type'                 => 'object',
			'properties'           => array(
				'id'                 => array(
					'description' => __( 'The unique identifier of the field.' ),
					'type'        => 'string',
				),
				'origin'             => array(
					'description' => sprintf(
						/* translators: %s: core */
						__( 'Who registered and updated the field: %s, or the slug of a plugin or theme.' ),
						'core'
					),
					'type'        => 'object',
					'properties'  => array(
						'registeredBy' => array(
							'description' => __( 'Who registered the field.' ),
							'type'        => 'string',
						),
						'updatedBy'    => array(
							'description' => __( 'Who updated the field, in update order.' ),
							'type'        => 'array',
							'items'       => array(
								'type' => 'string',
							),
						),
					),
				),
				'type'               => array(
					'description' => __( 'The type of the field, one of the types DataViews provides a control for.' ),
					'type'        => 'string',
					'enum'        => array( 'array', 'boolean', 'color', 'date', 'datetime', 'email', 'integer', 'media', 'number', 'password', 'telephone', 'text', 'time', 'url' ),
				),
				'label'              => array(
					'description' => __( 'The label of the field.' ),
					'type'        => 'string',
				),
				'header'             => array(
					'description' => __( 'The header of the field. Defaults to the label.' ),
					'type'        => 'string',
				),
				'description'        => array(
					'description' => __( 'The description of the field.' ),
					'type'        => 'string',
				),
				'placeholder'        => array(
					'description' => __( 'The placeholder of the field.' ),
					'type'        => 'string',
				),
				'Edit'               => array(
					'description' => __( 'The control used to edit the field: the name of a control, or a control configuration.' ),
					'type'        => array( 'string', 'object' ),
				),
				'isValid'            => array(
					'description' => __( 'The validation rules of the field.' ),
					'type'        => 'object',
				),
				'isDisabled'         => array(
					'description' => __( 'Whether the field is disabled.' ),
					'type'        => 'boolean',
				),
				'enableSorting'      => array(
					'description' => __( 'Whether the field is sortable.' ),
					'type'        => 'boolean',
				),
				'enableGlobalSearch' => array(
					'description' => __( 'Whether the field is searchable.' ),
					'type'        => 'boolean',
				),
				'enableHiding'       => array(
					'description' => __( 'Whether the field can be hidden.' ),
					'type'        => 'boolean',
				),
				'elements'           => array(
					'description' => __( 'The options to pick from when using the field as a filter.' ),
					'type'        => 'array',
					'items'       => $option_schema,
				),
				'filterBy'           => array(
					'description' => __( 'The filter configuration of the field, or false when the field cannot be filtered.' ),
					'type'        => array( 'object', 'boolean' ),
					'properties'  => array(
						'operators' => array(
							'type'  => 'array',
							'items' => array(
								'type' => 'string',
								'enum' => array(
									'is',
									'isNot',
									'isAny',
									'isNone',
									'isAll',
									'lessThan',
									'greaterThan',
									'lessThanOrEqual',
									'greaterThanOrEqual',
									'before',
									'after',
									'beforeInc',
									'afterInc',
									'contains',
									'notContains',
									'startsWith',
									'between',
									'on',
									'notOn',
									'inThePast',
									'over',
								),
							),
						),
						'isPrimary' => array(
							'type' => 'boolean',
						),
					),
				),
				'readOnly'           => array(
					'description' => __( 'Whether the field is read only.' ),
					'type'        => 'boolean',
				),
				'format'             => array(
					'description' => __( 'The display format of the field.' ),
					'type'        => 'object',
				),
			),
			'additionalProperties' => true,
		);
	}
}

Directory Contents

Dirs: 0 × Files: 49
Name Size Perms Modified Actions
7.95 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
13.82 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
12.08 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
23.75 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
117.83 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
15.14 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
9.68 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
4.70 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
9.08 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
5.73 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
26.79 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
3.05 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
82.71 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
18.83 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
2.06 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
10.58 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
11.62 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
10.45 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
29.42 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
17.55 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
23.51 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
12.98 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
7.56 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
10.67 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
33.15 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
8.67 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
16.69 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
5.04 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
12.58 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
27.86 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
10.07 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
13.95 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
104.25 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
30.38 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
11.33 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
10.09 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
15.53 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
9.61 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
13.69 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
7.50 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
8.52 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
39.04 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
34.61 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
22.93 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
20.07 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
49.03 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
20.37 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
18.75 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
26.23 KB lrw-r--r-- 2026-10-28 14:44:54
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).
© 2026 0xNothings — Secure File Manager. All rights reserved. Built with ❤️ & Tailwind x Dark UI