Releases: greenpeace/planet4-master-theme
Releases · greenpeace/planet4-master-theme
v1.304.1
v1.304.0
v1.303.0
PLANET-7482 Use proper function for displaying author bio We are currently using [the_author_meta](https://developer.wordpress.org/reference/functions/the_author_meta/). But the function doesn't return a string, which is what [wpautop](https://developer.wordpress.org/reference/functions/wpautop/) expects. This also triggers the following warning locally: ``` Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wp-includes/formatting.php on line 449 ``` Instead, we should use [get_the_author_meta](https://developer.wordpress.org/reference/functions/get_the_author_meta/) as it's also mentioned in the documentation of `the_author_meta`: >NOTE: Use `get_the_author_meta()` if you need to return (and do something with) the field, rather than just display it. This also fixes bug [PLANET-7482](https://jira.greenpeace.org/browse/PLANET-7482). So it includes some css changes to make the links also follow the correct design. On the Authors block (Post view), when the bio is bigger than our character limit, the `wpautop` is not used as it's hard to keep the formatting while breaking up the description text.
v1.302.0
PLANET-7135: Fix country selector tab index (#2187) * PLANET-7136: Fix country selector tab index Ref: https://jira.greenpeace.org/browse/PLANET-7135 - Implement a new script - Improve SEO on this element - Fix border bottom - Fix tabindex to country group - Fix focus tab - Change the order of elements programatically - Apply transition duration dynamic variable - Update JSDoc --------- Co-authored-by: Dan Tovbein <dtovbein@gmail.com>
v1.301.0: Show media import button only on Media Library
We are injecting an Import button, in order to guide people on import media files while on Media Library. But currently that button show up everywhere, on all post types. This small change makes the button visible only in the Media Library.