Changeset 24207 for trunk/wp-includes/formatting.php
- Timestamp:
- 05/08/2013 09:27:31 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/formatting.php
r24129 r24207 2162 2162 * 2163 2163 * The excerpt word amount will be 55 words and if the amount is greater than 2164 * that, then the string ' [ ...]' will be appended to the excerpt. If the string2164 * that, then the string ' […]' will be appended to the excerpt. If the string 2165 2165 * is less than 55 words, then the content will be returned as is. 2166 2166 * 2167 2167 * The 55 word limit can be modified by plugins/themes using the excerpt_length filter 2168 * The ' [ ...]' string can be modified by plugins/themes using the excerpt_more filter2168 * The ' […]' string can be modified by plugins/themes using the excerpt_more filter 2169 2169 * 2170 2170 * @since 1.5.0 … … 2183 2183 $text = str_replace(']]>', ']]>', $text); 2184 2184 $excerpt_length = apply_filters('excerpt_length', 55); 2185 $excerpt_more = apply_filters('excerpt_more', ' ' . '[ ...]');2185 $excerpt_more = apply_filters('excerpt_more', ' ' . '[…]'); 2186 2186 $text = wp_trim_words( $text, $excerpt_length, $excerpt_more ); 2187 2187 }
Note: See TracChangeset
for help on using the changeset viewer.