Changeset 41162 for trunk/src/wp-includes/class-wp-theme.php
- Timestamp:
- 07/27/2017 12:40:27 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-theme.php (modified) (51 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme.php
r40301 r41162 13 13 * 14 14 * @since 4.4.0 15 * @access public16 15 * @var bool 17 16 * … … 24 23 * 25 24 * @static 26 * @access private27 25 * @var array 28 26 */ … … 45 43 * 46 44 * @static 47 * @access private48 45 * @var array 49 46 */ … … 65 62 * 66 63 * @static 67 * @access private68 64 * @var array 69 65 */ … … 76 72 * Absolute path to the theme root, usually wp-content/themes 77 73 * 78 * @access private79 74 * @var string 80 75 */ … … 84 79 * Header data from the theme's style.css file. 85 80 * 86 * @access private87 81 * @var array 88 82 */ … … 92 86 * Header data from the theme's style.css file after being sanitized. 93 87 * 94 * @access private95 88 * @var array 96 89 */ … … 102 95 * Cached due to sorting functions running over the translated name. 103 96 * 104 * @access private105 97 * @var string 106 98 */ … … 110 102 * Errors encountered when initializing the theme. 111 103 * 112 * @access private113 104 * @var WP_Error 114 105 */ … … 121 112 * Otherwise, 'stylesheet' is the same as 'template'. 122 113 * 123 * @access private124 114 * @var string 125 115 */ … … 132 122 * Otherwise, 'template' is the same as 'stylesheet'. 133 123 * 134 * @access private135 124 * @var string 136 125 */ … … 140 129 * A reference to the parent theme, in the case of a child theme. 141 130 * 142 * @access private143 131 * @var WP_Theme 144 132 */ … … 148 136 * URL to the theme root, usually an absolute URL to wp-content/themes 149 137 * 150 * @access private151 138 * @var string 152 139 */ … … 156 143 * Flag for whether the theme's textdomain is loaded. 157 144 * 158 * @access private159 145 * @var bool 160 146 */ … … 164 150 * Stores an md5 hash of the theme root, to function as the cache key. 165 151 * 166 * @access private167 152 * @var string 168 153 */ … … 175 160 * 176 161 * @static 177 * @access private178 162 * @var bool 179 163 */ … … 186 170 * 187 171 * @static 188 * @access private189 172 * @var bool 190 173 */ … … 512 495 * 513 496 * @since 3.4.0 514 * @access public515 497 * 516 498 * @return WP_Error|false WP_Error if there are errors, or false. … … 527 509 * 528 510 * @since 3.4.0 529 * @access public530 511 * 531 512 * @return bool Whether the theme exists. … … 539 520 * 540 521 * @since 3.4.0 541 * @access public542 522 * 543 523 * @return WP_Theme|false Parent theme, or false if the current theme is not a child theme. … … 553 533 * 554 534 * @since 3.4.0 555 * @access private556 535 * 557 536 * @param string $key Type of data to store (theme, screenshot, headers, post_templates) … … 569 548 * 570 549 * @since 3.4.0 571 * @access private572 550 * 573 551 * @param string $key Type of data to retrieve (theme, screenshot, headers, post_templates) … … 582 560 * 583 561 * @since 3.4.0 584 * @access public585 562 */ 586 563 public function cache_delete() { … … 604 581 * 605 582 * @since 3.4.0 606 * @access public607 583 * 608 584 * @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags. … … 638 614 * 639 615 * @since 3.4.0 640 * @access public641 616 * 642 617 * @param string $header Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags. … … 667 642 * 668 643 * @since 3.4.0 669 * @access private670 644 * 671 645 * @staticvar array $header_tags … … 726 700 * 727 701 * @since 3.4.0 728 * @access private729 702 * 730 703 * @staticvar string $comma … … 773 746 * 774 747 * @since 3.4.0 775 * @access private776 748 * 777 749 * @staticvar array $tags_list … … 837 809 * 838 810 * @since 3.4.0 839 * @access public840 811 * 841 812 * @return string Stylesheet … … 852 823 * 853 824 * @since 3.4.0 854 * @access public855 825 * 856 826 * @return string Template … … 867 837 * 868 838 * @since 3.4.0 869 * @access public870 839 * 871 840 * @return string Absolute path of the stylesheet directory. … … 885 854 * 886 855 * @since 3.4.0 887 * @access public888 856 * 889 857 * @return string Absolute path of the template directory. … … 905 873 * 906 874 * @since 3.4.0 907 * @access public908 875 * 909 876 * @return string URL to the stylesheet directory. … … 920 887 * 921 888 * @since 3.4.0 922 * @access public923 889 * 924 890 * @return string URL to the template directory. … … 939 905 * 940 906 * @since 3.4.0 941 * @access public942 907 * 943 908 * @return string Theme root. … … 955 920 * 956 921 * @since 3.4.0 957 * @access public958 922 * 959 923 * @return string Theme root URI. … … 974 938 * 975 939 * @since 3.4.0 976 * @access public977 940 * 978 941 * @param string $uri Type of URL to return, either 'relative' or an absolute URI. Defaults to absolute URI. … … 1006 969 * 1007 970 * @since 3.4.0 1008 * @access public1009 971 * 1010 972 * @param mixed $type Optional. Array of extensions to return. Defaults to all files (null). … … 1027 989 * 1028 990 * @since 4.7.0 1029 * @access public1030 991 * 1031 992 * @return array Array of page templates, keyed by filename and post type, … … 1084 1045 * @since 3.4.0 1085 1046 * @since 4.7.0 Added the `$post_type` parameter. 1086 * @access public1087 1047 * 1088 1048 * @param WP_Post|null $post Optional. The post being edited, provided for context. … … 1127 1087 * 1128 1088 * @static 1129 * @access private1130 1089 * 1131 1090 * @param string $path Absolute path to search. … … 1189 1148 * 1190 1149 * @since 3.4.0 1191 * @access public1192 1150 * 1193 1151 * @return bool True if the textdomain was successfully loaded or has already been loaded. … … 1223 1181 * 1224 1182 * @since 3.4.0 1225 * @access public1226 1183 * 1227 1184 * @param string $check Optional. Whether to check only the 'network'-wide settings, the 'site' … … 1274 1231 * 1275 1232 * @static 1276 * @access public1277 1233 * 1278 1234 * @param int $blog_id Optional. ID of the site. Defaults to the current site. … … 1301 1257 * 1302 1258 * @static 1303 * @access public1304 1259 * 1305 1260 * @staticvar array $allowed_themes … … 1331 1286 * 1332 1287 * @static 1333 * @access public1334 1288 * 1335 1289 * @staticvar array $allowed_themes … … 1410 1364 * 1411 1365 * @since 4.6.0 1412 * @access public1413 1366 * @static 1414 1367 * … … 1436 1389 * 1437 1390 * @since 4.6.0 1438 * @access public1439 1391 * @static 1440 1392 * … … 1466 1418 * 1467 1419 * @static 1468 * @access public1469 1420 * 1470 1421 * @param array $themes Array of themes to sort, passed by reference. … … 1487 1438 * 1488 1439 * @static 1489 * @access private1490 1440 * 1491 1441 * @param string $a First name. … … 1504 1454 * 1505 1455 * @static 1506 * @access private1507 1456 * 1508 1457 * @param string $a First name.
Note: See TracChangeset
for help on using the changeset viewer.