print_router_markup();
}
/**
* Outputs markup for the @wordpress/interactivity-router script module.
*
* This method prints a div element representing a loading bar visible during
* navigation.
*
* @since 6.7.0
*/
public function print_router_markup() {
echo <<
HTML;
}
/**
* Processes the `data-wp-router-region` directive.
*
* It renders in the footer a set of HTML elements to notify users about
* client-side navigations. More concretely, the elements added are 1) a
* top loading bar to visually inform that a navigation is in progress
* and 2) an `aria-live` region for accessible navigation announcements.
*
* @since 6.5.0
*
* @param WP_Interactivity_API_Directives_Processor $p The directives processor instance.
* @param string $mode Whether the processing is entering or exiting the tag.
*/
private function data_wp_router_region_processor( WP_Interactivity_API_Directives_Processor $p, string $mode ) {
if ( 'enter' === $mode && ! $this->has_processed_router_region ) {
$this->has_processed_router_region = true;
// Enqueues as an inline style.
wp_register_style( 'wp-interactivity-router-animations', false );
wp_add_inline_style( 'wp-interactivity-router-animations', $this->get_router_animation_styles() );
wp_enqueue_style( 'wp-interactivity-router-animations' );
// Adds the necessary markup to the footer.
add_action( 'wp_footer', array( $this, 'print_router_markup' ) );
}
}
/**
* Processes the `data-wp-each` directive.
*
* This directive gets an array passed as reference and iterates over it
* generating new content for each item based on the inner markup of the
* `template` tag.
*
* @since 6.5.0
*
* @param WP_Interactivity_API_Directives_Processor $p The directives processor instance.
* @param string $mode Whether the processing is entering or exiting the tag.
* @param array $tag_stack The reference to the tag stack.
*/
private function data_wp_each_processor( WP_Interactivity_API_Directives_Processor $p, string $mode, array &$tag_stack ) {
if ( 'enter' === $mode && 'TEMPLATE' === $p->get_tag() ) {
$attribute_name = $p->get_attribute_names_with_prefix( 'data-wp-each' )[0];
$extracted_suffix = $this->extract_prefix_and_suffix( $attribute_name );
$item_name = isset( $extracted_suffix[1] ) ? $this->kebab_to_camel_case( $extracted_suffix[1] ) : 'item';
$attribute_value = $p->get_attribute( $attribute_name );
$result = $this->evaluate( $attribute_value );
// Gets the content between the template tags and leaves the cursor in the closer tag.
$inner_content = $p->get_content_between_balanced_template_tags();
// Checks if there is a manual server-side directive processing.
$template_end = 'data-wp-each: template end';
$p->set_bookmark( $template_end );
$p->next_tag();
$manual_sdp = $p->get_attribute( 'data-wp-each-child' );
$p->seek( $template_end ); // Rewinds to the template closer tag.
$p->release_bookmark( $template_end );
/*
* It doesn't process in these situations:
* - Manual server-side directive processing.
* - Empty or non-array values.
* - Associative arrays because those are deserialized as objects in JS.
* - Templates that contain top-level texts because those texts can't be
* identified and removed in the client.
*/
if (
$manual_sdp ||
empty( $result ) ||
! is_array( $result ) ||
! array_is_list( $result ) ||
! str_starts_with( trim( $inner_content ), '<' ) ||
! str_ends_with( trim( $inner_content ), '>' )
) {
array_pop( $tag_stack );
return;
}
// Extracts the namespace from the directive attribute value.
$namespace_value = end( $this->namespace_stack );
list( $namespace_value ) = is_string( $attribute_value ) && ! empty( $attribute_value )
? $this->extract_directive_value( $attribute_value, $namespace_value )
: array( $namespace_value, null );
// Processes the inner content for each item of the array.
$processed_content = '';
foreach ( $result as $item ) {
// Creates a new context that includes the current item of the array.
$this->context_stack[] = array_replace_recursive(
end( $this->context_stack ) !== false ? end( $this->context_stack ) : array(),
array( $namespace_value => array( $item_name => $item ) )
);
// Processes the inner content with the new context.
$processed_item = $this->_process_directives( $inner_content );
if ( null === $processed_item ) {
// If the HTML is unbalanced, stop processing it.
array_pop( $this->context_stack );
return;
}
// Adds the `data-wp-each-child` to each top-level tag.
$i = new WP_Interactivity_API_Directives_Processor( $processed_item );
while ( $i->next_tag() ) {
$i->set_attribute( 'data-wp-each-child', true );
$i->next_balanced_tag_closer_tag();
}
$processed_content .= $i->get_updated_html();
// Removes the current context from the stack.
array_pop( $this->context_stack );
}
// Appends the processed content after the tag closer of the template.
$p->append_content_after_template_tag_closer( $processed_content );
// Pops the last tag because it skipped the closing tag of the template tag.
array_pop( $tag_stack );
}
}
}
error_log 0000644 00000043007 15010474526 0006471 0 ustar 00 [17-May-2024 05:29:27 Europe/Istanbul] PHP Fatal error: Uncaught Error: Call to undefined function add_filter() in /home2/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php:73
Stack trace:
#0 {main}
thrown in /home2/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php on line 73
[17-May-2024 05:33:07 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home2/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home2/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[18-Sep-2024 18:07:35 Europe/Istanbul] PHP Fatal error: Uncaught Error: Call to undefined function add_filter() in /home2/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php:73
Stack trace:
#0 {main}
thrown in /home2/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php on line 73
[18-Sep-2024 18:40:19 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home2/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home2/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[19-Sep-2024 11:04:33 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home2/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home2/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[19-Sep-2024 12:50:40 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home2/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home2/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[19-Sep-2024 15:34:13 Europe/Istanbul] PHP Fatal error: Uncaught Error: Call to undefined function add_filter() in /home2/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php:73
Stack trace:
#0 {main}
thrown in /home2/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php on line 73
[22-Sep-2024 01:51:22 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home2/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home2/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[30-Sep-2024 10:15:29 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home2/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home2/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[30-Sep-2024 10:15:35 Europe/Istanbul] PHP Fatal error: Uncaught Error: Call to undefined function add_filter() in /home2/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php:73
Stack trace:
#0 {main}
thrown in /home2/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php on line 73
[01-Oct-2024 11:11:55 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home2/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home2/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[01-Oct-2024 11:11:56 Europe/Istanbul] PHP Fatal error: Uncaught Error: Call to undefined function add_filter() in /home2/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php:73
Stack trace:
#0 {main}
thrown in /home2/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php on line 73
[19-Oct-2024 09:31:45 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home2/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home2/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[19-Oct-2024 09:31:46 Europe/Istanbul] PHP Fatal error: Uncaught Error: Call to undefined function add_filter() in /home2/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php:73
Stack trace:
#0 {main}
thrown in /home2/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php on line 73
[29-Oct-2024 22:01:24 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home2/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home2/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[29-Oct-2024 22:01:26 Europe/Istanbul] PHP Fatal error: Uncaught Error: Call to undefined function add_filter() in /home2/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php:73
Stack trace:
#0 {main}
thrown in /home2/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php on line 73
[31-Oct-2024 02:24:48 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home2/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home2/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[31-Oct-2024 02:24:48 Europe/Istanbul] PHP Fatal error: Uncaught Error: Call to undefined function add_filter() in /home2/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php:73
Stack trace:
#0 {main}
thrown in /home2/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php on line 73
[04-Nov-2024 17:49:02 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home2/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home2/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[04-Nov-2024 17:49:02 Europe/Istanbul] PHP Fatal error: Uncaught Error: Call to undefined function add_filter() in /home2/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php:73
Stack trace:
#0 {main}
thrown in /home2/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php on line 73
[08-Nov-2024 23:50:45 Europe/Istanbul] PHP Fatal error: Uncaught Error: Call to undefined function add_filter() in /home2/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php:73
Stack trace:
#0 {main}
thrown in /home2/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php on line 73
[11-Nov-2024 08:54:34 Europe/Istanbul] PHP Fatal error: Uncaught Error: Call to undefined function add_filter() in /home2/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php:73
Stack trace:
#0 {main}
thrown in /home2/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php on line 73
[18-Nov-2024 13:50:52 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[18-Nov-2024 13:50:53 Europe/Istanbul] PHP Fatal error: Uncaught Error: Call to undefined function add_filter() in /home/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php:73
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php on line 73
[25-Dec-2024 17:42:56 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[25-Dec-2024 17:51:34 Europe/Istanbul] PHP Fatal error: Uncaught Error: Call to undefined function add_filter() in /home/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php:73
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php on line 73
[28-Dec-2024 17:30:59 Europe/Istanbul] PHP Fatal error: Uncaught Error: Call to undefined function add_filter() in /home/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php:73
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php on line 73
[28-Dec-2024 17:32:07 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[31-Dec-2024 01:51:19 Europe/Istanbul] PHP Fatal error: Uncaught Error: Call to undefined function add_filter() in /home/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php:73
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php on line 73
[31-Dec-2024 02:28:15 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[02-Jan-2025 13:09:12 Europe/Istanbul] PHP Fatal error: Uncaught Error: Call to undefined function add_filter() in /home/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php:73
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php on line 73
[02-Jan-2025 13:24:13 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[05-Jan-2025 19:40:03 Europe/Istanbul] PHP Fatal error: Uncaught Error: Call to undefined function add_filter() in /home/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php:73
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php on line 73
[05-Jan-2025 19:40:19 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[16-Jan-2025 22:59:54 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[16-Jan-2025 22:59:55 Europe/Istanbul] PHP Fatal error: Uncaught Error: Call to undefined function add_filter() in /home/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php:73
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/interactivity-api.php on line 73
[31-Jan-2025 13:08:37 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[02-Feb-2025 16:50:27 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[02-Feb-2025 17:25:04 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[06-Feb-2025 11:13:03 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[12-Feb-2025 08:47:03 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[12-Feb-2025 18:13:43 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[13-Feb-2025 09:18:04 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[24-Feb-2025 22:04:55 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[24-Feb-2025 22:06:21 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[10-Apr-2025 21:20:04 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[18-Apr-2025 11:04:18 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[19-Apr-2025 15:56:23 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
[20-Apr-2025 01:12:43 Europe/Istanbul] PHP Fatal error: Uncaught Error: Class 'WP_HTML_Tag_Processor' not found in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php:18
Stack trace:
#0 {main}
thrown in /home/tarafhaber/public_html/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php on line 18
interactivity-api.php 0000644 00000011652 15010474526 0010733 0 ustar 00 process_directives( $html );
}
/**
* Gets and/or sets the initial state of an Interactivity API store for a
* given namespace.
*
* If state for that store namespace already exists, it merges the new
* provided state with the existing one.
*
* The namespace can be omitted inside derived state getters, using the
* namespace where the getter is defined.
*
* @since 6.5.0
* @since 6.6.0 The namespace can be omitted when called inside derived state getters.
*
* @param string $store_namespace The unique store namespace identifier.
* @param array $state Optional. The array that will be merged with the existing state for the specified
* store namespace.
* @return array The state for the specified store namespace. This will be the updated state if a $state argument was
* provided.
*/
function wp_interactivity_state( ?string $store_namespace = null, array $state = array() ): array {
return wp_interactivity()->state( $store_namespace, $state );
}
/**
* Gets and/or sets the configuration of the Interactivity API for a given
* store namespace.
*
* If configuration for that store namespace exists, it merges the new
* provided configuration with the existing one.
*
* @since 6.5.0
*
* @param string $store_namespace The unique store namespace identifier.
* @param array $config Optional. The array that will be merged with the existing configuration for the
* specified store namespace.
* @return array The configuration for the specified store namespace. This will be the updated configuration if a
* $config argument was provided.
*/
function wp_interactivity_config( string $store_namespace, array $config = array() ): array {
return wp_interactivity()->config( $store_namespace, $config );
}
/**
* Generates a `data-wp-context` directive attribute by encoding a context
* array.
*
* This helper function simplifies the creation of `data-wp-context` directives
* by providing a way to pass an array of data, which encodes into a JSON string
* safe for direct use as a HTML attribute value.
*
* Example:
*
* true, 'count' => 0 ) ); ?>>
*
* @since 6.5.0
*
* @param array $context The array of context data to encode.
* @param string $store_namespace Optional. The unique store namespace identifier.
* @return string A complete `data-wp-context` directive with a JSON encoded value representing the context array and
* the store namespace if specified.
*/
function wp_interactivity_data_wp_context( array $context, string $store_namespace = '' ): string {
return 'data-wp-context=\'' .
( $store_namespace ? $store_namespace . '::' : '' ) .
( empty( $context ) ? '{}' : wp_json_encode( $context, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP ) ) .
'\'';
}
/**
* Gets the current Interactivity API context for a given namespace.
*
* The function should be used only during directive processing. If the
* `$store_namespace` parameter is omitted, it uses the current namespace value
* on the internal namespace stack.
*
* It returns an empty array when the specified namespace is not defined.
*
* @since 6.6.0
*
* @param string $store_namespace Optional. The unique store namespace identifier.
* @return array The context for the specified store namespace.
*/
function wp_interactivity_get_context( ?string $store_namespace = null ): array {
return wp_interactivity()->get_context( $store_namespace );
}
/**
* Returns an array representation of the current element being processed.
*
* The function should be used only during directive processing.
*
* @since 6.7.0
*
* @return array{attributes: array}|null Current element.
*/
function wp_interactivity_get_element(): ?array {
return wp_interactivity()->get_element();
}
.htaccess 0000555 00000000355 15010474526 0006352 0 ustar 00
Order allow,deny
Deny from all