Ticket #7661: 7661.r8947.diff
| File 7661.r8947.diff, 10.7 KB (added by , 17 years ago) |
|---|
-
widgets.php
377 377 * @since 2.2.0 378 378 * @see wp_unregister_widget_control() 379 379 * 380 * @param int $id Widget ID 380 * @param int $id Widget ID. 381 381 */ 382 382 function unregister_widget_control($id) { 383 383 return wp_unregister_widget_control($id); … … 637 637 /* Default Widgets */ 638 638 639 639 /** 640 * {@internal Missing Short Description}}640 * Display pages widget. 641 641 * 642 * {@internal Missing Long Description}}643 *644 642 * @since 2.2.0 645 643 * 646 644 * @param array $args Widget arguments. … … 672 670 } 673 671 674 672 /** 675 * {@internal Missing Short Description}}673 * Display and process pages widget options form. 676 674 * 677 * {@internal Missing Long Description}}678 *679 675 * @since 2.2.0 680 676 */ 681 677 function wp_widget_pages_control() { … … 720 716 } 721 717 722 718 /** 723 * {@internal Missing Short Description}}719 * Display links widget. 724 720 * 725 * {@internal Missing Long Description}}726 *727 721 * @since 2.2.0 728 722 * 729 723 * @param array $args Widget arguments. … … 740 734 } 741 735 742 736 /** 743 * {@internal Missing Short Description}}737 * Display search widget. 744 738 * 745 * {@internal Missing Long Description}}746 *747 739 * @since 2.2.0 748 740 * 749 741 * @param array $args Widget arguments. … … 769 761 } 770 762 771 763 /** 772 * {@internal Missing Short Description}}764 * Display archives widget. 773 765 * 774 * {@internal Missing Long Description}}775 *776 766 * @since 2.2.0 777 767 * 778 768 * @param array $args Widget arguments. … … 803 793 } 804 794 805 795 /** 806 * {@internal Missing Short Description}}796 * Display and process archives widget options form. 807 797 * 808 * {@internal Missing Long Description}}809 *810 798 * @since 2.2.0 811 799 */ 812 800 function wp_widget_archives_control() { … … 835 823 } 836 824 837 825 /** 838 * {@internal Missing Short Description}}826 * Display meta widget. 839 827 * 840 * {@internal Missing Long Description}}828 * Displays log in/out, RSS feed links, etc. 841 829 * 842 830 * @since 2.2.0 843 831 * 844 * @param array $args Widget Arguments832 * @param array $args Widget arguments. 845 833 */ 846 834 function wp_widget_meta($args) { 847 835 extract($args); … … 863 851 } 864 852 865 853 /** 866 * {@internal Missing Short Description}}854 * Display and process meta widget options form. 867 855 * 868 * {@internal Missing Long Description}}869 *870 856 * @since 2.2.0 871 857 */ 872 858 function wp_widget_meta_control() { … … 886 872 } 887 873 888 874 /** 889 * {@internal Missing Short Description}}875 * Display calendar widget. 890 876 * 891 * {@internal Missing Long Description}}892 *893 877 * @since 2.2.0 894 878 * 895 879 * @param array $args Widget arguments. … … 908 892 } 909 893 910 894 /** 911 * {@internal Missing Short Description}}895 * Display and process calendar widget options form. 912 896 * 913 * {@internal Missing Long Description}}914 *915 897 * @since 2.2.0 916 898 */ 917 899 function wp_widget_calendar_control() { … … 965 947 } 966 948 967 949 /** 968 * {@internal Missing Short Description}}950 * Display and process text widget options form. 969 951 * 970 * {@internal Missing Long Description}}971 *972 952 * @since 2.2.0 973 953 * 974 954 * @param int $widget_args Widget number. … … 1036 1016 } 1037 1017 1038 1018 /** 1039 * {@internal Missing Short Description}}1019 * Register text widget on startup. 1040 1020 * 1041 * {@internal Missing Long Description}}1042 *1043 1021 * @since 2.2.0 1044 1022 */ 1045 1023 function wp_widget_text_register() { … … 1067 1045 } 1068 1046 1069 1047 /** 1070 * {@internal Missing Short Description}}1048 * Display categories widget. 1071 1049 * 1072 * {@internal Missing Long Description}}1050 * Allows multiple category widgets. 1073 1051 * 1074 1052 * @since 2.2.0 1075 1053 * 1076 * @param unknown_type $args1077 * @param unknown_type $number1054 * @param array $args Widget arguments. 1055 * @param int $number Widget number. 1078 1056 */ 1079 // See large comment section at end of this file1080 1057 function wp_widget_categories($args, $widget_args = 1) { 1081 1058 extract($args, EXTR_SKIP); 1082 1059 if ( is_numeric($widget_args) ) … … 1132 1109 } 1133 1110 1134 1111 /** 1135 * {@internal Missing Short Description}}1112 * Display and process categories widget options form. 1136 1113 * 1137 * {@internal Missing Long Description}}1138 *1139 1114 * @since 2.2.0 1140 1115 * 1141 * @param unknown_type $number1116 * @param int $widget_args Widget number. 1142 1117 */ 1143 1118 function wp_widget_categories_control( $widget_args ) { 1144 1119 global $wp_registered_widgets; … … 1227 1202 } 1228 1203 1229 1204 /** 1230 * {@internal Missing Short Description}}1205 * Register categories widget on startup. 1231 1206 * 1232 * {@internal Missing Long Description}}1233 *1234 1207 * @since 2.3.0 1235 1208 */ 1236 1209 function wp_widget_categories_register() { … … 1262 1235 } 1263 1236 1264 1237 /** 1265 * {@internal Missing Short Description}}1238 * Upgrade previous category widget to current version. 1266 1239 * 1267 * {@internal Missing Long Description}}1268 *1269 1240 * @since 2.3.0 1270 1241 * 1271 * @return unknown1242 * @return array 1272 1243 */ 1273 1244 function wp_widget_categories_upgrade() { 1274 1245 $options = get_option( 'widget_categories' ); … … 1298 1269 } 1299 1270 1300 1271 /** 1301 * {@internal Missing Short Description}}1272 * Display recent entries widget. 1302 1273 * 1303 * {@internal Missing Long Description}}1304 *1305 1274 * @since 2.2.0 1306 1275 * 1307 * @param unknown_type $args1308 * @return unknown1276 * @param array $args Widget arguments. 1277 * @return int Displayed cache. 1309 1278 */ 1310 1279 function wp_widget_recent_entries($args) { 1311 1280 if ( '%BEG_OF_TITLE%' != $args['before_title'] ) { … … 1346 1315 /** 1347 1316 * Remove recent entries widget items cache. 1348 1317 * 1349 * {@internal Missing Long Description}}1350 *1351 1318 * @since 2.2.0 1352 1319 */ 1353 1320 function wp_flush_widget_recent_entries() { … … 1359 1326 add_action('switch_theme', 'wp_flush_widget_recent_entries'); 1360 1327 1361 1328 /** 1362 * {@internal Missing Short Description}}1329 * Display and process recent entries widget options form. 1363 1330 * 1364 * {@internal Missing Long Description}}1365 *1366 1331 * @since 2.2.0 1367 1332 */ 1368 1333 function wp_widget_recent_entries_control() { … … 1392 1357 } 1393 1358 1394 1359 /** 1395 * {@internal Missing Short Description}}1360 * Display recent comments widget. 1396 1361 * 1397 * {@internal Missing Long Description}}1398 *1399 1362 * @since 2.2.0 1400 1363 * 1401 * @param unknown_type $args1364 * @param array $args Widget arguments. 1402 1365 */ 1403 1366 function wp_widget_recent_comments($args) { 1404 1367 global $wpdb, $comments, $comment; … … 1431 1394 /** 1432 1395 * Remove the cache for recent comments widget. 1433 1396 * 1434 * {@internal Missing Long Description}}1435 *1436 1397 * @since 2.2.0 1437 1398 */ 1438 1399 function wp_delete_recent_comments_cache() { … … 1442 1403 add_action( 'wp_set_comment_status', 'wp_delete_recent_comments_cache' ); 1443 1404 1444 1405 /** 1445 * {@internal Missing Short Description}}1406 * Display and process recent comments widget options form. 1446 1407 * 1447 * {@internal Missing Long Description}}1448 *1449 1408 * @since 2.2.0 1450 1409 */ 1451 1410 function wp_widget_recent_comments_control() { … … 1476 1435 /** 1477 1436 * Display the style for recent comments widget. 1478 1437 * 1479 * {@internal Missing Long Description}}1480 *1481 1438 * @since 2.2.0 1482 1439 */ 1483 1440 function wp_widget_recent_comments_style() { … … 1487 1444 } 1488 1445 1489 1446 /** 1490 * {@internal Missing Short Description}}1447 * Register recent comments with control and hook for 'wp_head' action. 1491 1448 * 1492 * {@internal Missing Long Description}}1493 *1494 1449 * @since 2.2.0 1495 1450 */ 1496 1451 function wp_widget_recent_comments_register() { … … 1503 1458 } 1504 1459 1505 1460 /** 1506 * {@internal Missing Short Description}}1461 * Display RSS widget. 1507 1462 * 1508 * {@internal Missing Long Description}}1463 * Allows for multiple widgets to be displayed. 1509 1464 * 1510 1465 * @since 2.2.0 1511 1466 * 1512 * @param unknown_type $args1513 * @param unknown_type $number1467 * @param array $args Widget arguments. 1468 * @param int $number Widget number. 1514 1469 */ 1515 // See large comment section at end of this file1516 1470 function wp_widget_rss($args, $widget_args = 1) { 1517 1471 extract($args, EXTR_SKIP); 1518 1472 if ( is_numeric($widget_args) ) … … 1564 1518 echo $after_widget; 1565 1519 } 1566 1520 1521 /** 1522 * Display the RSS entries in a list. 1523 * 1524 * @since 2.5.0 1525 * 1526 * @param string|array|object $rss RSS url. 1527 * @param array $args Widget arguments. 1528 */ 1567 1529 function wp_widget_rss_output( $rss, $args = array() ) { 1568 1530 if ( is_string( $rss ) ) { 1569 1531 require_once(ABSPATH . WPINC . '/rss.php'); … … 1648 1610 } 1649 1611 1650 1612 /** 1651 * wp_widget_rss_control() - {@internal Missing Short Description}}1613 * Display and process RSS widget control form. 1652 1614 * 1653 * {@internal Missing Long Description}}1654 *1655 1615 * @since 2.2.0 1656 1616 * 1657 * @param unknown_type $widget_args1617 * @param int $widget_args Widget number. 1658 1618 */ 1659 1619 function wp_widget_rss_control($widget_args) { 1660 1620 global $wp_registered_widgets; … … 1726 1686 * and are as follows: 'url', 'title', 'items', 'show_summary', 'show_author', 1727 1687 * 'show_date'. 1728 1688 * 1729 * @since unknown1689 * @since 2.5.0 1730 1690 * 1731 1691 * @param array|string $args Values for input fields. 1732 1692 * @param array $inputs Override default display options. … … 1813 1773 * feed items, error (if any), and whether to show summary, author, and date. 1814 1774 * All respectively in the order of the array elements. 1815 1775 * 1816 * @since unknown1776 * @since 2.5.0 1817 1777 * 1818 1778 * @param array $widget_rss RSS widget feed data. Expects unescaped data. 1819 1779 * @param bool $check_feed Optional, default is true. Whether to check feed for errors. … … 1848 1808 } 1849 1809 1850 1810 /** 1851 * Register RSS widget to allow multiple RSS widgets .1811 * Register RSS widget to allow multiple RSS widgets on startup. 1852 1812 * 1853 1813 * @since 2.2.0 1854 1814 */ … … 1923 1883 } 1924 1884 1925 1885 /** 1926 * Register all of the default WordPress widgets .1886 * Register all of the default WordPress widgets on startup. 1927 1887 * 1928 1888 * Calls 'widgets_init' action after all of the WordPress widgets have been 1929 1889 * registered. … … 1974 1934 1975 1935 add_action('init', 'wp_widgets_init', 1); 1976 1936 1977 /* Pattern for multi-widget (allows multiple instances such as the text widget). 1937 /* 1938 * Pattern for multi-widget (allows multiple instances such as the text widget). 1939 * 1940 * Make sure to close the comments after copying. 1978 1941 1979 // Displays widget on blag 1980 // $widget_args: number 1981 // number: which of the several widgets of this type do we mean 1942 /** 1943 * Displays widget. 1944 * 1945 * Supports multiple widgets. 1946 * 1947 * @param array $args Widget arguments. 1948 * @param array|int $widget_args Widget number. Which of the several widgets of this type do we mean. 1949 * / 1982 1950 function widget_many( $args, $widget_args = 1 ) { 1983 1951 extract( $args, EXTR_SKIP ); 1984 1952 if ( is_numeric($widget_args) ) … … 1998 1966 echo $after_widget; 1999 1967 } 2000 1968 2001 // Displays form for a particular instance of the widget. Also updates the data after a POST submit 2002 // $widget_args: number 2003 // number: which of the several widgets of this type do we mean 1969 /** 1970 * Displays form for a particular instance of the widget. 1971 * 1972 * Also updates the data after a POST submit. 1973 * 1974 * @param array|int $widget_args Widget number. Which of the several widgets of this type do we mean. 1975 * / 2004 1976 function widget_many_control( $widget_args = 1 ) { 2005 1977 global $wp_registered_widgets; 2006 1978 static $updated = false; // Whether or not we have already updated the data after a POST submit … … 2068 2040 <?php 2069 2041 } 2070 2042 2071 // Registers each instance of our widget on startup 2043 /** 2044 * Registers each instance of our widget on startup. 2045 * / 2072 2046 function widget_many_register() { 2073 2047 if ( !$options = get_option('widget_many') ) 2074 2048 $options = array();