refactor pages

This commit is contained in:
Jonathan Labreuille
2016-03-01 18:27:31 +01:00
parent 12c159c627
commit 1e7dbc8449
3 changed files with 40 additions and 39 deletions

View File

@@ -65,7 +65,9 @@ class Pages {
return array(
'id' => $page->ID,
'title' => $page->post_title,
'preview_url' => get_permalink($page->ID),
'preview_url' => add_query_arg(array(
'preview' => 1
), get_permalink($page->ID)),
'edit_url' => get_edit_post_link($page->ID)
);
}