Make API Typecho_Common::arrayFlatten deprecated, please use array_column instead.

This commit is contained in:
joyqi
2021-08-20 16:42:40 +08:00
parent 687ab6260a
commit 75d5677d7d
10 changed files with 23 additions and 47 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);
<ul>
<?php
if ($post->have()) {
$categories = Typecho_Common::arrayFlatten($post->categories, 'mid');
$categories = array_column($post->categories, 'mid');
} else {
$categories = array();
}