Changeset 43177
- Timestamp:
- 05/07/2018 05:19:48 PM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/list-table.php
r42343 r43177 9 9 10 10 /** 11 * Fetch an instance of a WP_List_Table class.11 * Fetches an instance of a WP_List_Table class. 12 12 * 13 13 * @access private … … 17 17 * 18 18 * @param string $class The type of the list table, which is the class name. 19 * @param array $argsOptional. Arguments to pass to the class. Accepts 'screen'.20 * @return object|bool Object on success, false if the class does not exist.19 * @param array $args Optional. Arguments to pass to the class. Accepts 'screen'. 20 * @return WP_List_Table|bool List table object on success, false if the class does not exist. 21 21 */ 22 22 function _get_list_table( $class, $args = array() ) { -
trunk/src/wp-admin/includes/ms.php
r42875 r43177 674 674 675 675 /** 676 * Synchronize category and post tag slugs when global terms are enabled.677 * 678 * @since 3.0.0 679 * 680 * @param object$term The term.681 * @param string $taxonomy The taxonomy for `$term`. Should be 'category' or 'post_tag', as these are682 * the only taxonomies which are processed by this function; anything else683 * will be returned untouched.684 * @return object|array Returns `$term`, after filtering the 'slug' field with sanitize_title()685 * if $taxonomyis 'category' or 'post_tag'.676 * Synchronizes category and post tag slugs when global terms are enabled. 677 * 678 * @since 3.0.0 679 * 680 * @param WP_Term|array $term The term. 681 * @param string $taxonomy The taxonomy for `$term`. Should be 'category' or 'post_tag', as these are 682 * the only taxonomies which are processed by this function; anything else 683 * will be returned untouched. 684 * @return WP_Term|array Returns `$term`, after filtering the 'slug' field with `sanitize_title()` 685 * if `$taxonomy` is 'category' or 'post_tag'. 686 686 */ 687 687 function sync_category_tag_slugs( $term, $taxonomy ) { -
trunk/src/wp-includes/class-wp-post.php
r42746 r43177 353 353 * 354 354 * @param string $filter Filter. 355 * @return self|array|bool|object|WP_Post355 * @return array|bool|object|WP_Post 356 356 */ 357 357 public function filter( $filter ) { -
trunk/src/wp-includes/post-template.php
r42843 r43177 430 430 431 431 /** 432 * Display the classes for the post div.432 * Displays the classes for the post container element. 433 433 * 434 434 * @since 2.7.0 … … 443 443 444 444 /** 445 * Retrieves the classes for the post div as an array.445 * Retrieves an array of the class names for the post container element. 446 446 * 447 447 * The class names are many. If the post is a sticky, then the 'sticky' … … 452 452 * 453 453 * The 'post_tag' taxonomy is a special 454 * case; the class has the 'tag-' prefix instead of 'post_tag-'. All class es are455 * passed through the filter, {@see 'post_class'}, with the list of class es, followed by454 * case; the class has the 'tag-' prefix instead of 'post_tag-'. All class names are 455 * passed through the filter, {@see 'post_class'}, with the list of class names, followed by 456 456 * $class parameter value, with the post ID as the last parameter. 457 457 * 458 458 * @since 2.7.0 459 * @since 4.2.0 Custom taxonomy class es were added.460 * 461 * @param string| array $class One or more classes to add to the class list.462 * @param int|WP_Post $post_id Optional. Post ID or post object.463 * @return array Array of classes.459 * @since 4.2.0 Custom taxonomy class names were added. 460 * 461 * @param string|string[] $class Space-separated string or array of class names to add to the class list. 462 * @param int|WP_Post $post_id Optional. Post ID or post object. 463 * @return string[] Array of class names. 464 464 */ 465 465 function get_post_class( $class = '', $post_id = null ) { … … 553 553 554 554 /** 555 * Filters the list of CSS class es for the current post.555 * Filters the list of CSS class names for the current post. 556 556 * 557 557 * @since 2.7.0 558 558 * 559 * @param array $classes An array of post classes.560 * @param array $class An array of additional classes added to the post.561 * @param int $post_id The post ID.559 * @param string[] $classes An array of post class names. 560 * @param string[] $class An array of additional class names added to the post. 561 * @param int $post_id The post ID. 562 562 */ 563 563 $classes = apply_filters( 'post_class', $classes, $class, $post->ID ); … … 567 567 568 568 /** 569 * Display the classes for the body element.569 * Displays the class names for the body element. 570 570 * 571 571 * @since 2.8.0 572 572 * 573 * @param string| array $class One or more classes to add to the class list.573 * @param string|string[] $class Space-separated string or array of class names to add to the class list. 574 574 */ 575 575 function body_class( $class = '' ) { 576 // Separates class es with a single space, collates classes for body element576 // Separates class names with a single space, collates class names for body element 577 577 echo 'class="' . join( ' ', get_body_class( $class ) ) . '"'; 578 578 } 579 579 580 580 /** 581 * Retrieve the classes for the body element as an array.581 * Retrieves an array of the class names for the body element. 582 582 * 583 583 * @since 2.8.0 … … 585 585 * @global WP_Query $wp_query 586 586 * 587 * @param string| array $class One or more classes to add to the class list.588 * @return array Array of classes.587 * @param string|string[] $class Space-separated string or array of class names to add to the class list. 588 * @return string[] Array of class names. 589 589 */ 590 590 function get_body_class( $class = '' ) { … … 801 801 802 802 /** 803 * Filters the list of CSS body class es for the current post or page.803 * Filters the list of CSS body class names for the current post or page. 804 804 * 805 805 * @since 2.8.0 806 806 * 807 * @param array $classes An array of body classes.808 * @param array $class An array of additional classes added to the body.807 * @param string[] $classes An array of body class names. 808 * @param string[] $class An array of additional class names added to the body. 809 809 */ 810 810 $classes = apply_filters( 'body_class', $classes, $class ); -
trunk/src/wp-includes/taxonomy.php
r42871 r43177 811 811 812 812 /** 813 * Filters a t erm.813 * Filters a taxonomy term object. 814 814 * 815 815 * @since 2.3.0 816 * @since 4.4.0 `$_term` can now also be a WP_Termobject.817 * 818 * @param int|WP_Term $_term Term object or ID.819 * @param string 816 * @since 4.4.0 `$_term` is now a `WP_Term` object. 817 * 818 * @param WP_Term $_term Term object. 819 * @param string $taxonomy The taxonomy slug. 820 820 */ 821 821 $_term = apply_filters( 'get_term', $_term, $taxonomy ); 822 822 823 823 /** 824 * Filters a taxonomy .824 * Filters a taxonomy term object. 825 825 * 826 826 * The dynamic portion of the filter name, `$taxonomy`, refers 827 * to the taxonomy slug.827 * to the slug of the term's taxonomy. 828 828 * 829 829 * @since 2.3.0 830 * @since 4.4.0 `$_term` can now also be a WP_Termobject.831 * 832 * @param int|WP_Term $_term Term object or ID.833 * @param string 830 * @since 4.4.0 `$_term` is now a `WP_Term` object. 831 * 832 * @param WP_Term $_term Term object. 833 * @param string $taxonomy The taxonomy slug. 834 834 */ 835 835 $_term = apply_filters( "get_{$taxonomy}", $_term, $taxonomy );
Note: See TracChangeset
for help on using the changeset viewer.