Making WordPress.org


Ignore:
Timestamp:
09/01/2016 07:11:12 PM (10 years ago)
Author:
coffee2code
Message:

Profiles Activity Handler: Improve WordCamp-related action strings.

  • Add "on".
  • For consistency, make attendee branch match string handling of the organizer branch.

Props SergeyBiryukov.
Fixes #1949.

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

    r3912 r3915  
    523523                                if ( isset( $_POST['wordcamp_date'] ) && ! empty( $_POST['wordcamp_date'] ) ) {
    524524                                        $action = sprintf(
    525                                                 'Joined the organizing team for <a href="%s">%s</a> coming up %s',
     525                                                'Joined the organizing team for <a href="%s">%s</a> coming up on %s',
    526526                                                esc_url( $_POST['url'] ),
    527527                                                $_POST['wordcamp_name'],
     
    541541                                        $type = 'wordcamp_attendee_add';
    542542
    543                                         $action = sprintf(
    544                                                 'Registered to attend <a href="%s">%s</a>',
    545                                                 esc_url( $_POST['url'] ),
    546                                                 $_POST['wordcamp_name']
    547                                         );
    548 
    549543                                        if ( isset( $_POST['wordcamp_date'] ) && ! empty( $_POST['wordcamp_date'] ) ) {
    550                                                 $action .= ' ' . sprintf( 'coming up %s', $_POST['wordcamp_date'] );
     544                                                $action = sprintf(
     545                                                        'Registered to attend <a href="%s">%s</a> coming up on %s',
     546                                                        esc_url( $_POST['url'] ),
     547                                                        $_POST['wordcamp_name'],
     548                                                        $_POST['wordcamp_date']
     549                                                );
     550                                        } else {
     551                                                $action = sprintf(
     552                                                        'Registered to attend <a href="%s">%s</a>',
     553                                                        esc_url( $_POST['url'] ),
     554                                                        $_POST['wordcamp_name']
     555                                                );
    551556                                        }
    552557                                } elseif ( 'attendee_checked_in' == $_POST['activity_type'] ) {
Note: See TracChangeset for help on using the changeset viewer.