IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 118 | 118 | * |
| 119 | 119 | * @since 2.5.1 |
| 120 | 120 | * |
| 121 | | * @todo Properly document optional arguments as such. |
| 122 | | * |
| 123 | 121 | * @see wp_terms_checklist() |
| 124 | 122 | * |
| 125 | | * @param int $post_id Mark categories associated with this post as checked. $selected_cats must not be an array. |
| 126 | | * @param int $descendants_and_self ID of the category to output along with its descendents. |
| 127 | | * @param bool|array $selected_cats List of categories to mark as checked. |
| 128 | | * @param bool|array $popular_cats Override the list of categories that receive the "popular-category" class. |
| 129 | | * @param object $walker Walker object to use to build the output. |
| 130 | | * @param bool $checked_ontop Move checked items out of the hierarchy and to the top of the list. |
| | 123 | * @param int $post_id Optional. Mark categories associated with this post as checked. |
| | 124 | * $selected_cats must not be an array. Default 0. |
| | 125 | * @param int $descendants_and_self Optional. ID of the category to output along with its descendents. Default 0. |
| | 126 | * @param bool|array $selected_cats Optional. List of categories to mark as checked. Default false. |
| | 127 | * @param bool|array $popular_cats Optional. Override the list of categories that receive the "popular-category" |
| | 128 | * class. Default false. |
| | 129 | * @param object $walker Optional. Walker object to use to build the output. Default null. |
| | 130 | * @param bool $checked_ontop Optional. Move checked items out of the hierarchy and to the top of the list. |
| | 131 | * Default true. |
| 131 | 132 | */ |
| 132 | 133 | function wp_category_checklist( $post_id = 0, $descendants_and_self = 0, $selected_cats = false, $popular_cats = false, $walker = null, $checked_ontop = true ) { |
| 133 | 134 | wp_terms_checklist( $post_id, array( |
| … |
… |
|
| 147 | 148 | * |
| 148 | 149 | * @since 3.0.0 |
| 149 | 150 | * |
| 150 | | * @todo Properly document optional default arguments. |
| 151 | | * |
| 152 | | * @param int $post_id Post ID. |
| 153 | | * @param array $args Arguments to form the terms checklist. |
| | 151 | * @param int $post_id Optional. Post ID. Default 0. |
| | 152 | * @param array $args Optional. Arguments to form the terms checklist. Default array(). |
| 154 | 153 | */ |
| 155 | 154 | function wp_terms_checklist( $post_id = 0, $args = array() ) { |
| 156 | 155 | $defaults = array( |
| … |
… |
|
| 328 | 327 | } |
| 329 | 328 | } |
| 330 | 329 | |
| 331 | | // adds hidden fields with the data for use in the inline editor for posts and pages |
| 332 | 330 | /** |
| 333 | | * {@internal Missing Short Description}} |
| | 331 | * Adds hidden fields with the data for use in the inline editor for posts and pages. |
| 334 | 332 | * |
| 335 | 333 | * @since 2.7.0 |
| 336 | 334 | * |
| … |
… |
|
| 1316 | 1314 | * |
| 1317 | 1315 | * @since 3.0.0 |
| 1318 | 1316 | * |
| 1319 | | * @todo Properly document optional arguments as such. |
| 1320 | | * |
| 1321 | 1317 | * @global array $wp_settings_errors Storage array of errors registered during this pageload |
| 1322 | 1318 | * |
| 1323 | 1319 | * @param string $setting Slug title of the setting to which this error applies |
| 1324 | 1320 | * @param string $code Slug-name to identify the error. Used as part of 'id' attribute in HTML output. |
| 1325 | 1321 | * @param string $message The formatted message text to display to the user (will be shown inside styled |
| 1326 | 1322 | * `<div>` and `<p>` tags). |
| 1327 | | * @param string $type The type of message it is, controls HTML class. Use 'error' or 'updated'. |
| | 1323 | * @param string $type Optional. Message type, controls HTML class. Use 'error' or 'updated'. Default 'error'. |
| 1328 | 1324 | */ |
| 1329 | 1325 | function add_settings_error( $setting, $code, $message, $type = 'error' ) { |
| 1330 | 1326 | global $wp_settings_errors; |
| … |
… |
|
| 1516 | 1512 | * should only be used when {@link the_search_query()} cannot. |
| 1517 | 1513 | * |
| 1518 | 1514 | * @since 2.7.0 |
| 1519 | | * |
| 1520 | 1515 | */ |
| 1521 | 1516 | function _admin_search_query() { |
| 1522 | 1517 | echo isset($_REQUEST['s']) ? esc_attr( wp_unslash( $_REQUEST['s'] ) ) : ''; |
| … |
… |
|
| 1528 | 1523 | * @since 2.7.0 |
| 1529 | 1524 | * @param string $title Title of the Iframe page. |
| 1530 | 1525 | * @param bool $limit_styles Limit styles to colour-related styles only (unless others are enqueued). |
| 1531 | | * |
| 1532 | 1526 | */ |
| 1533 | 1527 | function iframe_header( $title = '', $limit_styles = false ) { |
| 1534 | 1528 | show_admin_bar( false ); |
| … |
… |
|
| 1603 | 1597 | * Generic Iframe footer for use with Thickbox |
| 1604 | 1598 | * |
| 1605 | 1599 | * @since 2.7.0 |
| 1606 | | * |
| 1607 | 1600 | */ |
| 1608 | 1601 | function iframe_footer() { |
| 1609 | 1602 | /* |
| … |
… |
|
| 1813 | 1806 | * These attributes will be output as attribute="value", such as tabindex="1". |
| 1814 | 1807 | * Defaults to no other attributes. Other attributes can also be provided as a |
| 1815 | 1808 | * string such as 'tabindex="1"', though the array format is typically cleaner. |
| | 1809 | * @return string Submit button HTML. |
| 1816 | 1810 | */ |
| 1817 | 1811 | function get_submit_button( $text = null, $type = 'primary large', $name = 'submit', $wrap = true, $other_attributes = null ) { |
| 1818 | 1812 | if ( ! is_array( $type ) ) |
| … |
… |
|
| 1900 | 1894 | * |
| 1901 | 1895 | * Individual pointers (e.g. wp390_widgets) can be disabled using the following: |
| 1902 | 1896 | * remove_action( 'admin_print_footer_scripts', array( 'WP_Internal_Pointers', 'pointer_wp390_widgets' ) ); |
| | 1897 | * |
| | 1898 | * @param string $hook_suffix The current admin page. |
| 1903 | 1899 | */ |
| 1904 | 1900 | public static function enqueue_scripts( $hook_suffix ) { |
| 1905 | 1901 | /* |
| … |
… |
|
| 2067 | 2063 | * Prevents new users from seeing existing 'new feature' pointers. |
| 2068 | 2064 | * |
| 2069 | 2065 | * @since 3.3.0 |
| | 2066 | * |
| | 2067 | * @param int $user_id User ID. |
| 2070 | 2068 | */ |
| 2071 | 2069 | public static function dismiss_pointers_for_new_users( $user_id ) { |
| 2072 | 2070 | add_user_meta( $user_id, 'dismissed_wp_pointers', 'wp360_locks,wp390_widgets' ); |