Changeset 17028 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 12/17/2010 04:33:16 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r17009 r17028 2890 2890 extract( $r, EXTR_SKIP ); 2891 2891 2892 echo $before . join($sep, get_the_taxonomies($post, $ template)) . $after;2892 echo $before . join($sep, get_the_taxonomies($post, $r)) . $after; 2893 2893 } 2894 2894 … … 2902 2902 * 2903 2903 * @param int $post Optional. Post ID or will use Global Post ID (in loop). 2904 * @param string $template Optional. The template to use for displaying the taxonomy terms.2904 * @param array $args Override the defaults. 2905 2905 * @return array 2906 2906 */ 2907 function get_the_taxonomies($post = 0, $ template = '%s: %l.') {2907 function get_the_taxonomies($post = 0, $args = array() ) { 2908 2908 if ( is_int($post) ) 2909 2909 $post =& get_post($post); 2910 2910 elseif ( !is_object($post) ) 2911 2911 $post =& $GLOBALS['post']; 2912 2913 $args = wp_parse_args( $args, array( 2914 'template' => '%s: %l.', 2915 ) ); 2916 extract( $args, EXTR_SKIP ); 2912 2917 2913 2918 $taxonomies = array();
Note: See TracChangeset
for help on using the changeset viewer.