Changeset 52035
- Timestamp:
- 11/08/2021 10:47:55 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/deprecated.php
r51827 r52035 164 164 * @see register_setting() 165 165 * 166 * @param string $option_groupA settings group name. Should correspond to an allowed option key name.167 * Default allowed option key names include 'general', 'discussion', 'media',168 * 'reading', 'writing', and 'options'.169 * @param string $option_nameThe name of an option to sanitize and save.170 * @param callable $sanitize_callback A callback function that sanitizes the option's value.166 * @param string $option_group A settings group name. Should correspond to an allowed option key name. 167 * Default allowed option key names include 'general', 'discussion', 'media', 168 * 'reading', 'writing', and 'options'. 169 * @param string $option_name The name of an option to sanitize and save. 170 * @param callable $sanitize_callback Optional. A callback function that sanitizes the option's value. 171 171 */ 172 172 function add_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) { … … 182 182 * @see unregister_setting() 183 183 * 184 * @param string $option_group185 * @param string $option_name186 * @param callable $sanitize_callback 184 * @param string $option_group The settings group name used during registration. 185 * @param string $option_name The name of the option to unregister. 186 * @param callable $sanitize_callback Optional. Deprecated. 187 187 */ 188 188 function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) { … … 1427 1427 * @param string $capability The capability required for this menu to be displayed to the user. 1428 1428 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). 1429 * @param callable $function The function to be called to output the content for this page.1430 * @param string $icon_url The urlto the icon to be used for this menu.1429 * @param callable $function Optional. The function to be called to output the content for this page. 1430 * @param string $icon_url Optional. The URL to the icon to be used for this menu. 1431 1431 * @return string The resulting page's hook_suffix. 1432 1432 */ … … 1460 1460 * @param string $capability The capability required for this menu to be displayed to the user. 1461 1461 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). 1462 * @param callable $function The function to be called to output the content for this page.1463 * @param string $icon_url The urlto the icon to be used for this menu.1462 * @param callable $function Optional. The function to be called to output the content for this page. 1463 * @param string $icon_url Optional. The URL to the icon to be used for this menu. 1464 1464 * @return string The resulting page's hook_suffix. 1465 1465 */ -
trunk/src/wp-admin/includes/plugin.php
r51955 r52035 1300 1300 * include lowercase alphanumeric, dashes, and underscores characters to be compatible 1301 1301 * with sanitize_key(). 1302 * @param callable $function The function to be called to output the content for this page.1303 * @param string $icon_url The URL to the icon to be used for this menu.1302 * @param callable $function Optional. The function to be called to output the content for this page. 1303 * @param string $icon_url Optional. The URL to the icon to be used for this menu. 1304 1304 * * Pass a base64-encoded SVG using a data URI, which will be colored to match 1305 1305 * the color scheme. This should begin with 'data:image/svg+xml;base64,'. … … 1307 1307 * e.g. 'dashicons-chart-pie'. 1308 1308 * * Pass 'none' to leave div.wp-menu-image empty so an icon can be added via CSS. 1309 * @param int $position The position in the menu order this item should appear.1309 * @param int $position Optional. The position in the menu order this item should appear. 1310 1310 * @return string The resulting page's hook_suffix. 1311 1311 */ … … 1378 1378 * and only include lowercase alphanumeric, dashes, and underscores characters 1379 1379 * to be compatible with sanitize_key(). 1380 * @param callable $function The function to be called to output the content for this page.1381 * @param int $position The position in the menu order this item should appear.1380 * @param callable $function Optional. The function to be called to output the content for this page. 1381 * @param int $position Optional. The position in the menu order this item should appear. 1382 1382 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1383 1383 */ … … 1490 1490 * @param string $capability The capability required for this menu to be displayed to the user. 1491 1491 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). 1492 * @param callable $function The function to be called to output the content for this page.1493 * @param int $position The position in the menu order this item should appear.1492 * @param callable $function Optional. The function to be called to output the content for this page. 1493 * @param int $position Optional. The position in the menu order this item should appear. 1494 1494 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1495 1495 */ … … 1514 1514 * @param string $capability The capability required for this menu to be displayed to the user. 1515 1515 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). 1516 * @param callable $function The function to be called to output the content for this page.1517 * @param int $position The position in the menu order this item should appear.1516 * @param callable $function Optional. The function to be called to output the content for this page. 1517 * @param int $position Optional. The position in the menu order this item should appear. 1518 1518 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1519 1519 */ … … 1538 1538 * @param string $capability The capability required for this menu to be displayed to the user. 1539 1539 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). 1540 * @param callable $function The function to be called to output the content for this page.1541 * @param int $position The position in the menu order this item should appear.1540 * @param callable $function Optional. The function to be called to output the content for this page. 1541 * @param int $position Optional. The position in the menu order this item should appear. 1542 1542 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1543 1543 */ … … 1562 1562 * @param string $capability The capability required for this menu to be displayed to the user. 1563 1563 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). 1564 * @param callable $function The function to be called to output the content for this page.1565 * @param int $position The position in the menu order this item should appear.1564 * @param callable $function Optional. The function to be called to output the content for this page. 1565 * @param int $position Optional. The position in the menu order this item should appear. 1566 1566 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1567 1567 */ … … 1586 1586 * @param string $capability The capability required for this menu to be displayed to the user. 1587 1587 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). 1588 * @param callable $function The function to be called to output the content for this page.1589 * @param int $position The position in the menu order this item should appear.1588 * @param callable $function Optional. The function to be called to output the content for this page. 1589 * @param int $position Optional. The position in the menu order this item should appear. 1590 1590 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1591 1591 */ … … 1615 1615 * @param string $capability The capability required for this menu to be displayed to the user. 1616 1616 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). 1617 * @param callable $function The function to be called to output the content for this page.1618 * @param int $position The position in the menu order this item should appear.1617 * @param callable $function Optional. The function to be called to output the content for this page. 1618 * @param int $position Optional. The position in the menu order this item should appear. 1619 1619 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1620 1620 */ … … 1639 1639 * @param string $capability The capability required for this menu to be displayed to the user. 1640 1640 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). 1641 * @param callable $function The function to be called to output the content for this page.1642 * @param int $position The position in the menu order this item should appear.1641 * @param callable $function Optional. The function to be called to output the content for this page. 1642 * @param int $position Optional. The position in the menu order this item should appear. 1643 1643 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1644 1644 */ … … 1663 1663 * @param string $capability The capability required for this menu to be displayed to the user. 1664 1664 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). 1665 * @param callable $function The function to be called to output the content for this page.1666 * @param int $position The position in the menu order this item should appear.1665 * @param callable $function Optional. The function to be called to output the content for this page. 1666 * @param int $position Optional. The position in the menu order this item should appear. 1667 1667 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1668 1668 */ … … 1687 1687 * @param string $capability The capability required for this menu to be displayed to the user. 1688 1688 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). 1689 * @param callable $function The function to be called to output the content for this page.1690 * @param int $position The position in the menu order this item should appear.1689 * @param callable $function Optional. The function to be called to output the content for this page. 1690 * @param int $position Optional. The position in the menu order this item should appear. 1691 1691 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1692 1692 */ … … 1711 1711 * @param string $capability The capability required for this menu to be displayed to the user. 1712 1712 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). 1713 * @param callable $function The function to be called to output the content for this page.1714 * @param int $position The position in the menu order this item should appear.1713 * @param callable $function Optional. The function to be called to output the content for this page. 1714 * @param int $position Optional. The position in the menu order this item should appear. 1715 1715 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1716 1716 */ … … 1735 1735 * @param string $capability The capability required for this menu to be displayed to the user. 1736 1736 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu). 1737 * @param callable $function The function to be called to output the content for this page.1738 * @param int $position The position in the menu order this item should appear.1737 * @param callable $function Optional. The function to be called to output the content for this page. 1738 * @param int $position Optional. The position in the menu order this item should appear. 1739 1739 * @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required. 1740 1740 */ -
trunk/src/wp-includes/formatting.php
r51984 r52035 5030 5030 * @since 2.3.0 5031 5031 * 5032 * @param array$matches Populated by matches to preg_replace.5032 * @param string[] $matches Populated by matches to preg_replace. 5033 5033 * @return string The text returned after esc_html if needed. 5034 5034 */ -
trunk/src/wp-includes/option.php
r51832 r52035 2384 2384 * @global array $wp_registered_settings 2385 2385 * 2386 * @param string 2387 * @param string 2388 * @param callable |string $deprecatedDeprecated.2386 * @param string $option_group The settings group name used during registration. 2387 * @param string $option_name The name of the option to unregister. 2388 * @param callable $deprecated Optional. Deprecated. 2389 2389 */ 2390 2390 function unregister_setting( $option_group, $option_name, $deprecated = '' ) { -
trunk/tests/phpunit/includes/testcase-xmlrpc.php
r52009 r52035 5 5 6 6 abstract class WP_XMLRPC_UnitTestCase extends WP_UnitTestCase { 7 /** 8 * @var wp_xmlrpc_server 9 */ 7 10 protected $myxmlrpcserver; 8 11
Note: See TracChangeset
for help on using the changeset viewer.