Changeset 30210
- Timestamp:
- 11/03/2014 06:48:50 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r30209 r30210 4135 4135 * 4136 4136 * @param array $args { 4137 * Arguments about which post to use and how to format the output. 4138 * 4139 * @type int|WP_Post $post Post ID or object to get taxonomies of. Default current post. 4140 * @type string $before Displays before the taxonomies. Default empty string. 4141 * @type string $sep Separates each taxonomy. Default is a space. 4142 * @type string $after Displays after the taxonomies. Default empty string. 4143 * @type string $template Template for displaying a taxonomy label and list of 4144 * terms. Default is "Label: Terms." 4145 * @type string $term_template Template for displaying a single term in the list. 4146 * Default is the term name linked to its archive. 4137 * Arguments about which post to use and how to format the output. Shares all of the arguments supported by 4138 * {@link get_the_taxonomies()}, in addition to the following. 4139 * 4140 * @type int|WP_Post $post Post ID or object to get taxonomies of. Default current post. 4141 * @type string $before Displays before the taxonomies. Default empty string. 4142 * @type string $sep Separates each taxonomy. Default is a space. 4143 * @type string $after Displays after the taxonomies. Default empty string. 4147 4144 * } 4145 * @param array $args See {@link get_the_taxonomies()} for a description of arguments and their defaults. 4148 4146 */ 4149 4147 function the_taxonomies( $args = array() ) { … … 4153 4151 'sep' => ' ', 4154 4152 'after' => '', 4155 /* translators: %s: taxonomy label, %l: list of terms formatted as per $term_template */4156 'template' => __( '%s: %l.' ),4157 /* translators: %1$s: term link, %2$s: term name */4158 'term_template' => '<a href="%1$s">%2$s</a>',4159 4153 ); 4160 4154 … … 4173 4167 * 4174 4168 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post. 4175 * @param array $args Override the defaults. 4169 * @param array $args { 4170 * Arguments about how to format the list of taxonomies. 4171 * 4172 * @type string $template Template for displaying a taxonomy label and list of terms. 4173 * Default is "Label: Terms." 4174 * @type string $term_template Template for displaying a single term in the list. Default is the term name 4175 * linked to its archive. 4176 * } 4176 4177 * @return array List of taxonomies. 4177 4178 */
Note: See TracChangeset
for help on using the changeset viewer.