Making WordPress.org

Changeset 9508


Ignore:
Timestamp:
02/17/2020 02:57:50 AM (5 years ago)
Author:
dd32
Message:

Profiles: Remove the WordCamp date from the Profiles activity feed.

This keeps the WordCamp name and year, but removes the "Coming up on Feb 30th" verbiage which is incorrect for all previous events.

Props valentinbora.
Fixes #5030.

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

    r3915 r9508  
    505505                if ( isset( $_POST['wordcamp_date'] ) && ! empty( $_POST['wordcamp_date'] ) ) {
    506506                    $action = sprintf(
    507                         'Confirmed as a speaker for <a href="%s">%s</a> coming up on %s',
     507                        'Confirmed as a speaker for <a href="%s">%s</a>',
    508508                        esc_url( $_POST['url'] ),
    509                         $_POST['wordcamp_name'],
    510                         $_POST['wordcamp_date']
     509                        $_POST['wordcamp_name']
    511510                    );
    512511                } else {
     
    523522                if ( isset( $_POST['wordcamp_date'] ) && ! empty( $_POST['wordcamp_date'] ) ) {
    524523                    $action = sprintf(
    525                         'Joined the organizing team for <a href="%s">%s</a> coming up on %s',
     524                        'Joined the organizing team for <a href="%s">%s</a>',
    526525                        esc_url( $_POST['url'] ),
    527                         $_POST['wordcamp_name'],
    528                         $_POST['wordcamp_date']
     526                        $_POST['wordcamp_name']
    529527                    );
    530528                } else {
     
    543541                    if ( isset( $_POST['wordcamp_date'] ) && ! empty( $_POST['wordcamp_date'] ) ) {
    544542                        $action = sprintf(
    545                             'Registered to attend <a href="%s">%s</a> coming up on %s',
     543                            'Registered to attend <a href="%s">%s</a>',
    546544                            esc_url( $_POST['url'] ),
    547                             $_POST['wordcamp_name'],
    548                             $_POST['wordcamp_date']
     545                            $_POST['wordcamp_name']
    549546                        );
    550547                    } else {
Note: See TracChangeset for help on using the changeset viewer.