Skip to content

Commit

Permalink
Merge pull request #1348 from INN/benlk-misc-undefined-variables
Browse files Browse the repository at this point in the history
Define miscellaneous undefined variables
  • Loading branch information
benlk authored Oct 20, 2016
2 parents 4106056 + a70e332 commit 3c72d84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions inc/byline_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ function author_link() {
*/
function job_title() {
$show_job_titles = of_get_option( 'show_job_titles', false );
$output = '';
// only do this if we're showing job titles and there is one to be shown
if ( true && $job = $this->author->job_title ) {
$output .= '<span class="job-title"><span class="comma">,</span> ' . $job . '</span>';
Expand All @@ -296,6 +297,7 @@ function organization() {
* twitter link from the coauthors object
*/
function twitter() {
$output = '';
if ( isset( $this->author->twitter ) && is_single() ) {
$output .= ' <span class="twitter"><a href="https://twitter.com/' . largo_twitter_url_to_username( $this->author->twitter ) . '"><i class="icon-twitter"></i></a></span>';
}
Expand Down
2 changes: 1 addition & 1 deletion partials/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

echo '<div class="' . $entry_classes . '">';

if ( largo_has_categories_or_tags() && $tags === 'top' ) {
if ( largo_has_categories_or_tags() ) {
largo_maybe_top_term();
}

Expand Down

0 comments on commit 3c72d84

Please sign in to comment.