hit( $proper_url ) . ( $page_count + 1 ) ); } } // Fix reply to comment links, whoever decided this should be a GET variable? // phpcs:ignore WordPress.Security -- We know this is scary. if ( isset( $_SERVER['REQUEST_URI'] ) && \preg_match( '`(\?replytocom=[^&]+)`', \sanitize_text_field( $_SERVER['REQUEST_URI'] ), $matches ) ) { $proper_url .= \str_replace( '?replytocom=', '#comment-', $matches[0] ); } unset( $matches ); return $proper_url; } /** * Returns the proper URL for front page. * * @return string The proper URL. */ public function front_page_url() { if ( $this->current_page_helper->is_home_posts_page() ) { return \home_url( '/' ); } if ( $this->current_page_helper->is_home_static_page() ) { return \get_permalink( $GLOBALS['post']->ID ); } return ''; } /** * Returns the proper URL for 404 page. * * @param string $current_url The current URL. * @return string The proper URL. */ public function page_not_found_url( $current_url ) { if ( ! \is_multisite() || \is_subdomain_install() || ! \is_main_site() ) { return ''; } if ( $current_url !== \home_url() . '/blog/' && $current_url !== \home_url() . '/blog' ) { return ''; } if ( $this->current_page_helper->is_home_static_page() ) { return \get_permalink( \get_option( 'page_for_posts' ) ); } return \home_url(); } /** * Returns the proper URL for taxonomy page. * * @return string The proper URL. */ public function taxonomy_url() { global $wp_query; $term = $wp_query->get_queried_object(); if ( \is_feed() ) { return \get_term_feed_link( $term->term_id, $term->taxonomy ); } return \get_term_link( $term, $term->taxonomy ); } /** * Returns the proper URL for search page. * * @return string The proper URL. */ public function search_url() { $s = \get_search_query(); return \home_url() . '/?s=' . \rawurlencode( $s ); } /** * Returns the proper URL for url with page param. * * @param string $proper_url The proper URL. * @return string The proper URL. */ public function query_var_page_url( $proper_url ) { global $wp_query; if ( \is_search( $proper_url ) ) { return \home_url() . '/page/' . $wp_query->query_vars['paged'] . '/?s=' . \rawurlencode( \get_search_query() ); } return \user_trailingslashit( \trailingslashit( $proper_url ) . 'page/' . $wp_query->query_vars['paged'] ); } /** * Returns true if query is with page param. * * @param string $proper_url The proper URL. * @return bool is query with page param. */ public function is_query_var_page( $proper_url ) { global $wp_query; if ( empty( $proper_url ) || $wp_query->query_vars['paged'] === 0 || $wp_query->post_count === 0 ) { return false; } return true; } /** * Redirects clean permalink. * * @param string $proper_url The proper URL. * @return void */ public function do_clean_redirect( $proper_url ) { $this->redirect_helper->set_header( 'Content-Type: redirect', true ); $this->redirect_helper->remove_header( 'Content-Type' ); $this->redirect_helper->remove_header( 'Last-Modified' ); $this->redirect_helper->remove_header( 'X-Pingback' ); $message = \sprintf( /* translators: %1$s: Yoast SEO */ \__( '%1$s: unregistered URL parameter removed. See %2$s', 'wordpress-seo' ), 'Yoast SEO', 'https://yoa.st/advanced-crawl-settings' ); $this->redirect_helper->do_safe_redirect( $proper_url, 301, $message ); } /** * Gets the type of URL. * * @return string The type of URL. */ public function get_url_type() { if ( \is_singular() ) { return 'singular_url'; } if ( \is_front_page() ) { return 'front_page_url'; } if ( $this->current_page_helper->is_posts_page() ) { return 'page_for_posts_url'; } if ( \is_category() || \is_tag() || \is_tax() ) { return 'taxonomy_url'; } if ( \is_search() ) { return 'search_url'; } if ( \is_404() ) { return 'page_not_found_url'; } return ''; } /** * Returns the proper URL for posts page. * * @return string The proper URL. */ public function page_for_posts_url() { return \get_permalink( \get_option( 'page_for_posts' ) ); } } الصفحة غير موجودة - موقع الطب والصحه و العناية الصحيه
موقع الطب والصحه و العناية الصحيه
هدفنا هو الوصول لهدفك بأأقل مجهود

404

الصفحة غير موجودة!

نحن آسفون، لا يمكن العثور على الصفحة التي كنت تبحث عنها. على الارجح هناك خطأ ولكن يجب أن نعرف عن ذلك، وسنحاول إصلاحه. في هذه الأثناء، حاول مرة أخرى من هذه الخيارات: