IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
328 | 328 | } |
329 | 329 | } |
330 | 330 | |
331 | | // adds hidden fields with the data for use in the inline editor for posts and pages |
332 | 331 | /** |
333 | | * {@internal Missing Short Description}} |
| 332 | * Adds hidden fields with the data for use in the inline editor for posts and pages. |
334 | 333 | * |
335 | 334 | * @since 2.7.0 |
336 | 335 | * |
… |
… |
|
411 | 410 | * @param string $mode |
412 | 411 | * @param bool $table_row |
413 | 412 | */ |
414 | | function wp_comment_reply($position = '1', $checkbox = false, $mode = 'single', $table_row = true) { |
| 413 | function wp_comment_reply($position = 1, $checkbox = false, $mode = 'single', $table_row = true) { |
415 | 414 | global $wp_list_table; |
416 | 415 | /** |
417 | 416 | * Filter the in-line comment reply-to form output in the Comments |
… |
… |
|
582 | 581 | static $update_nonce = false; |
583 | 582 | |
584 | 583 | if ( is_protected_meta( $entry['meta_key'], 'post' ) ) |
585 | | return; |
| 584 | return ''; |
586 | 585 | |
587 | 586 | if ( !$update_nonce ) |
588 | 587 | $update_nonce = wp_create_nonce( 'add-meta' ); |
… |
… |
|
597 | 596 | } else { |
598 | 597 | // This is a serialized array/object so we should NOT display it. |
599 | 598 | --$count; |
600 | | return; |
| 599 | return ''; |
601 | 600 | } |
602 | 601 | } |
603 | 602 | |
… |
… |
|
845 | 844 | * |
846 | 845 | * @param string $selected slug for the role that should be already selected |
847 | 846 | */ |
848 | | function wp_dropdown_roles( $selected = false ) { |
| 847 | function wp_dropdown_roles( $selected = '' ) { |
849 | 848 | $p = ''; |
850 | 849 | $r = ''; |
851 | 850 | |
… |
… |
|
853 | 852 | |
854 | 853 | foreach ( $editable_roles as $role => $details ) { |
855 | 854 | $name = translate_user_role($details['name'] ); |
856 | | if ( $selected == $role ) // preselect specified role |
| 855 | if ( $selected === $role ) // preselect specified role |
857 | 856 | $p = "\n\t<option selected='selected' value='" . esc_attr($role) . "'>$name</option>"; |
858 | 857 | else |
859 | 858 | $r .= "\n\t<option value='" . esc_attr($role) . "'>$name</option>"; |
… |
… |
|
1527 | 1526 | * |
1528 | 1527 | * @since 2.7.0 |
1529 | 1528 | * @param string $title Title of the Iframe page. |
1530 | | * @param bool $limit_styles Limit styles to colour-related styles only (unless others are enqueued). |
1531 | 1529 | * |
1532 | 1530 | */ |
1533 | | function iframe_header( $title = '', $limit_styles = false ) { |
| 1531 | function iframe_header( $title = '' ) { |
1534 | 1532 | show_admin_bar( false ); |
1535 | | global $hook_suffix, $current_user, $admin_body_class, $wp_locale; |
| 1533 | global $hook_suffix, $admin_body_class, $wp_locale; |
1536 | 1534 | $admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix); |
1537 | 1535 | |
1538 | 1536 | $current_screen = get_current_screen(); |
… |
… |
|
1813 | 1811 | * These attributes will be output as attribute="value", such as tabindex="1". |
1814 | 1812 | * Defaults to no other attributes. Other attributes can also be provided as a |
1815 | 1813 | * string such as 'tabindex="1"', though the array format is typically cleaner. |
| 1814 | * |
| 1815 | * @return string Submit button HTML. |
1816 | 1816 | */ |
1817 | | function get_submit_button( $text = null, $type = 'primary large', $name = 'submit', $wrap = true, $other_attributes = null ) { |
| 1817 | function get_submit_button( $text = '', $type = 'primary large', $name = 'submit', $wrap = true, $other_attributes = array() ) { |
1818 | 1818 | if ( ! is_array( $type ) ) |
1819 | 1819 | $type = explode( ' ', $type ); |
1820 | 1820 | |
… |
… |
|
1900 | 1900 | * |
1901 | 1901 | * Individual pointers (e.g. wp390_widgets) can be disabled using the following: |
1902 | 1902 | * remove_action( 'admin_print_footer_scripts', array( 'WP_Internal_Pointers', 'pointer_wp390_widgets' ) ); |
| 1903 | * |
| 1904 | * @param string $hook_suffix The current admin page. |
1903 | 1905 | */ |
1904 | 1906 | public static function enqueue_scripts( $hook_suffix ) { |
1905 | 1907 | /* |
… |
… |
|
2067 | 2069 | * Prevents new users from seeing existing 'new feature' pointers. |
2068 | 2070 | * |
2069 | 2071 | * @since 3.3.0 |
| 2072 | * |
| 2073 | * @param int $user_id User ID. |
2070 | 2074 | */ |
2071 | 2075 | public static function dismiss_pointers_for_new_users( $user_id ) { |
2072 | 2076 | add_user_meta( $user_id, 'dismissed_wp_pointers', 'wp360_locks,wp390_widgets' ); |