Skip to content

Commit

Permalink
Update uses of old function signature
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Nov 19, 2023
1 parent 8ee57f6 commit 6ec47cf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/mc-templates/event/calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/

?>
<div class="mc-event mc-single mc-grid">
<div class="mc-event mc-single mc-grid <?php mc_event_classes( $data->event, 'calendar' ); ?>">
<?php mc_template_tag( $data, 'image' ); ?>
<?php mc_template_tag( $data, 'datetime' ); ?>
<?php mc_template_tag( $data, 'description' ); ?>
Expand Down
2 changes: 1 addition & 1 deletion src/my-calendar-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -2062,7 +2062,7 @@ function mc_body_classes( $classes ) {
}
}
if ( is_object( $event ) ) {
$event_classes = explode( ' ', mc_event_classes( $event, 'body' ) );
$event_classes = explode( ' ', mc_get_event_classes( $event, 'body' ) );
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/my-calendar-templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ function mc_create_tags( $event, $context = 'filters' ) {
$e['time'],
);

$classes = mc_event_classes( $event, 'template' );
$classes = mc_get_event_classes( $event, 'template' );
$nofollow = ( stripos( $classes, 'past-event' ) !== false ) ? 'rel="nofollow"' : '';
$e_label = str_replace( $tags, $replacements, $e_template );
$e_link = mc_get_details_link( $event );
Expand Down
4 changes: 2 additions & 2 deletions src/my-calendar-widgets.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function my_calendar_upcoming_events( $args ) {
} else {
$today = current_time( 'Y-m-d H:i' );
$date = mc_date( 'Y-m-d H:i', strtotime( $details['dtstart'], false ) );
$classes = mc_event_classes( $event, 'upcoming' );
$classes = mc_get_event_classes( $event, 'upcoming' );
$prepend = "<li class='$classes'>";
$append = '</li>';
/**
Expand Down Expand Up @@ -688,7 +688,7 @@ function my_calendar_todays_events( $args ) {
if ( ! mc_private_event( $e ) && ! in_array( $e->event_group_id, $groups, true ) ) {
$event_details = mc_create_tags( $e );
$ts = $e->ts_occur_begin;
$classes = mc_event_classes( $e, 'today' );
$classes = mc_get_event_classes( $e, 'today' );

$data = array(
'event' => $e,
Expand Down
1 change: 0 additions & 1 deletion src/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ Translating my plugins is always appreciated. Visit <a href="https://translate.w
* Feature: Add card view.
* Breaking change: `mc_event_classes()` now echos classes. Use `mc_get_event_classes()` to return.


= 3.4.21 =

* Bug fix: Settings that allow HTML were aggressively sanitized, stripping HTML.
Expand Down

0 comments on commit 6ec47cf

Please sign in to comment.