From dd35bb5d7bb4f4c931683a0503ec209804f052e7 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 23 Feb 2014 22:43:44 +0000 Subject: [PATCH] Inline documentation for hooks in wp-admin/includes/template.php. Props shelob9 for the initial patch. Props kpdesign. Fixes #26089. git-svn-id: https://develop.svn.wordpress.org/trunk@27237 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/template.php | 137 +++++++++++++++++++++++++---- 1 file changed, 119 insertions(+), 18 deletions(-) diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index 8d0e587b7f..0453dff0c8 100644 --- a/src/wp-admin/includes/template.php +++ b/src/wp-admin/includes/template.php @@ -80,7 +80,9 @@ class Walker_Category_Checklist extends Walker { $name = 'tax_input['.$taxonomy.']'; $class = in_array( $category->term_id, $popular_cats ) ? ' class="popular-category"' : ''; - $output .= "\n
  • " . ''; + + /** This filter is documented in wp-includes/category-template.php */ + $output .= "\n
  • " . ''; } /** @@ -143,6 +145,17 @@ function wp_terms_checklist($post_id = 0, $args = array()) { 'taxonomy' => 'category', 'checked_ontop' => true ); + + /** + * Filter the taxonomy terms checklist arguments. + * + * @since 3.4.0 + * + * @see wp_terms_checklist() + * + * @param array $args An array of arguments. + * @param int $post_id The post ID. + */ $args = apply_filters( 'wp_terms_checklist_args', $args, $post_id ); extract( wp_parse_args($args, $defaults), EXTR_SKIP ); @@ -235,8 +248,11 @@ function wp_popular_terms_checklist( $taxonomy, $default = 0, $number = 10, $ech
  • @@ -271,6 +287,8 @@ function wp_link_category_checklist( $link_id = 0 ) { foreach ( $categories as $category ) { $cat_id = $category->term_id; + + /** This filter is documented in wp-includes/category-template.php */ $name = esc_html( apply_filters( 'the_category', $category->name ) ); $checked = in_array( $cat_id, $checked_categories ) ? ' checked="checked"' : ''; echo '"; @@ -292,10 +310,11 @@ function get_inline_data($post) { $title = esc_textarea( trim( $post->post_title ) ); + /** This filter is documented in wp-admin/edit-tag-form.php */ echo '