Changeset 32547
- Timestamp:
- 05/22/2015 05:30:44 PM (9 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme.php
r32345 r32547 50 50 /** 51 51 * Renamed theme tags. 52 * 53 * @static 54 * @access private 55 * @var array 52 56 */ 53 57 private static $tag_map = array( … … 84 88 * 85 89 * Cached due to sorting functions running over the translated name. 90 * 91 * @access private 92 * @var string 86 93 */ 87 94 private $name_translated; … … 154 161 * Default is false. Can be set with the wp_cache_themes_persistently filter. 155 162 * 163 * @static 156 164 * @access private 157 165 * @var bool … … 164 172 * By default the bucket is not cached, so this value is useless. 165 173 * 174 * @static 166 175 * @access private 167 176 * @var bool … … 171 180 /** 172 181 * Constructor for WP_Theme. 182 * 183 * @global array $wp_theme_directories 173 184 * 174 185 * @param string $theme_dir Directory of the theme within the theme_root. … … 311 322 /** 312 323 * __isset() magic method for properties formerly returned by current_theme_info() 324 * 325 * @staticvar array $properties 326 * 327 * @return bool 313 328 */ 314 329 public function __isset( $offset ) { … … 323 338 /** 324 339 * __get() magic method for properties formerly returned by current_theme_info() 340 * 341 * @return mixed 325 342 */ 326 343 public function __get( $offset ) { … … 362 379 /** 363 380 * Method to implement ArrayAccess for keys formerly returned by get_themes() 381 * 382 * @param mixed $offset 383 * @param mixed $value 364 384 */ 365 385 public function offsetSet( $offset, $value ) {} … … 367 387 /** 368 388 * Method to implement ArrayAccess for keys formerly returned by get_themes() 389 * 390 * @param mixed $offset 369 391 */ 370 392 public function offsetUnset( $offset ) {} … … 372 394 /** 373 395 * Method to implement ArrayAccess for keys formerly returned by get_themes() 396 * 397 * @staticvar array $keys 398 * 399 * @param mixed $offset 400 * @return bool 374 401 */ 375 402 public function offsetExists( $offset ) { … … 392 419 * and care should be taken to use $theme->display('Name') to get a properly 393 420 * translated header. 421 * 422 * @param mixed $offset 423 * @return mixed 394 424 */ 395 425 public function offsetGet( $offset ) { … … 444 474 * @access public 445 475 * 446 * @return WP_Error| boolWP_Error if there are errors, or false.476 * @return WP_Error|false WP_Error if there are errors, or false. 447 477 */ 448 478 public function errors() { … … 471 501 * @access public 472 502 * 473 * @return WP_Theme| boolParent theme, or false if the current theme is not a child theme.503 * @return WP_Theme|false Parent theme, or false if the current theme is not a child theme. 474 504 */ 475 505 public function parent() { … … 482 512 * Cache entries keyed by the theme and the type of data. 483 513 * 484 * @ access private485 * @ since 3.4.0514 * @since 3.4.0 515 * @access private 486 516 * 487 517 * @param string $key Type of data to store (theme, screenshot, headers, page_templates) … … 498 528 * Cache entries are keyed by the theme and the type of data. 499 529 * 500 * @ access private501 * @ since 3.4.0530 * @since 3.4.0 531 * @access private 502 532 * 503 533 * @param string $key Type of data to retrieve (theme, screenshot, headers, page_templates) … … 511 541 * Clears the cache for the theme. 512 542 * 513 * @ access public514 * @ since 3.4.0543 * @since 3.4.0 544 * @access public 515 545 */ 516 546 public function cache_delete() { … … 533 563 * whether it is actually valid. 534 564 * 535 * @ access public536 * @ since 3.4.0565 * @since 3.4.0 566 * @access public 537 567 * 538 568 * @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags. 539 * @return string| boolString on success, false on failure.569 * @return string|false String on success, false on failure. 540 570 */ 541 571 public function get( $header ) { … … 567 597 * Gets a theme header, formatted and translated for display. 568 598 * 569 * @ access public570 * @ since 3.4.0599 * @since 3.4.0 600 * @access public 571 601 * 572 602 * @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags. 573 603 * @param bool $markup Optional. Whether to mark up the header. Defaults to true. 574 604 * @param bool $translate Optional. Whether to translate the header. Defaults to true. 575 * @return string| boolProcessed header, false on failure.605 * @return string|false Processed header, false on failure. 576 606 */ 577 607 public function display( $header, $markup = true, $translate = true ) { … … 596 626 * Sanitize a theme header. 597 627 * 628 * @since 3.4.0 629 * @access private 630 * 631 * @staticvar array $header_tags 632 * @staticvar array $header_tags_with_a 633 * 598 634 * @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags. 599 635 * @param string $value Value to sanitize. 636 * @return mixed 600 637 */ 601 638 private function sanitize_header( $header, $value ) { … … 648 685 * Mark up a theme header. 649 686 * 650 * @access private 651 * @since 3.4.0 687 * @since 3.4.0 688 * @access private 689 * 690 * @stativar string $comma 652 691 * 653 692 * @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags. … … 692 731 * Translate a theme header. 693 732 * 694 * @access private 695 * @since 3.4.0 733 * @since 3.4.0 734 * @access private 735 * 736 * @staticvar array $tags_list 696 737 * 697 738 * @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags. … … 882 923 * 883 924 * @param string $uri Type of URL to return, either 'relative' or an absolute URI. Defaults to absolute URI. 884 * @return mixedScreenshot file. False if the theme does not have a screenshot.925 * @return string|false Screenshot file. False if the theme does not have a screenshot. 885 926 */ 886 927 public function get_screenshot( $uri = 'uri' ) { … … 917 958 * @param bool $search_parent Optional. Whether to return parent files. Defaults to false. 918 959 * @return array Array of files, keyed by the path to the file relative to the theme's directory, with the values 919 * being absolute paths.960 * being absolute paths. 920 961 */ 921 962 public function get_files( $type = null, $depth = 0, $search_parent = false ) { … … 988 1029 * 989 1030 * @since 3.4.0 1031 * 990 1032 * @static 991 1033 * @access private … … 1105 1147 * 1106 1148 * @since 3.4.0 1149 * 1150 * @static 1107 1151 * @access public 1108 1152 * … … 1126 1170 * 1127 1171 * @since 3.4.0 1128 * @access public 1172 * 1173 * @static 1174 * @access public 1175 * 1176 * @staticvar array $allowed_themes 1129 1177 * 1130 1178 * @return array Array of stylesheet names. … … 1141 1189 * 1142 1190 * @since 3.4.0 1143 * @access public 1191 * 1192 * @static 1193 * @access public 1194 * 1195 * @staticvar array $allowed_themes 1144 1196 * 1145 1197 * @param int $blog_id Optional. Defaults to current blog. … … 1208 1260 * 1209 1261 * @since 3.4.0 1262 * 1263 * @static 1210 1264 * @access public 1211 1265 */ … … 1225 1279 * 1226 1280 * @since 3.4.0 1227 * @access private 1281 * 1282 * @static 1283 * @access private 1284 * 1285 * @return int 1228 1286 */ 1229 1287 private static function _name_sort( $a, $b ) { … … 1235 1293 * 1236 1294 * @since 3.4.0 1237 * @access private 1295 * 1296 * @static 1297 * @access private 1298 * 1299 * @return int 1238 1300 */ 1239 1301 private static function _name_sort_i18n( $a, $b ) { -
trunk/src/wp-includes/comment.php
r32500 r32547 455 455 * 456 456 * @param string|array $query Array or URL query string of parameters. 457 * @return array List of comments.457 * @return array|int List of comments, or number of comments when 'count' is passed as a query var. 458 458 */ 459 459 public function query( $query ) {
Note: See TracChangeset
for help on using the changeset viewer.