Changes between Version 1 and Version 2 of Ticket #42814, comment 18
- Timestamp:
- 01/12/2018 06:35:48 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #42814, comment 18
v1 v2 3 3 First, Jetpack is doing it wrong, yup. We should just ask for the excerpt we want using Core functions (`get_the_excerpt( $post );)`, which works as of WP 4.5 outside of the loop. ( https://github.com/Automattic/jetpack/pull/8510 ) 4 4 5 Second, noting `get_the_excerpt`'s relatively new ability to accept a post argument, the default filter adds `wp_trim_excerpt`, which has not been updated to accept this new usage of `get_the_excerpt`, so it'll error out on it's own (or use the `global $post` data instead of the specified `$post` .5 Second, noting `get_the_excerpt`'s relatively new ability to accept a post argument, the default filter adds `wp_trim_excerpt`, which has not been updated to accept this new usage of `get_the_excerpt`, so it'll error out on it's own (or use the `global $post` data instead of the specified `$post`). 6 6 7 7 Try running