diff --git wp-admin/includes/template.php wp-admin/includes/template.php
index 5d43a25..ba53274 100644
|
|
class Walker_Category_Checklist extends Walker { |
80 | 80 | $name = 'tax_input['.$taxonomy.']'; |
81 | 81 | |
82 | 82 | $class = in_array( $category->term_id, $popular_cats ) ? ' class="popular-category"' : ''; |
83 | | $output .= "\n<li id='{$taxonomy}-{$category->term_id}'$class>" . '<label class="selectit"><input value="' . $category->term_id . '" type="checkbox" name="'.$name.'[]" id="in-'.$taxonomy.'-' . $category->term_id . '"' . checked( in_array( $category->term_id, $selected_cats ), true, false ) . disabled( empty( $args['disabled'] ), false, false ) . ' /> ' . esc_html( apply_filters('the_category', $category->name )) . '</label>'; |
| 83 | |
| 84 | /** |
| 85 | * Filter category name in category checkbox. |
| 86 | * |
| 87 | * @since 1.2.1 |
| 88 | * |
| 89 | */ |
| 90 | $output .= "\n<li id='{$taxonomy}-{$category->term_id}'$class>" . '<label class="selectit"><input value="' . $category->term_id . '" type="checkbox" name="'.$name.'[]" id="in-'.$taxonomy.'-' . $category->term_id . '"' . checked( in_array( $category->term_id, $selected_cats ), true, false ) . disabled( empty( $args['disabled'] ), false, false ) . ' /> ' . esc_html( apply_filters('the_category', $category->name )) . '</label>'; |
84 | 91 | } |
85 | 92 | |
86 | 93 | /** |
… |
… |
function wp_terms_checklist($post_id = 0, $args = array()) { |
143 | 150 | 'taxonomy' => 'category', |
144 | 151 | 'checked_ontop' => true |
145 | 152 | ); |
146 | | $args = apply_filters( 'wp_terms_checklist_args', $args, $post_id ); |
| 153 | /** |
| 154 | * Filters arguments for wp_terms_checklist() |
| 155 | * |
| 156 | * @since 3.4 |
| 157 | * |
| 158 | * @param array $args { |
| 159 | * The args for wp_terms checklist |
| 160 | * |
| 161 | * @type bool $descendants_and_self Display only categories that apply to this post and their children or display all categories. |
| 162 | * @type bool|array $selected_cats Default (false) no categories. Or an array of category ids specify which categories should be selected by default in the list.. |
| 163 | * @type bool|array $popular_cats Default (false) top 10 categories by count. Or an array of categories specify which categories should be shown in the popular categories list. |
| 164 | * @type object $walker Walker class to render the list with. |
| 165 | * @type string $taxonomy Taxonomy to return. Default category. Any registered taxonomy can be returned. |
| 166 | * @type bool $checked_ontop Display checked categories at the top of the terms list or not. |
| 167 | * } |
| 168 | * |
| 169 | * @param int $post_id Post ID |
| 170 | */ |
| 171 | $args = apply_filters( 'wp_terms_checklist_args', $args, $post_id ); |
147 | 172 | |
148 | 173 | extract( wp_parse_args($args, $defaults), EXTR_SKIP ); |
149 | 174 | |
… |
… |
var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>', |
1426 | 1451 | //]]> |
1427 | 1452 | </script> |
1428 | 1453 | <?php |
| 1454 | /**#@+ This action is documented in wp-admin/admin-header.php */ |
1429 | 1455 | do_action('admin_enqueue_scripts', $hook_suffix); |
1430 | 1456 | do_action("admin_print_styles-$hook_suffix"); |
1431 | 1457 | do_action('admin_print_styles'); |
… |
… |
do_action("admin_print_scripts-$hook_suffix"); |
1433 | 1459 | do_action('admin_print_scripts'); |
1434 | 1460 | do_action("admin_head-$hook_suffix"); |
1435 | 1461 | do_action('admin_head'); |
1436 | | |
| 1462 | /**#@-*/ |
1437 | 1463 | $admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) ); |
1438 | 1464 | |
1439 | 1465 | if ( is_rtl() ) |
… |
… |
function iframe_footer() { |
1464 | 1490 | //We're going to hide any footer output on iframe pages, but run the hooks anyway since they output Javascript or other needed content. ?> |
1465 | 1491 | <div class="hidden"> |
1466 | 1492 | <?php |
| 1493 | /**#@+ This action is documented in wp-admin/admin-footer.php */ |
1467 | 1494 | do_action('admin_footer', ''); |
1468 | | do_action('admin_print_footer_scripts'); ?> |
| 1495 | do_action('admin_print_footer_scripts'); |
| 1496 | /**#@-*/ |
| 1497 | ?> |
1469 | 1498 | </div> |
1470 | 1499 | <script type="text/javascript">if(typeof wpOnload=="function")wpOnload();</script> |
1471 | 1500 | </body> |
… |
… |
function _wp_admin_html_begin() { |
1692 | 1721 | if ( $is_IE ) |
1693 | 1722 | @header('X-UA-Compatible: IE=edge'); |
1694 | 1723 | |
| 1724 | /** |
| 1725 | * Outputs xmlns attribute for admin. |
| 1726 | * |
| 1727 | * Outputs, the xmlns in admin header, which specifies the xml namespace for a document. |
| 1728 | * |
| 1729 | * @since 2.2 |
| 1730 | * |
| 1731 | **/ |
1695 | 1732 | ?> |
1696 | 1733 | <!DOCTYPE html> |
1697 | 1734 | <!--[if IE 8]> |
… |
… |
final class WP_Internal_Pointers { |
1757 | 1794 | continue 2; |
1758 | 1795 | } |
1759 | 1796 | } |
1760 | | |
1761 | | // Bind pointer print function |
1762 | 1797 | add_action( 'admin_print_footer_scripts', array( 'WP_Internal_Pointers', 'pointer_' . $pointer ) ); |
1763 | 1798 | $got_pointers = true; |
1764 | 1799 | } |