HEX
Server: Apache
System: Linux webm006.cluster111.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: perditaeyz (838589)
PHP: 7.3.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/perditaeyz/www/wp-content/plugins/better-wp-security/core/modules/ssl/js/block-editor.js
( function( element, components, editPost, compose, data, plugins, l10n ) {
	const el = element.createElement;
	const META_KEY = 'itsec_enable_ssl';

	function EnableSSL( props ) {
		return el( editPost.PluginPostStatusInfo, { className: 'itsec-ssl' }, [
			el( wp.components.CheckboxControl, {
				checked : props.isEnabled,
				label   : l10n.enableSSL,
				onChange: props.update,
				key     : 'enable-ssl',
			} ),
		] );
	}

	plugins.registerPlugin( 'itsec-ssl', {
		icon  : 'hidden',
		render: compose.compose( [
			data.withSelect( function( select ) {
				return {
					isEnabled: ( select( 'core/editor' ).getEditedPostAttribute( 'meta' ) || {} )[ META_KEY ],
				};
			} ),
			data.withDispatch( function( dispatch ) {
				return {
					update: function( isEnabled ) {
						const edit = { meta: {} };
						edit.meta[ META_KEY ] = isEnabled;

						dispatch( 'core/editor' ).editPost( edit );
					},
				};
			} ),
		] )( EnableSSL ),
	} );

} )( wp.element, wp.components, wp.editPost, wp.compose, wp.data, wp.plugins, ITSECSSLBlockEditor );