は、私は、スクリプトの多くは、コメントのこれらのタイプを持っていることに気づい:奇妙なコメント
/**
* 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ソースコードを見たことがない、 'global $ wp_broken_themes'は潜在的にひどいコードが起こっているように聞こえる! –
彼らは "奇妙な"ではありません。 @ウェズリー:WPコードは恐ろしいです。まあ、それはPHPので、図に行くです。 –
@TomalakはPHPに関して嫌いです:それは車ではなく、それは運転手です:) –