�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-customize-header-image-setting.php Size: 7.15 KB
/home2/astrociv/public_html/collegeofjyotirvidya.com/wp-includes/customize/class-wp-customize-header-image-setting.php
<?php
/**
 * Customize API: WP_Customize_Header_Image_Setting class
 *
 * @package WordPress
 * @subpackage Customize
 * @since 4.4.0
 */

/**
 * A setting that is used to filter a value, but will not save the results.
 *
 * Results should be properly handled using another setting or callback.
 *
 * @since 3.4.0
 *
 * @see WP_Customize_Setting
 *
 * @phpstan-type Header_Image_Data array{
 *     attachment_id?: int,
 *     url?: string,
 *     thumbnail_url?: string,
 *     timestamp?: int,
 *     width?: int,
 *     height?: int,
 *     alt_text?: string,
 *     attachment_parent?: int,
 * }
 */
final class WP_Customize_Header_Image_Setting extends WP_Customize_Setting {

	/**
	 * Unique string identifier for the setting.
	 *
	 * @since 3.4.0
	 * @var string
	 */
	public $id = 'header_image_data';

	/**
	 * @since 3.4.0
	 * @since 7.0.0 Return type updated from void to true for compatibility with base class.
	 *
	 * @global Custom_Image_Header $custom_image_header
	 *
	 * @param mixed $value The value to update.
	 * @return true Always returns true.
	 */
	public function update( $value ) {
		global $custom_image_header;

		// If _custom_header_background_just_in_time() fails to initialize $custom_image_header when not is_admin().
		if ( empty( $custom_image_header ) ) {
			require_once ABSPATH . 'wp-admin/includes/class-custom-image-header.php';
			$args                   = get_theme_support( 'custom-header' );
			$admin_head_callback    = $args[0]['admin-head-callback'] ?? null;
			$admin_preview_callback = $args[0]['admin-preview-callback'] ?? null;
			$custom_image_header    = new Custom_Image_Header( $admin_head_callback, $admin_preview_callback );
		}

		/*
		 * If the value doesn't exist (removed or random),
		 * use the header_image value.
		 */
		if ( ! $value ) {
			$value = $this->manager->get_setting( 'header_image' )->post_value();
		}

		if ( is_array( $value ) && isset( $value['choice'] ) ) {
			$custom_image_header->set_header_image( $value['choice'] );
		} else {
			$custom_image_header->set_header_image( $value );
		}
		return true;
	}

	/**
	 * Sanitizes a header value.
	 *
	 * The value is expected to be one of the following:
	 *
	 * - An array of header image data, with the keys `attachment_id`, `url`, `thumbnail_url`, `timestamp`, `width`,
	 *   `height`, `alt_text`, and `attachment_parent`, as supplied by {@see get_uploaded_header_images()}. Any other
	 *   key is discarded.
	 * - An array with a `choice` key, being the legacy format in which any of the other accepted values is nested.
	 * - The string `remove-header`, `random-default-image`, or `random-uploaded-image`.
	 * - A string corresponding to one of the keys for the array returned by {@see get_uploaded_header_images()}, or
	 *   one of the keys for the array passed into {@see register_default_headers()}.
	 *
	 * @since 7.1.1
	 *
	 * @see WP_Customize_Header_Image_Setting::update()
	 * @see Custom_Image_Header::set_header_image()
	 *
	 * @param mixed $value Value to sanitize.
	 * @return array|string|WP_Error|null Sanitized value, or `null`/`WP_Error` if invalid. The array holds
	 *                                    the header image data, or that data nested under a `choice` key,
	 *                                    before the `customize_sanitize_header_image_data` filter, which
	 *                                    may return anything, is applied to it.
	 *
	 * @phpstan-return array<mixed, mixed>|string|WP_Error|null
	 */
	public function sanitize( $value ) {
		/*
		 * The update() method unwraps the legacy `choice` format before handing the value off to
		 * Custom_Image_Header::set_header_image(), so the nested value is what must be sanitized.
		 */
		if ( is_array( $value ) && isset( $value['choice'] ) ) {
			$choice = $this->sanitize_choice( $value['choice'] );
			if ( is_null( $choice ) || is_wp_error( $choice ) ) {
				return $choice;
			}
			$value = array( 'choice' => $choice );
		} else {
			$value = $this->sanitize_choice( $value );
			if ( is_null( $value ) || is_wp_error( $value ) ) {
				return $value;
			}
		}

		return parent::sanitize( $value );
	}

	/**
	 * Sanitizes a header image choice.
	 *
	 * This is the value which is ultimately passed to {@see Custom_Image_Header::set_header_image()}, whether
	 * supplied at the top level of the setting value or nested under its legacy `choice` key.
	 *
	 * @since 7.1.1
	 *
	 * @param mixed $value Value to sanitize.
	 * @return array|string|WP_Error|null Sanitized value, or `null`/`WP_Error` if invalid.
	 *
	 * @phpstan-return Header_Image_Data|string|WP_Error|null
	 */
	private function sanitize_choice( $value ) {
		// Custom_Image_Header::set_header_image() accepts an object in place of an array.
		if ( is_object( $value ) ) {
			$value = (array) $value;
		}

		if ( is_string( $value ) ) {
			return sanitize_text_field( $value );
		}

		if ( ! is_array( $value ) ) {
			return null;
		}

		/*
		 * The sanitized value is assembled member by member rather than filtered down from the
		 * supplied one, so that nothing but the members below can end up in it.
		 */
		$sanitized = array();

		if ( isset( $value['attachment_id'] ) ) {
			if ( ! is_scalar( $value['attachment_id'] ) ) {
				return null;
			}
			$attachment_id = absint( $value['attachment_id'] );

			/*
			 * A supplied attachment must be an existing image, since its ID is written to postmeta and its
			 * data displayed. Note that an ID of zero must be skipped rather than looked up, as
			 * get_post_mime_type() falls back to the global post when passed an empty value.
			 */
			if ( $attachment_id > 0 ) {
				$mime_type = get_post_mime_type( $attachment_id );
				if ( ! is_string( $mime_type ) || ! str_starts_with( $mime_type, 'image/' ) ) {
					return null;
				}
			}

			$sanitized['attachment_id'] = $attachment_id;
		}

		if ( isset( $value['url'] ) ) {
			if ( ! is_string( $value['url'] ) ) {
				return null;
			}
			$sanitized['url'] = sanitize_url( $value['url'] );
			if ( '' === $sanitized['url'] ) {
				return new WP_Error( 'invalid_url', __( 'Invalid URL.' ) );
			}
		}

		if ( isset( $value['thumbnail_url'] ) ) {
			if ( ! is_string( $value['thumbnail_url'] ) ) {
				return null;
			}
			$sanitized['thumbnail_url'] = sanitize_url( $value['thumbnail_url'] );
			if ( '' === $sanitized['thumbnail_url'] ) {
				return new WP_Error( 'invalid_url', __( 'Invalid URL.' ) );
			}
		}

		if ( isset( $value['timestamp'] ) ) {
			if ( ! is_scalar( $value['timestamp'] ) ) {
				return null;
			}
			$sanitized['timestamp'] = absint( $value['timestamp'] );
		}

		if ( isset( $value['width'] ) ) {
			if ( ! is_scalar( $value['width'] ) ) {
				return null;
			}
			$sanitized['width'] = absint( $value['width'] );
		}

		if ( isset( $value['height'] ) ) {
			if ( ! is_scalar( $value['height'] ) ) {
				return null;
			}
			$sanitized['height'] = absint( $value['height'] );
		}

		if ( isset( $value['alt_text'] ) ) {
			if ( ! is_string( $value['alt_text'] ) ) {
				return null;
			}
			$sanitized['alt_text'] = sanitize_text_field( $value['alt_text'] );
		}

		if ( isset( $value['attachment_parent'] ) ) {
			if ( ! is_scalar( $value['attachment_parent'] ) ) {
				return null;
			}
			$sanitized['attachment_parent'] = absint( $value['attachment_parent'] );
		}

		return $sanitized;
	}
}

Directory Contents

Dirs: 0 × Files: 36
Name Size Perms Modified Actions
1.25 KB lrw-r--r-- 2022-05-18 09:54:14
Edit Download
782 B lrw-r--r-- 2026-02-17 23:09:42
Edit Download
2.96 KB lrw-r--r-- 2023-02-07 11:40:22
Edit Download
2.26 KB lrw-r--r-- 2020-06-16 15:37:14
Edit Download
3.13 KB lrw-r--r-- 2025-07-16 17:22:40
Edit Download
1.42 KB lrw-r--r-- 2023-09-08 04:02:24
Edit Download
7.51 KB lrw-r--r-- 2026-01-26 09:47:36
Edit Download
9.22 KB lrw-r--r-- 2025-03-05 17:57:22
Edit Download
733 B lrw-r--r-- 2026-02-17 23:09:42
Edit Download
8.12 KB lrw-r--r-- 2026-02-27 17:48:40
Edit Download
7.15 KB lrwxr-xr-x 2026-09-18 11:09:46
Edit Download
1.18 KB lrw-r--r-- 2020-11-22 10:23:04
Edit Download
9.24 KB lrw-r--r-- 2026-02-02 00:44:44
Edit Download
1.10 KB lrw-r--r-- 2017-10-04 20:52:50
Edit Download
2.08 KB lrw-r--r-- 2023-02-07 11:40:22
Edit Download
7.97 KB lrw-r--r-- 2024-06-03 15:05:14
Edit Download
27.43 KB lrw-r--r-- 2026-08-20 15:10:58
Edit Download
2.25 KB lrw-r--r-- 2024-01-28 02:20:18
Edit Download
2.75 KB lrw-r--r-- 2023-02-23 05:36:20
Edit Download
1.10 KB lrw-r--r-- 2017-10-04 20:52:50
Edit Download
716 B lrw-r--r-- 2020-10-08 15:45:14
Edit Download
18.68 KB lrw-r--r-- 2026-02-17 23:09:42
Edit Download
3.23 KB lrw-r--r-- 2023-02-07 11:40:22
Edit Download
1.67 KB lrw-r--r-- 2020-02-26 08:00:08
Edit Download
1.65 KB lrw-r--r-- 2020-02-26 10:03:06
Edit Download
10.30 KB lrw-r--r-- 2026-02-13 12:22:44
Edit Download
13.45 KB lrw-r--r-- 2026-08-20 15:10:58
Edit Download
1.03 KB lrw-r--r-- 2017-11-30 17:41:00
Edit Download
5.04 KB lrw-r--r-- 2025-08-18 14:57:38
Edit Download
11.61 KB lrw-r--r-- 2023-09-13 19:55:16
Edit Download
3.31 KB lrw-r--r-- 2024-10-13 13:39:12
Edit Download
6.79 KB lrw-r--r-- 2025-03-18 07:45:22
Edit Download
1.17 KB lrw-r--r-- 2020-11-22 10:21:04
Edit Download
686 B lrw-r--r-- 2021-05-25 03:22:58
Edit Download
1.68 KB lrw-r--r-- 2023-02-07 11:40:22
Edit Download
2.58 KB lrw-r--r-- 2019-04-12 23:16:52
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