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/search.php | 93 ---------------------------- 1 file changed, 93 deletions(-) delete mode 100644 srcs/wordpress/wp-includes/blocks/search.php (limited to 'srcs/wordpress/wp-includes/blocks/search.php') diff --git a/srcs/wordpress/wp-includes/blocks/search.php b/srcs/wordpress/wp-includes/blocks/search.php deleted file mode 100644 index 6cd909f..0000000 --- a/srcs/wordpress/wp-includes/blocks/search.php +++ /dev/null @@ -1,93 +0,0 @@ -%s', - $input_id, - $attributes['label'] - ); - } - - $input_markup = sprintf( - '', - $input_id, - esc_attr( get_search_query() ), - esc_attr( $attributes['placeholder'] ) - ); - - if ( ! empty( $attributes['buttonText'] ) ) { - $button_markup = sprintf( - '', - $attributes['buttonText'] - ); - } - - $class = 'wp-block-search'; - if ( isset( $attributes['className'] ) ) { - $class .= ' ' . $attributes['className']; - } - - if ( isset( $attributes['align'] ) ) { - $class .= ' align' . $attributes['align']; - } - - return sprintf( - '', - $class, - esc_url( home_url( '/' ) ), - $label_markup . $input_markup . $button_markup - ); -} - -/** - * Registers the `core/search` block on the server. - */ -function register_block_core_search() { - register_block_type( - 'core/search', - array( - 'attributes' => array( - 'align' => array( - 'type' => 'string', - 'enum' => array( 'left', 'center', 'right', 'wide', 'full' ), - ), - 'className' => array( - 'type' => 'string', - ), - 'label' => array( - 'type' => 'string', - 'default' => __( 'Search' ), - ), - 'placeholder' => array( - 'type' => 'string', - 'default' => '', - ), - 'buttonText' => array( - 'type' => 'string', - 'default' => __( 'Search' ), - ), - ), - 'render_callback' => 'render_block_core_search', - ) - ); -} -add_action( 'init', 'register_block_core_search' ); -- cgit