OSDN Git Service

Eコマース機能更新。
[magic3/magic3.git] / include / wp / plugins / woocommerce / includes / wc-page-functions.php
index 4a8109e..52dbe21 100644 (file)
@@ -68,8 +68,13 @@ function wc_get_page_id( $page ) {
  * @return string
  */
 function wc_get_page_permalink( $page ) {
-       $page_id   = wc_get_page_id( $page );
-       $permalink = 0 < $page_id ? get_permalink( $page_id ) : get_home_url();
+//     $page_id   = wc_get_page_id( $page );
+//     $permalink = 0 < $page_id ? get_permalink( $page_id ) : get_home_url();
+       global $gContentApi;
+       
+       // Magic3\82ÌE\83R\83}\81[\83X\8b@\94\\82ÌURL\82É\95Ï\8a·
+       $permalink = $gContentApi->getCommerceUrl($page);
+       
        return apply_filters( 'woocommerce_get_' . $page . '_page_permalink', $permalink );
 }