예제 #1
0
 /**
  * Returns the escaped URL for the given page of a paginated data set.
  *
  * @param  int    $page the page number
  * @return string       the escaped URL of the page
  *
  * @access private
  * @since 0.1
  */
 private function _make_page_url($page)
 {
     $url = ClassBlogs_Utils::get_current_url();
     $query = parse_url($url, PHP_URL_QUERY);
     if ($query) {
         $url = preg_replace('/\\?.*/', '', $url);
     }
     $query = $_GET;
     $query['paged'] = $page;
     return esc_url($url . '?' . http_build_query($query));
 }