Making WordPress.org

Ticket #5030: 5030.diff

File 5030.diff, 2.0 KB (added by valentinbora, 4 years ago)

Remove "coming up on" verbiage for WordCamp activities

  • profiles.wordpress.org/public_html/wp-content/plugins/wporg-profiles-activity-handler/wporg-profiles-activity-handler.php

    diff --git profiles.wordpress.org/public_html/wp-content/plugins/wporg-profiles-activity-handler/wporg-profiles-activity-handler.php profiles.wordpress.org/public_html/wp-content/plugins/wporg-profiles-activity-handler/wporg-profiles-activity-handler.php
    index 3c7e97de5..ec584956c 100644
    if ( ! class_exists( 'WPOrg_Profiles_Activity_Handler' ) ) { 
    504504
    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 {
    513512                                        $action = sprintf(
    if ( ! class_exists( 'WPOrg_Profiles_Activity_Handler' ) ) { 
    522521
    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 {
    531529                                        $action = sprintf(
    if ( ! class_exists( 'WPOrg_Profiles_Activity_Handler' ) ) { 
    542540
    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 {
    551548                                                $action = sprintf(