tôi nhận thấy rằng có rất nhiều kịch bản có những loại ý kiến:comments Weird trên tờ khai chức năng PHP
/**
* 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;
}
Dường như một số loại tài liệu cho các chức năng, nhưng có chuyện gì thế với dòng chữ prepended với @
?
Giống như @since, @global, @return, @access, @param etc ...?
Tôi biết ý của họ là gì, nhưng tại sao họ lại có @ trước mặt họ? Họ có cần phải xác định với một số loại ứng dụng tài liệu.
Wow Tôi chưa bao giờ thực sự xem xét mã nguồn WP trước đây, 'toàn cầu $ wp_broken_themes' âm thanh giống như một số mã có khả năng khủng khiếp đang diễn ra! –
Chúng không phải là "lạ". @ Wesley: WP code là khủng khiếp; tốt, đó là PHP để đi con số. –
@Tomalak về PHP ghét: Nó không phải là chiếc xe, nó là người lái xe :) –