Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix featured media display for galleries, embeds, and videos #1323

Merged
merged 4 commits into from
Oct 3, 2016

Conversation

benlk
Copy link
Collaborator

@benlk benlk commented Oct 3, 2016

Changes

In inc/featured-media.php's largo_get_featured_hero():

In partials/hero-featured-embed.php, converts a short-tag <? to the full <?php

In inc/update.php, converts a short-tag <? to the full <?php, because now was as good a time as any to search for other <? tags.

Why

For #1322, because #1285 broke non-image featured media hero functions.

@benlk benlk added type: bug priority: high Either blocks work on a priority-normal task or a solution here informs other work. labels Oct 3, 2016
@benlk benlk added this to the 0.5.5 - Story Elements milestone Oct 3, 2016
@@ -863,7 +863,7 @@ function largo_update_admin_notice() {
if ( largo_need_updates() && ! ( isset( $_GET['page'] ) && $_GET['page'] == 'update-largo' ) ) {
?>
<div class="update-nag" style="display: block;">
<p>Largo has been updated! Please <a href="<? echo admin_url( 'index.php?page=update-largo' ); ?>">visit the update page</a> to apply a required database update.</p>
<p>Largo has been updated! Please <a href="<?php echo admin_url( 'index.php?page=update-largo' ); ?>">visit the update page</a> to apply a required database update.</p>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be translatable

@@ -1150,6 +1150,6 @@ function largo_block_theme_options_for_update() {
* @since 0.5.3
*/
function largo_block_theme_options() { ?>
<h3>Please <a href="<? echo admin_url( 'index.php?page=update-largo' ); ?>">visit the update page</a> to apply required Largo updates before editing Theme Options.</h3>
<h3>Please <a href="<?php echo admin_url( 'index.php?page=update-largo' ); ?>">visit the update page</a> to apply required Largo updates before editing Theme Options.</h3>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@aschweigert
Copy link

@benlk can you make those two update strings translatable? Other than that this lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: high Either blocks work on a priority-normal task or a solution here informs other work. type: bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants