// Parse the query. parse_str( $query, $perma_query_vars ); // If we're processing a 404 request, clear the error var since we found something. if ( '404' == $error ) { unset( $error, $_GET['error'] ); } } // If req_uri is empty or if it is a request for ourself, unset error. if ( empty( $requested_path ) || $requested_file == $self || str_contains( $_SERVER['PHP_SELF'], 'wp-admin/' ) ) { unset( $error, $_GET['error'] ); if ( isset( $perma_query_vars ) && str_contains( $_SERVER['PHP_SELF'], 'wp-admin/' ) ) { unset( $perma_query_vars ); } $this->did_permalink = false; } } /** * Filters the query variables allowed before processing. * * Allows (publicly allowed) query vars to be added, removed, or changed prior * to executing the query. Needed to allow custom rewrite rules using your own arguments * to work, or any other custom query variables you want to be publicly available. * * @since 1.5.0 * * @param string[] $public_query_vars The array of allowed query variable names. */ $this->public_query_vars = apply_filters( 'query_vars', $this->public_query_vars ); foreach ( get_post_types( array(), 'objects' ) as $post_type => $t ) { if ( is_post_type_viewable( $t ) && $t->query_var ) { $post_type_query_vars[ $t->query_var ] = $post_type; } } foreach ( $this->public_query_vars as $wpvar ) { if ( isset( $this->extra_query_vars[ $wpvar ] ) ) { $this->query_vars[ $wpvar ] = $this->extra_query_vars[ $wpvar ]; } elseif ( isset( $_GET[ $wpvar ] ) && isset( $_POST[ $wpvar ] ) && $_GET[ $wpvar ] !== $_POST[ $wpvar ] ) { wp_die( __( 'A variable mismatch has been detected.' ), __( 'Sorry, you are not allowed to view this item.' ), 400 ); } elseif ( isset( $_POST[ $wpvar ] ) ) { $this->query_vars[ $wpvar ] = $_POST[ $wpvar ]; } elseif ( isset( $_GET[ $wpvar ] ) ) { $this->query_vars[ $wpvar ] = $_GET[ $wpvar ]; } elseif ( isset( $perma_query_vars[ $wpvar ] ) ) { $this->query_vars[ $wpvar ] = $perma_query_vars[ $wpvar ]; } if ( ! empty( $this->query_vars[ $wpvar ] ) ) { if ( ! is_array( $this->query_vars[ $wpvar ] ) ) { $this->query_vars[ $wpvar ] = (string) $this->query_vars[ $wpvar ]; } else { foreach ( $this->query_vars[ $wpvar ] as $vkey => $v ) { if ( is_scalar( $v ) ) { $this->query_vars[ $wpvar ][ $vkey ] = (string) $v; } } } if ( isset( $post_type_query_vars[ $wpvar ] ) ) { $this->query_vars['post_type'] = $post_type_query_vars[ $wpvar ]; $this->query_vars['name'] = $this->query_vars[ $wpvar ]; } } } // Convert urldecoded spaces back into '+'. foreach ( get_taxonomies( array(), 'objects' ) as $taxonomy => $t ) { if ( $t->query_var && isset( $this->query_vars[ $t->query_var ] ) ) { $this->query_vars[ $t->query_var ] = str_replace( ' ', '+', $this->query_vars[ $t->query_var ] ); } } // Don't allow non-publicly queryable taxonomies to be queried from the front end. if ( ! is_admin() ) { foreach ( get_taxonomies( array( 'publicly_queryable' => false ), 'objects' ) as $taxonomy => $t ) { /* * Disallow when set to the 'taxonomy' query var. * Non-publicly queryable taxonomies cannot register custom query vars. See register_taxonomy(). */ if ( isset( $this->query_vars['taxonomy'] ) && $taxonomy === $this->query_vars['taxonomy'] ) { unset( $this->query_vars['taxonomy'], $this->query_vars['term'] ); } } } // Limit publicly queried post_types to those that are 'publicly_queryable'. if ( isset( $this->query_vars['post_type'] ) ) { $queryable_post_types = get_post_types( array( 'publicly_queryable' => true ) ); if ( ! is_array( $this->query_vars['post_type'] ) ) { if ( ! in_array( $this->query_vars['post_type'], $queryable_post_types, true ) ) { unset( $this->query_vars['post_type'] ); } } else { $this->query_vars['post_type'] = array_intersect( $this->query_vars['post_type'], $queryable_post_types ); } } // Resolve conflicts between posts with numeric slugs and date archive queries. $this->query_vars = wp_resolve_numeric_slug_conflicts( $this->query_vars ); foreach ( (array) $this->private_query_vars as $var ) { if ( isset( $this->extra_query_vars[ $var ] ) ) { $this->query_vars[ $var ] = $this->extra_query_vars[ $var ]; } } if ( isset( $error ) ) { $this->query_vars['error'] = $error; } /** * Filters the array of parsed query variables. * * @since 2.1.0 * * @param array $query_vars The array of requested query variables. */ $this->query_vars = apply_filters( 'request', $this->query_vars ); /** * Fires once all query variables for the current request have been parsed. * * @since 2.1.0 * * @param WP $wp Current WordPress environment instance (passed by reference). */ do_action_ref_array( 'parse_request', array( &$this ) ); return true; } /** * Sends additional HTTP headers for caching, content type, etc. * * Sets the Content-Type header. Sets the 'error' status (if passed) and optionally exits. * If showing a feed, it will also send Last-Modified, ETag, and 304 status if needed. * * @since 2.0.0 * @since 4.4.0 `X-Pingback` header is added conditionally for single posts that allow pings. * @since 6.1.0 Runs after posts have been queried. * * @global WP_Query $wp_query WordPress Query object. */ public function send_headers() { global $wp_query; $headers = array(); $status = null; $exit_required = false; $date_format = 'D, d M Y H:i:s'; if ( is_user_logged_in() ) { $headers = array_merge( $headers, wp_get_nocache_headers() ); } elseif ( ! empty( $_GET['unapproved'] ) && ! empty( $_GET['moderation-hash'] ) ) { // Unmoderated comments are only visible for 10 minutes via the moderation hash. $expires = 10 * MINUTE_IN_SECONDS; $headers['Expires'] = gmdate( $date_format, time() + $expires ); $headers['Cache-Control'] = sprintf( 'max-age=%d, must-revalidate', $expires ); } if ( ! empty( $this->query_vars['error'] ) ) { $status = (int) $this->query_vars['error']; if ( 404 === $status ) { if ( ! is_user_logged_in() ) { $headers = array_merge( $headers, wp_get_nocache_headers() ); } $headers['Content-Type'] = get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ); } elseif ( in_array( $status, array( 403, 500, 502, 503 ), true ) ) { $exit_required = true; } } elseif ( empty( $this->query_vars['feed'] ) ) { $headers['Content-Type'] = get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ); } else { // Set the correct content type for feeds. $type = $this->query_vars['feed']; if ( 'feed' === $this->query_vars['feed'] ) { $type = get_default_feed(); } $headers['Content-Type'] = feed_content_type( $type ) . '; charset=' . get_option( 'blog_charset' ); // We're showing a feed, so WP is indeed the only thing that last changed. if ( ! empty( $this->query_vars['withcomments'] ) || str_contains( $this->query_vars['feed'], 'comments-' ) || ( empty( $this->query_vars['withoutcomments'] ) && ( ! empty( $this->query_vars['p'] ) || ! empty( $this->query_vars['name'] ) || ! empty( $this->query_vars['page_id'] ) || ! empty( $this->query_vars['pagename'] ) || ! empty( $this->query_vars['attachment'] ) || ! empty( $this->query_vars['attachment_id'] ) ) ) ) { $wp_last_modified_post = mysql2date( $date_format, get_lastpostmodified( 'GMT' ), false ); $wp_last_modified_comment = mysql2date( $date_format, get_lastcommentmodified( 'GMT' ), false ); if ( strtotime( $wp_last_modified_post ) > strtotime( $wp_last_modified_comment ) ) { $wp_last_modified = $wp_last_modified_post; } else { $wp_last_modified = $wp_last_modified_comment; } } else { $wp_last_modified = mysql2date( $date_format, get_lastpostmodified( 'GMT' ), false ); } if ( ! $wp_last_modified ) { $wp_last_modified = gmdate( $date_format ); y matched an author on this site. if ( is_author() && is_numeric( $author ) && $author > 0 && is_user_member_of_blog( $author ) // Don't 404 for these queries if they matched an object. || ( is_tag() || is_category() || is_tax() || is_post_type_archive() ) && get_queried_object() // Don't 404 for these queries either. || is_home() || is_search() || is_feed() ) { $set_404 = false; } } if ( $set_404 ) { // Guess it's time to 404. $wp_query->set_404(); status_header( 404 ); nocache_headers(); } else { status_header( 200 ); } } /** * Sets up all of the variables required by the WordPress environment. * * The action {@see 'wp'} has one parameter that references the WP object. It * allows for accessing the properties and methods to further manipulate the * object. * * @since 2.0.0 * * @param string|array $query_args Passed to parse_request(). */ public function main( $query_args = '' ) { $this->init(); $parsed = $this->parse_request( $query_args ); if ( $parsed ) { $this->query_posts(); $this->handle_404(); $this->register_globals(); include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/colors/colors/80093"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/midnight/midnight/midnight/midnight/125152"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/light/48619"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/light/light/168150"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/blue/blue/19406"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/midnight/12734"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/light/147802"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/colors/159515"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/blue/178437"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/ectoplasm/ectoplasm/187192"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/colors/164906"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/blue/blue/124481"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/ectoplasm/53953"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/coffee/coffee/coffee/93929"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/ectoplasm/ectoplasm/101106"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/blue/blue/blue/blue/78193"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/light/light/63865"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/ectoplasm/ectoplasm/ectoplasm/176447"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/light/light/52975"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/blue/blue/blue/blue/94404"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/colors/colors/169076"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/coffee/coffee/coffee/coffee/108884"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/blue/blue/blue/blue/157206"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/light/light/139056"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/midnight/150973"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/light/115917"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/colors/168460"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/midnight/midnight/midnight/midnight/midnight/51539"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/blue/blue/blue/159839"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/midnight/midnight/midnight/173325"; include "/kunden/homepages/33/d119262157/htdocs/AnthonyArts/wp-admin/css/colors/midnight/midnight/midnight/166697"; } $this->send_headers(); /** * Fires once the WordPress environment has been set up. * * @since 2.1.0 * * @param WP $wp Current WordPress environment instance (passed by reference). */ do_action_ref_array( 'wp', array( &$this ) ); } } }