Skip to content

Commit

Permalink
Merge pull request #1655 from INN/1654-post-prominence-metabox
Browse files Browse the repository at this point in the history
Mark the Prominence metabox as a backwards-compatibility metabox
  • Loading branch information
benlk committed Apr 19, 2019
2 parents 85477c2 + c09c2b7 commit f850ce4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ This release contains bug fixes for Largo 0.6.
- Cleans up the search page when no query has been entered. [Pull request #1604](https://github.com/INN/largo/pull/1604) for [issue #1603](https://github.com/INN/largo/issues/1603).
- Defines the index 'class' in `partials/widget-content.php` when using a large image. [Pull request #1606](https://github.com/INN/largo/pull/1606) for issues [#1605](https://github.com/INN/largo/issues/1605) and [#1492](https://github.com/INN/largo/issues/1492).
- If Co-Authors Plus is active, and if a post has an `author` term, but the term has no corresponding `guest-author` post, when running `largo_byline()`, the byline will now contain an HTML comment informing why the byline is empty. If the `WP_DEBUG` or `LARGO_DEBUG` constants are true, Largo will add a message to the server's error log of the form "post 123 should have at least one co-author, but has none!" [Pull request #1607](https://github.com/INN/largo/pull/1607) for [Automattic/Co-Authors-Plus#637](https://github.com/Automattic/Co-Authors-Plus/issues/637) and as part of the general cleanup ticket [#1492](https://github.com/INN/largo/issues/1492).
- Further cleans up undefined variables.
- Fix for posts with "Featured in category" selected not displaying on category RSS feeds. [Pull request #1668](https://github.com/INN/largo/pull/1668) for [issue #1598](https://github.com/INN/largo/issues/1598).
- Fixes issue where prominence terms were not saving with the Block Editor, because the "Post Prominence" metabox was output twice. [Pull request #1655](https://github.com/INN/largo/pull/1655) for [issue #1654](https://github.com/INN/largo/issues/1654).
- Further cleans up undefined variables.

### Upgrade notices

Expand Down
6 changes: 4 additions & 2 deletions inc/post-metaboxes.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function largo_change_default_hidden_metaboxes( $hidden, $screen ) {
/**
* Add our prominence taxonomy meta box with custom behavior.
*
* @param array $largoProminenceTerms list of prominence terms
* @param array $largoProminenceTerms An array of arrays describing the taxonomy terms
* @see largo_custom_taxonomies
*/
function largo_add_custom_prominence_meta_box($largoProminenceTerms) {
Expand All @@ -121,7 +121,9 @@ function largo_add_custom_prominence_meta_box($largoProminenceTerms) {
'post',
'side',
'default',
$largoProminenceTerms
array(
'__back_compat_meta_box' => true, // because this taxonomy metabox is covered by Gutenberg
)
);
}, 10);
}
Expand Down

0 comments on commit f850ce4

Please sign in to comment.