Skip to content

Commit

Permalink
Fixed customizer loading issue and bumped version number
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbarne3 committed Jul 11, 2023
1 parent d97bd31 commit 87a8cb4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 30 deletions.
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
**/
function get_relevant_version( $the_post=null ) {
if ( !$the_post ) {
$request_uri = untrailingslashit( $_SERVER['REQUEST_URI'] );
$request_uri = untrailingslashit( strtok( $_SERVER['REQUEST_URI'], '?') );

if ( $request_uri === get_site_url( get_current_blog_id(), '', 'relative' ) ) {
// If the home page has been requested, always return the current issue
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Theme Name: Pegasus Theme
Author: UCF Web Communications
Github Theme URI: https://github.com/UCF/Pegasus-Theme
Version: v6.3.1
Version: v6.3.2
*/

/*
Expand Down
28 changes: 0 additions & 28 deletions versions/v5/functions/display-logic.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,31 +229,3 @@ function display_front_page_issue_details() {
<?php endif; ?>
<?php return ob_get_clean();
}

/**
* Displays events markup for the Pegasus homepage.
* Ported over from Today-Child-Theme.
*
* @since 6.0.0
* @author Jo Dickson
* @return string HTML markup for the events list
*/
function get_home_events() {
$content = '';
$attrs = array_filter( array(
'feed_url' => get_theme_option( 'front_page_events_feed_url', '' ),
'layout' => 'modern_date',
'limit' => 3
) );
$attr_str = '';

$attrs['title'] = '';

foreach ( $attrs as $key => $val ) {
$attr_str .= ' ' . $key . '="' . $val . '"';
}

$content = do_shortcode( '[ucf-events' . $attr_str . ']No events found.[/ucf-events]' );

return $content;
}

0 comments on commit 87a8cb4

Please sign in to comment.