Making WordPress.org

Changeset 14549


Ignore:
Timestamp:
10/09/2025 06:43:30 AM (3 days ago)
Author:
dd32
Message:

Profiles: Remove accidental redundanct if-else added in [9508].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/profiles.wordpress.org/public_html/wp-content/plugins/wporg-profiles-activity-handler/wporg-profiles-activity-handler.php

    r14365 r14549  
    660660                $item_id = $_POST['speaker_id'];
    661661
    662                 if ( isset( $_POST['wordcamp_date'] ) && ! empty( $_POST['wordcamp_date'] ) ) {
    663                     $action = sprintf(
    664                         'Confirmed as a speaker for <a href="%s">%s</a>',
    665                         esc_url( $_POST['url'] ),
    666                         $_POST['wordcamp_name']
    667                     );
    668                 } else {
    669                     $action = sprintf(
    670                         'Confirmed as a speaker for <a href="%s">%s</a>',
    671                         esc_url( $_POST['url'] ),
    672                         $_POST['wordcamp_name']
    673                     );
    674                 }
     662                $action = sprintf(
     663                    'Confirmed as a speaker for <a href="%s">%s</a>',
     664                    esc_url( $_POST['url'] ),
     665                    $_POST['wordcamp_name']
     666                );
    675667
    676668            } elseif ( isset( $_POST['organizer_id'] ) && ! empty( $_POST['organizer_id'] ) ) {
     
    678670                $item_id = $_POST['organizer_id'];
    679671
    680                 if ( isset( $_POST['wordcamp_date'] ) && ! empty( $_POST['wordcamp_date'] ) ) {
    681                     $action = sprintf(
    682                         'Joined the organizing team for <a href="%s">%s</a>',
    683                         esc_url( $_POST['url'] ),
    684                         $_POST['wordcamp_name']
    685                     );
    686                 } else {
    687                     $action = sprintf(
    688                         'Joined the organizing team for <a href="%s">%s</a>',
    689                         esc_url( $_POST['url'] ),
    690                         $_POST['wordcamp_name']
    691                     );
    692                 }
     672                $action = sprintf(
     673                    'Joined the organizing team for <a href="%s">%s</a>',
     674                    esc_url( $_POST['url'] ),
     675                    $_POST['wordcamp_name']
     676                );
    693677
    694678            } elseif ( isset( $_POST['type'] ) && 'mentor_assign' === $_POST['type'] ) {
     
    11091093    new WPOrg_Profiles_Activity_Handler();
    11101094}
     1095
Note: See TracChangeset for help on using the changeset viewer.