Changeset 59702
- Timestamp:
- 01/24/2025 09:18:05 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets.php
r59600 r59702 4 4 * 5 5 * This API is used for creating dynamic sidebar without hardcoding functionality into 6 * themes 6 * themes. 7 7 * 8 8 * Includes both internal WordPress routines and theme-use routines. … … 104 104 105 105 /** 106 * Register a widget106 * Registers a widget. 107 107 * 108 108 * Registers a WP_Widget widget … … 227 227 * 228 228 * If theme support for 'widgets' has not yet been added when this function is 229 * called, it will be automatically enabled through the use of add_theme_support() 229 * called, it will be automatically enabled through the use of add_theme_support(). 230 230 * 231 231 * @since 2.2.0 … … 362 362 363 363 /** 364 * Register an instance of a widget.364 * Registers an instance of a widget. 365 365 * 366 366 * The default widget option is 'classname' that can be overridden. … … 436 436 437 437 /** 438 * Retrieve description for widget.438 * Retrieves description for widget. 439 439 * 440 440 * When registering widgets, the options can also include 'description' that … … 462 462 463 463 /** 464 * Retrieve description for a sidebar.464 * Retrieves description for a sidebar. 465 465 * 466 466 * When registering sidebars a 'description' parameter can be included that … … 670 670 671 671 /** 672 * Remove control callback for widget.672 * Removes control callback for widget. 673 673 * 674 674 * @since 2.2.0 … … 681 681 682 682 /** 683 * Display dynamic sidebar.683 * Displays dynamic sidebar. 684 684 * 685 685 * By default this displays the default sidebar or 'sidebar-1'. If your theme specifies the 'id' or … … 884 884 * Determines whether a given widget is displayed on the front end. 885 885 * 886 * Either $callback or $id_base can be used 887 * $id_base is the first argument when extending WP_Widget class 886 * Either $callback or $id_base can be used. 887 * $id_base is the first argument when extending WP_Widget class. 888 888 * Without the optional $widget_id parameter, returns the ID of the first sidebar 889 889 * in which the first instance of the widget with the given callback or $id_base is found. … … 1003 1003 1004 1004 /** 1005 * Retrieve full list of sidebars and their widget instance IDs.1005 * Retrieves the full list of sidebars and their widget instance IDs. 1006 1006 * 1007 1007 * Will upgrade sidebar widget list, if needed. Will also save updated list, if … … 1082 1082 1083 1083 /** 1084 * Set the sidebar widget option to update sidebars.1084 * Sets the sidebar widget option to update sidebars. 1085 1085 * 1086 1086 * @since 2.2.0 … … 1104 1104 1105 1105 /** 1106 * Retrieve default registered sidebars list.1106 * Retrieves default registered sidebars list. 1107 1107 * 1108 1108 * @since 2.2.0 … … 1195 1195 1196 1196 /** 1197 * Output an arbitrary widget as a template tag.1197 * Outputs an arbitrary widget as a template tag. 1198 1198 * 1199 1199 * @since 2.8.0 … … 1283 1283 1284 1284 /** 1285 * Handle sidebars config after theme change1285 * Handles sidebars config after theme change. 1286 1286 * 1287 1287 * @access private … … 1576 1576 1577 1577 /** 1578 * Display the RSS entries in a list.1578 * Displays the RSS entries in a list. 1579 1579 * 1580 1580 * @since 2.5.0 … … 1683 1683 1684 1684 /** 1685 * Display RSS widget options form.1685 * Displays RSS widget options form. 1686 1686 * 1687 1687 * The options for what fields are displayed for the RSS form are all booleans … … 1764 1764 1765 1765 /** 1766 * Process RSS feed widget data and optionally retrieve feed items.1766 * Processes RSS feed widget data and optionally retrieve feed items. 1767 1767 * 1768 1768 * The feed widget can not have more than 20 items or it will reset back to the … … 1884 1884 1885 1885 /** 1886 * Whether or not to use the block editor to manage widgets. Defaults to true1887 * unless a theme has removed support for widgets-block-editor or a plugin has1888 * filtered the return value of this function.1886 * Determines whether or not to use the block editor to manage widgets. 1887 * Defaults to true unless a theme has removed support for widgets-block-editor 1888 * or a plugin has filtered the return value of this function. 1889 1889 * 1890 1890 * @since 5.8.0
Note: See TracChangeset
for help on using the changeset viewer.