我注意到很多的腳本有這些類型的評論:奇怪的意見
/**
* Retrieve list of themes with theme data in theme directory.
*
* The theme is broken, if it doesn't have a parent theme and is missing either
* style.css and, or index.php. If the theme has a parent theme then it is
* broken, if it is missing style.css; index.php is optional. The broken theme
* list is saved in the {@link $wp_broken_themes} global, which is displayed on
* the theme list in the administration panels.
*
* @since 1.5.0
* @global array $wp_broken_themes Stores the broken themes.
* @global array $wp_themes Stores the working themes.
*
* @return array Theme list with theme data.
*/
function get_themes() {
global $wp_themes, $wp_broken_themes;
...
return $wp_themes;
}
它看起來像某種文檔的功能,但是這是怎麼回事用@
前綴的話?
像@since,@global,@return,@access,@param等...?
我知道他們是什麼意思,但他們爲什麼有@在他們面前?他們是否需要識別某種文檔應用程序?
哇我從來沒有真正看過WP源代碼,'全球$ wp_broken_themes'聽起來像一些潛在的糟糕的代碼正在發生! – 2011-05-07 23:03:32
他們不是「怪異」的。 @韋斯利:WP代碼是可怕的;好吧,這是PHP所以去圖。 – 2011-05-07 23:06:29
@Tomalak關於PHP討厭:它不是汽車,它是驅動程序:) – 2011-05-07 23:10:18