Making WordPress.org

Changeset 4981


Ignore:
Timestamp:
02/22/2017 04:32:18 PM (7 years ago)
Author:
iandunn
Message:

WordCamp Post Type: Add explicit To field to default contact forms

If the To field is missing, Jetpack will send the form submissions to the author of the post, but we want them to go to the camp's group address.

See https://wordpress.slack.com/archives/meta-wordcamp/p1487623696002709
See https://wordpress.slack.com/archives/meta-wordcamp/p1487701615002730

Location:
sites/trunk/wordcamp.org/public_html/wp-content/plugins
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-new-site.php

    r4897 r4981  
    643643                'title'   => __( 'Call for Sponsors', 'wordcamporg' ),
    644644                'content' =>
    645                     '<p>' . __( '<em>Organizers note:</em> Make sure you update the "to" address and other fields before publishing this page!', 'wordcamporg' ) . '</p> ' .
    646645                    '<p>' . __( 'Blurb with information for potential sponsors.', 'wordcamporg' ) . '</p> ' .
    647646                    '<p>' .
    648647                        sprintf( '
    649                             [contact-form to="enter-your-address-here@example.net" subject="%s"]
     648                            [contact-form to="%s" subject="%s"]
    650649                            [contact-field label="%s" type="text"     required="1" /]
    651650                            [contact-field label="%s" type="name"     required="1" /]
     
    656655                            [contact-field label="%s" type="textarea"              /]
    657656                            [/contact-form]',
     657                            get_option( 'admin_email' ),
    658658                            __( 'WordCamp Sponsor Request', 'wordcamporg' ),
    659659                            __( 'Contact Name', 'wordcamporg' ),
     
    677677                    '<p>' .
    678678                        sprintf( '
    679                             [contact-form subject="%s"]
     679                            [contact-form to="%s" subject="%s"]
    680680                                [contact-field label="%s" type="name"     required="1" /]
    681681                                [contact-field label="%s" type="email"    required="1" /]
     
    687687                                [contact-field label="%s" type="textarea"              /]
    688688                            [/contact-form]',
     689                            get_option( 'admin_email' ),
    689690                            __( 'WordCamp Speaker Request', 'wordcamporg' ),
    690691                            __( 'Name', 'wordcamporg' ),
     
    708709                'title'   => __( 'Call for Volunteers', 'wordcamporg' ),
    709710                'content' =>
    710                     '<p>' . __( '<em>Organizers note:</em> Make sure you update the "to" address and other fields before publishing this page!', 'wordcamporg' ) . '</p> ' .
    711711                    '<p>' . __( 'Blurb with information for potential volunteers.', 'wordcamporg' ) . '</p> ' .
    712712                    '<p>' .
    713713                        sprintf( '
    714                             [contact-form to="enter-your-address-here@example.net" subject="%s"]
     714                            [contact-form to="%s" subject="%s"]
    715715                                [contact-field label="%s" type="text"     required="1" /]
    716716                                [contact-field label="%s" type="email"    required="1" /]
     
    719719                                [contact-field label="%s" type="textarea"              /]
    720720                            [/contact-form]',
     721                            get_option( 'admin_email' ),
    721722                            __( 'WordCamp Volunteer Application', 'wordcamporg' ),
    722723                            __( 'Name', 'wordcamporg' ),
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-remote-css/app/common.php

    r4578 r4981  
    200200 * with opposite values.
    201201 *
     202 * The value is pulled directly from the theme mod, rather than using
     203 * `Jetpack_Custom_CSS_Enhancements::skip_stylesheet()`, because we don't want to require that the Custom CSS
     204 * module be active in order to use Remote CSS.
     205 *
     206 * todo If replace mode is on, but Jetpack is deactivated, then the stylesheet won't be removed because
     207 *      `style_filter()` won't be activated to remove it. So, maybe we need to require Custom CSS be activated
     208 *      all the time anyway?
     209 *
    202210 * @return string
    203211 */
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-remote-css/app/user-interface.php

    r4966 r4981  
    33/*
    44 * @todo Move all of this into the Customizer. Replace the discovery notice with an input field for the URL.
    5  *       Not sure how to fit all the contextual help. though. Need a way to display error messages/exceptions
    6  *       when saving.
     5 *       Not sure how to fit all the contextual help. though.
     6 *       For errors, use https://developer.wordpress.org/themes/customize-api/tools-for-improved-user-experience/#notifications
    77 */
    88
Note: See TracChangeset for help on using the changeset viewer.