From 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 27 Jul 2020 10:05:23 +0200 Subject: Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my familly --- srcs/wordpress/wp-includes/blocks/calendar.php | 78 -------------------------- 1 file changed, 78 deletions(-) delete mode 100644 srcs/wordpress/wp-includes/blocks/calendar.php (limited to 'srcs/wordpress/wp-includes/blocks/calendar.php') diff --git a/srcs/wordpress/wp-includes/blocks/calendar.php b/srcs/wordpress/wp-includes/blocks/calendar.php deleted file mode 100644 index 3d2e806..0000000 --- a/srcs/wordpress/wp-includes/blocks/calendar.php +++ /dev/null @@ -1,78 +0,0 @@ -%2$s', - esc_attr( 'wp-block-calendar' . $custom_class_name . $align_class_name ), - get_calendar( true, false ) - ); - - // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited - $monthnum = $previous_monthnum; - // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited - $year = $previous_year; - - return $output; -} - -/** - * Registers the `core/calendar` block on server. - */ -function register_block_core_calendar() { - register_block_type( - 'core/calendar', - array( - 'attributes' => array( - 'align' => array( - 'type' => 'string', - 'enum' => array( 'left', 'center', 'right', 'wide', 'full' ), - ), - 'className' => array( - 'type' => 'string', - ), - 'month' => array( - 'type' => 'integer', - ), - 'year' => array( - 'type' => 'integer', - ), - ), - 'render_callback' => 'render_block_core_calendar', - ) - ); -} - -add_action( 'init', 'register_block_core_calendar' ); -- cgit