itemap-stylesheet' ) ); $paged = absint( get_query_var( 'paged' ) ); // Bail early if this isn't a sitemap or stylesheet route. if ( ! ( $sitemap || $stylesheet_type ) ) { return; } if ( ! $this->sitemaps_enabled() ) { $wp_query->set_404(); status_header( 404 ); return; } // Render stylesheet if this is stylesheet route. if ( $stylesheet_type ) { $stylesheet = new WP_Sitemaps_Stylesheet(); $stylesheet->render_stylesheet( $stylesheet_type ); exit; } // Render the index. if ( 'index' === $sitemap ) { $sitemap_list = $this->index->get_sitemap_list(); $this->renderer->render_index( $sitemap_list ); exit; } $provider = $this->registry->get_provider( $sitemap ); if ( ! $provider ) { return; } if ( empty( $paged ) ) { $paged = 1; } $url_list = $provider->get_url_list( $paged, $object_subtype ); // Force a 404 and bail early if no URLs are present. if ( empty( $url_list ) ) { $wp_query->set_404(); status_header( 404 ); return; } $this->renderer->render_sitemap( $url_list ); exit; } /** * Redirects a URL to the wp-sitemap.xml * * @since 5.5.0 * * @param bool $bypass Pass-through of the pre_handle_404 filter value. * @param WP_Query $query The WP_Query object. * @return bool Bypass value. */ public function redirect_sitemapxml( $bypass, $query ) { // If a plugin has already utilized the pre_handle_404 function, return without action to avoid conflicts. if ( $bypass ) { return $bypass; } // 'pagename' is for most permalink types, name is for when the %postname% is used as a top-level field. if ( 'sitemap-xml' === $query->get( 'pagename' ) || 'sitemap-xml' === $query->get( 'name' ) ) { wp_safe_redirect( $this->index->get_index_url() ); exit(); } return $bypass; } /** * Adds the sitemap index to robots.txt. * * @since 5.5.0 * * @param string $output robots.txt output. * @param bool $is_public Whether the site is public. * @return string The robots.txt output. */ public function add_robots( $output, $is_public ) { if ( $is_public ) { $output .= "\nSitemap: " . esc_url( $this->index->get_index_url() ) . "\n"; } return $output; } }
Deprecated: Creation of dynamic property IGFW::$failed_dependencies is deprecated in /home/mupixuti/public_html/redesign/wp-content/plugins/invoice-gateway-for-woocommerce/invoice-gateway-for-woocommerce.php on line 158

Deprecated: Creation of dynamic property IGFW\Helpers\Plugin_Constants::$_MAIN_PLUGIN_FILE_PATH is deprecated in /home/mupixuti/public_html/redesign/wp-content/plugins/invoice-gateway-for-woocommerce/Helpers/Plugin_Constants.php on line 53

Deprecated: Creation of dynamic property IGFW\Helpers\Plugin_Constants::$_PLUGIN_DIR_PATH is deprecated in /home/mupixuti/public_html/redesign/wp-content/plugins/invoice-gateway-for-woocommerce/Helpers/Plugin_Constants.php on line 54

Deprecated: Creation of dynamic property IGFW\Helpers\Plugin_Constants::$_PLUGIN_DIR_URL is deprecated in /home/mupixuti/public_html/redesign/wp-content/plugins/invoice-gateway-for-woocommerce/Helpers/Plugin_Constants.php on line 55

Deprecated: Creation of dynamic property IGFW\Helpers\Plugin_Constants::$_PLUGIN_BASENAME is deprecated in /home/mupixuti/public_html/redesign/wp-content/plugins/invoice-gateway-for-woocommerce/Helpers/Plugin_Constants.php on line 56

Deprecated: Creation of dynamic property IGFW\Helpers\Plugin_Constants::$_PLUGIN_MAIN_FILE is deprecated in /home/mupixuti/public_html/redesign/wp-content/plugins/invoice-gateway-for-woocommerce/Helpers/Plugin_Constants.php on line 57

Deprecated: Creation of dynamic property IGFW\Helpers\Plugin_Constants::$_CSS_ROOT_URL is deprecated in /home/mupixuti/public_html/redesign/wp-content/plugins/invoice-gateway-for-woocommerce/Helpers/Plugin_Constants.php on line 59

Deprecated: Creation of dynamic property IGFW\Helpers\Plugin_Constants::$_IMAGES_ROOT_URL is deprecated in /home/mupixuti/public_html/redesign/wp-content/plugins/invoice-gateway-for-woocommerce/Helpers/Plugin_Constants.php on line 60

Deprecated: Creation of dynamic property IGFW\Helpers\Plugin_Constants::$_JS_ROOT_URL is deprecated in /home/mupixuti/public_html/redesign/wp-content/plugins/invoice-gateway-for-woocommerce/Helpers/Plugin_Constants.php on line 61

Deprecated: Creation of dynamic property IGFW\Helpers\Plugin_Constants::$_VIEWS_ROOT_PATH is deprecated in /home/mupixuti/public_html/redesign/wp-content/plugins/invoice-gateway-for-woocommerce/Helpers/Plugin_Constants.php on line 63

Deprecated: Creation of dynamic property IGFW\Helpers\Plugin_Constants::$_TEMPLATES_ROOT_PATH is deprecated in /home/mupixuti/public_html/redesign/wp-content/plugins/invoice-gateway-for-woocommerce/Helpers/Plugin_Constants.php on line 64

Deprecated: Creation of dynamic property IGFW\Helpers\Plugin_Constants::$_LOGS_ROOT_PATH is deprecated in /home/mupixuti/public_html/redesign/wp-content/plugins/invoice-gateway-for-woocommerce/Helpers/Plugin_Constants.php on line 65

Deprecated: Creation of dynamic property Alg_WC_Payment_Gateways_By_User_Roles::$core is deprecated in /home/mupixuti/public_html/redesign/wp-content/plugins/payment-gateways-by-user-roles-for-woocommerce-pro/payment-gateways-by-user-roles-for-woocommerce-pro.php on line 121

Fatal error: Uncaught Error: Class "WP_Sitemaps" not found in /home/mupixuti/public_html/redesign/wp-includes/sitemaps.php:27 Stack trace: #0 /home/mupixuti/public_html/redesign/wp-includes/class-wp-hook.php(324): wp_sitemaps_get_server('') #1 /home/mupixuti/public_html/redesign/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #2 /home/mupixuti/public_html/redesign/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home/mupixuti/public_html/redesign/wp-settings.php(643): do_action('init') #4 /home/mupixuti/public_html/redesign/wp-config.php(98): require_once('/home/mupixuti/...') #5 /home/mupixuti/public_html/redesign/wp-load.php(50): require_once('/home/mupixuti/...') #6 /home/mupixuti/public_html/redesign/wp-blog-header.php(13): require_once('/home/mupixuti/...') #7 /home/mupixuti/public_html/redesign/index.php(17): require('/home/mupixuti/...') #8 {main} thrown in /home/mupixuti/public_html/redesign/wp-includes/sitemaps.php on line 27