Skip to content

Commit

Permalink
新增关闭友情页面选项
Browse files Browse the repository at this point in the history
  • Loading branch information
miniwater committed Jan 13, 2024
1 parent ee44616 commit 20a626a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inc/setting/options/BaseOptionItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ protected static function get_link_category()
{
if(!self::$_link_category){
self::$_link_category = get_all_category_id_row('link_category');
array_unshift(self::$_link_category, ['label' => '无', 'value' => '']);
}
return self::$_link_category;
}
Expand All @@ -36,6 +37,7 @@ protected static function get_pages()
{
if(!self::$_pages){
$pages = array();
$pages[] = ['label' => '无', 'value' => ''];
$pageObjects = get_pages('sort_column=post_parent,menu_order');
foreach ($pageObjects as $page) {
$pages[] = ['label' => $page->post_title, 'value' => $page->ID];
Expand Down

0 comments on commit 20a626a

Please sign in to comment.