Changeset 24982
- Timestamp:
- 08/05/2013 10:03:49 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/widgets.php
r24978 r24982 834 834 * Display dynamic sidebar. 835 835 * 836 * By default it displays the default sidebar or 'sidebar-1'. The 'sidebar-1' is 837 * not named by the theme, the actual name is '1', but 'sidebar-' is added to 838 * the registered sidebars for the name. If you named your sidebar 'after-post', 839 * then the parameter $index will still be 'after-post', but the lookup will be 840 * for 'sidebar-after-post'. 841 * 842 * It is confusing for the $index parameter, but just know that it should just 843 * work. When you register the sidebar in the theme, you will use the same name 844 * for this function or "Pay no heed to the man behind the curtain." Just accept 845 * it as an oddity of WordPress sidebar register and display. 846 * 847 * @since 2.2.0 848 * 849 * @param int|string $index Optional, default is 1. Name or ID of dynamic sidebar. 836 * By default this displays the default sidebar or 'sidebar-1'. If your theme specifies the 'id' or 837 * 'name' parameter for its registered sidebars you can pass an id or name as the $index parameter. 838 * Otherwise, you can pass in a numerical index to display the sidebar at that index. 839 * 840 * @since 2.2.0 841 * 842 * @param int|string $index Optional, default is 1. Index, name or ID of dynamic sidebar. 850 843 * @return bool True, if widget sidebar was found and called. False if not found or not called. 851 844 */
Note: See TracChangeset
for help on using the changeset viewer.