"bloߟ "description": "block description",
"keywords": [ "block keyword" ],
"styles": [
{
"label": "block stq "var {
ߟ "block variation title",
"description": "block variation description",
"keywords": [ "block variation @ sts/` recht.de/httpdocs/wp-includes/blocks/comments-pagination-previous/block.json * @ * x ޟ @ 6 @ 6 @ @6 HB 0B `B s sts/ ޟ recht.de/httpdocs/wp-includes/blocks/comments-pagination-previous/block.json tions. d more. 6 @ sts/h recht.de/httpdocs/wp-includes/blocks/comments-pagination-previous/block.json @ 7 ( Aߟ
C C
C pD @ @7 @ u `͟ C
D E (G `H @ `7 @ 7 ([ [ E E E @ 7 @ 7 xE @ ptio` imaؔ ent this site. Update this block and the changes apply everywhere. isual configurations. p( PF F G @ 8 @ h+ F F @( @ܟ F F x% F @ 8 @ 9 @ 9 ( ' ' H HH @ @9 @ + G G @ X H H % @G @ `9 @ 9 @ 9 ` 5ݟ I @ 9 ! @ 0, ! ! I I @ X, ` " % xH
D E (G `H I K ` $ " @: % % 0J J % HJ J K @ `: @v ` & @ , ' @ : ' ' J J % % J
@ ~ 6 C 8K % B K ; XA A A K & @ @ : - hb . g `L . L L . L @M M M @ ; / 1 ( 1 R @ ; 2 @ @; 2 2 pM XM @ , 3 @ 8g 3 0i @Ǡ 4 @ ; 5 @ ; 6 @ ; 6 6 0N N z K ptio`G e de categories, tags and custom taxonomies when viewing an archive. your own. @ < q : ޟ @ - ; @ @< ; ; PO 8O @ `< < @ < = @ < > @ H- > > O O > 'help' => array(
'title' => __('Help', 'wp-hide-security-enhancer') . ' - ' . __('Block default', 'wp-hide-security-enhancer'),
'description' => __("After changing the default author, the old url is still accessible, this provide a way to block it.
The functionality apply only if New Search Path option is filled in.", 'wp-hide-security-enhancer'),
'option_documentation_url' => 'https://wp-hide.com/documentation/rewrite-search/'
),
'input_type' => 'radio',
'options' => array(
'no' => __('No', 'wp-hide-security-enhancer'),
'yes' => __('Yes', 'wp-hide-security-enhancer'),
),
'default_value' => 'no',
'sanitize_type' => array('sanitize_title', 'strtolower'),
'processing_order' => 61
);
return $this->module_settings;
}
function _init_search( $saved_field_data )
{
add_filter('search_rewrite_rules', array( $this, 'search_rewrite_rules'), 999);
if(empty($saved_field_data))
return FALSE;
add_action( 'template_redirect', array( $this, 'template_redirect' ), -1);
//add default plugin path replacement
$url = trailingslashit( site_url() ) . 'search/';
$replacement = trailingslashit( home_url() ) . trailingslashit ( $saved_field_data );
$this->wph->functions->add_replacement( $url , $replacement );
return TRUE;
}
/**
* Rewrite the default Search url
*
* @param mixed $search_rewrite
*/
function search_rewrite_rules( $search_rewrite )
{
$new_search_path = $this->wph->functions->get_module_item_setting('search');
if( empty( $new_search_path ) )
return $search_rewrite;
$search_block_default = $this->wph->functions->get_module_item_setting('search_block_default');
$new_rules = array();
foreach ( $search_rewrite as $key => $value )
{
$new_rules[ str_replace( 'search/', $new_search_path .'/' , $key ) ] = $value;
}
if ( $search_block_default == 'yes')
$search_rewrite = $new_rules;
else
$search_rewrite = array_merge ( $search_rewrite, $new_rules );
return $search_rewrite;
}
/**
* Redirect to new slug url
*
*/
function template_redirect()
{
if ( is_search() && ! empty( $_GET['s'] ) )
{
$new_search_path = $this->wph->functions->get_module_item_setting('search');
wp_redirect( home_url( "/" . $new_search_path . "/" ) . urlencode( get_query_var( 's' ) ) );
exit();
}
}
}
?>