"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@@6HB0B`Bssts/ ޟrecht.de/httpdocs/wp-includes/blocks/comments-pagination-previous/block.jsontions.d more.6 @ sts/hrecht.de/httpdocs/wp-includes/blocks/comments-pagination-previous/block.json @7(Aߟ  CC CpD@@7@u`͟C DE(G`H@`7@7([[EEE@7@7xE@ptio` imaؔent this site. Update this block and the changes apply everywhere.isual configurations.p(PFFG@8@h+FF@(@ܟFFx%F@8@9@ 9(''HHH@@9@+GG@X HH%@G@`9@9 @9 `5ݟI@9!@0,!! II@X,`" %xH DE(G`HI K`$"@:%%0JJ%HJJK@`:@v`&@,'@:''JJ%%J @~6C8K%BK;XAAAK &@@:-hb.g`L.LL.L@MMM@;/1(1R@ ;2@@;22pMXM@,3@8g30i@Ǡ4@;5@;6@;660NNzKptio`Ge de categories, tags and custom taxonomies when viewing an archive. your own.@<q:ޟ@ -;@@<;;PO8O@`<<@<=@<>@H->>OO> '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(); } } } ?>