Making WordPress.org

Changeset 818


Ignore:
Timestamp:
08/27/2014 12:43:35 AM (11 years ago)
Author:
iandunn
Message:

Profiles Activity Handler: Add support for WordCamp registrations.

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

    r713 r818  
    397397                    );
    398398                }
     399            } elseif ( isset( $_POST['attendee_id'] ) && ! empty( $_POST['attendee_id'] ) ) {
     400                $type    = 'wordcamp_attendee_add';
     401                $item_id = $_POST['attendee_id'];
     402
     403                $action  = sprintf(
     404                    __( 'Registered to attend <a href="%s">%s</a>', 'wporg' ),
     405                    esc_url( $_POST['url'] ),
     406                    $_POST['wordcamp_name']
     407                );
     408
     409                if ( isset( $_POST['wordcamp_date'] ) && ! empty( $_POST['wordcamp_date'] ) ) {
     410                    $action .= ' ' . sprintf( __( 'coming up %s', 'wporg' ), $_POST['wordcamp_date'] );
     411                }
    399412            }
    400413
Note: See TracChangeset for help on using the changeset viewer.