Ticket #2571: 2571.3.patch
File 2571.3.patch, 20.1 KB (added by , 7 years ago) |
---|
-
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/jetpack-tweaks/css-sanitization.php
84 84 <div class="notice notice-warning"> 85 85 <p> 86 86 <?php printf( 87 __( 'WARNING: <code>@import</code> rules were stripped for security reasons. 88 Please use <a href="%s">the Fonts tool</a> to add web fonts, and merge other stylesheets directly into your custom CSS.', 89 'wordcamporg' ), 90 admin_url( 'themes.php?page=wc-fonts-options' ) 87 // translators: 1: '@import', 2: Fonts tool URL 88 __( 89 'WARNING: %1$s rules were stripped for security reasons. Please use <a href="%2$s">the Fonts tool</a> to add web fonts, and merge other stylesheets directly into your custom CSS.', 90 'wordcamporg' 91 ), 92 '<code>@import</code>', 93 admin_url( 'themes.php?page=wc-fonts-options' ) 91 94 ); ?> 92 95 </p> 93 96 </div> -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/views/common/page-generate-badges.php
7 7 8 8 <p> 9 9 <?php _e( 10 'This tool will help you create personalized badges for attendees to wear during the event. 11 There are two methods for this, depending on your preferences:', 10 'This tool will help you create personalized badges for attendees to wear during the event. There are two methods for this, depending on your preferences:', 12 11 'wordcamporg' 13 12 ); ?> 14 13 </p> … … 50 49 51 50 <p> 52 51 <?php printf( 52 // translators: 1: Gravatar.com URL, 2: Notify tool URL 53 53 __( 54 'Regardless of which method you choose, you\'ll get the best results if you encourage attendees to create <a href="%s">Gravatar</a> accounts before you create the badges. 55 You can use <a href="%s">the Notify tool</a> to e-mail everyone. 56 Make sure to tell them to create their Gravatar account using the same e-mail address that provided when purchasing a ticket.', 54 'Regardless of which method you choose, you\'ll get the best results if you encourage attendees to create <a href="%1$s">Gravatar</a> accounts before you create the badges. You can use <a href="%2$s">the Notify tool</a> to e-mail everyone. Make sure to tell them to create their Gravatar account using the same e-mail address that provided when purchasing a ticket.', 57 55 'wordcamporg' 58 56 ), 59 57 'https://gravatar.com', -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/views/indesign-badges/page-indesign-badges.php
15 15 16 16 <p> 17 17 <?php _e( 18 "The process for building InDesign badges hasn't been automated yet, so it requires a developer to run a script. 19 That script will create a CSV file and will download Gravatar images for all attendees. 20 Once that's done, a designer can take those files into InDesign and use the Data Merge feature to create personalized badges for each attendee.", 18 "The process for building InDesign badges hasn't been automated yet, so it requires a developer to run a script. That script will create a CSV file and will download Gravatar images for all attendees. Once that's done, a designer can take those files into InDesign and use the Data Merge feature to create personalized badges for each attendee.", 21 19 'wordcamporg' 22 20 ); ?> 23 21 </p> … … 25 23 <p> 26 24 <?php printf( 27 25 __( 28 'Full instructions are <a href="%s">available in the WordCamp Organizer Handbook</a>. 29 If you\'d prefer an easier way, <a href="%s">the HTML/CSS method</a> is much more automated at this time.', 26 'Full instructions are <a href="%s">available in the WordCamp Organizer Handbook</a>. If you\'d prefer an easier way, <a href="%s">the HTML/CSS method</a> is much more automated at this time.', 30 27 'wordcamporg' 31 28 ), 32 29 'https://make.wordpress.org/community/handbook/wordcamp-organizer-handbook/first-steps/helpful-documents-and-templates/create-wordcamp-badges-with-gravatars/', … … 36 33 37 34 <p> 38 35 <?php printf( 39 __( ' if you\'d like to help automate the InDesign process, you can contribute to <a href="%s">Meta ticket #262</a>.', 'wordcamporg' ),36 __( 'If you\'d like to help automate the InDesign process, you can contribute to <a href="%s">Meta ticket #262</a>.', 'wordcamporg' ), 40 37 'https://meta.trac.wordpress.org/ticket/262' 41 38 ); ?> 42 39 </p> -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page/classes/wccsp-customizer.php
32 32 'title' => __( 'Coming Soon Page', 'wordcamporg' ), 33 33 34 34 'description' => __( 35 'When enabled, the Coming Soon page will be displayed to logged-out users, 36 giving you a chance to setup all of your content before your site is visible to the world.', 35 'When enabled, the Coming Soon page will be displayed to logged-out users, giving you a chance to setup all of your content before your site is visible to the world.', 37 36 'wordcamporg' 38 37 ) . $GLOBALS['WCCSP_Settings']->render_admin_notices(), 39 38 ) -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-remote-css/app/user-interface.php
138 138 139 139 if ( ! in_array( $parsed_url['host'], $trusted_hostnames, true ) ) { 140 140 throw new \Exception( sprintf( 141 __( 'Due to security constraints, only certain third-party platforms can be used, 142 and the URL you provided is not hosted by one of our currently-supported platforms. 143 To request that it be added, please <a href="%s">create a ticket</a> on Meta Trac.', 144 'wordcamporg' ), 141 // translators: %s: WordPress Meta Trac URL 142 __( 143 'Due to security constraints, only certain third-party platforms can be used. We currently only support GitHub, but more platforms can be added if there\'s interest from organizers. To request an additional platform, please <a href="%s">create a ticket</a> on Meta Trac.', 144 'wordcamporg' 145 ), 145 146 'https://meta.trac.wordpress.org/newticket' 146 147 ) ); 147 148 } … … 154 155 * sanitized, which would further couple the plugin to Jetpack. 155 156 */ 156 157 if ( '.css' !== substr( $parsed_url['path'], strlen( $parsed_url['path'] ) - 4, 4 ) ) { 157 throw new \Exception( 158 __( 'The URL must be a vanilla CSS file ending in <code>.css</code>. 159 If you\'d like to use SASS/LESS, please compile it into vanilla CSS on your server, 160 and then enter the URL for that file.', 161 'wordcamporg' ) 162 ); 158 throw new \Exception( sprintf( 159 // translators: %s: '.css' 160 __( 161 'The URL must be a vanilla CSS file ending in %s. If you\'d like to use SASS/LESS, please compile it into vanilla CSS on your server, and then enter the URL for that file.', 162 'wordcamporg' 163 ), 164 '<code>.css</code>' 165 ) ); 163 166 } 164 167 165 168 /* -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-remote-css/views/help-automated-synchronization.php
6 6 ?> 7 7 8 8 <p> 9 <?php _e( "You don't have to manually synchronize the local file every time you make a change to the remote file; 10 instead, you can setup a webhook to trigger synchronization automatically.", 'wordcamporg' ); ?> 9 <?php _e( 10 "You don't have to manually synchronize the local file every time you make a change to the remote file; instead, you can setup a webhook to trigger synchronization automatically.", 11 'wordcamporg' 12 ); ?> 11 13 </p> 12 14 13 15 <h2><?php _e( 'Setup', 'wordcamporg' ); ?></h2> … … 35 37 </ol> 36 38 37 39 <p> 38 <?php _e( "If you're not using GitHub, your process will be different, but at the end of the day all you need to do 39 is setup something to open an HTTP request to the payload URL above whenever your file changes.", 'wordcamporg' ); ?> 40 <?php _e( 41 "If you're not using GitHub, your process will be different, but at the end of the day all you need to do is setup something to open an HTTP request to the payload URL above whenever your file changes.", 42 'wordcamporg' 43 ); ?> 40 44 </p> 41 45 42 46 <h2><?php _e( 'Testing & Troubleshooting', 'wordcamporg' ); ?></h2> 43 47 44 48 <p> 45 <?php _e( 'To test if the synchronization is working, make a change to the file, commit it, push it to GitHub, 46 and then check the site to see if that change is active.', 'wordcamporg' ); ?> 49 <?php _e( 50 'To test if the synchronization is working, make a change to the file, commit it, push it to GitHub, and then check the site to see if that change is active.', 51 'wordcamporg' 52 ); ?> 47 53 </p> 48 54 49 55 <p> 50 <?php _e( "If your change isn't active on WordCamp.org, edit the webhook and scroll down to the <strong>Recent Deliveries</strong> section, 51 then open the latest delivery and look at the <strong>Response</strong> tab for any errors.", 'wordcamporg' ); ?> 56 <?php _e( 57 "If your change isn't active on WordCamp.org, edit the webhook and scroll down to the <strong>Recent Deliveries</strong> section, then open the latest delivery and look at the <strong>Response</strong> tab for any errors.", 58 'wordcamporg' 59 ); ?> 52 60 </p> 53 61 54 62 <p> 55 63 <?php printf( 56 __( 'If that doesn\'t help solve the problem, you can ask for help in the <code>#meta-wordcamp</code> channel on <a href="%s">Slack</a>.', 'wordcamporg' ), 64 // translators: %s: WordPress Slack URL */ 65 __( 66 'If that doesn\'t help solve the problem, you can ask for help in the <code>#meta-wordcamp</code> channel on <a href="%s">Slack</a>.', 67 'wordcamporg' 68 ), 57 69 'https://chat.wordpress.org' 58 70 ); ?> 59 71 </p> -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-remote-css/views/help-basic-setup.php
13 13 14 14 <p> 15 15 <?php printf( 16 __( 'Due to security constraints, only certain third-party platforms can be used. 17 We currently only support GitHub, but more platforms can be added if there\'s interest from organizers. 18 To request an additional platform, please <a href="%s">create a ticket</a> on Meta Trac.', 'wordcamporg' ), 16 // translators: %s: WordPress Meta Trac URL 17 __( 18 'Due to security constraints, only certain third-party platforms can be used. We currently only support GitHub, but more platforms can be added if there\'s interest from organizers. To request an additional platform, please <a href="%s">create a ticket</a> on Meta Trac.', 19 'wordcamporg' 20 ), 19 21 'https://meta.trac.wordpress.org/newticket' 20 22 ); ?> 21 23 </p> … … 31 33 </p> 32 34 33 35 <p> 34 <?php _e( "If you're using GitHub, you can enter the URL in any of the following formats, 35 but we'll convert them to use the GitHub API.", 'wordcamporg' ); ?> 36 <?php _e( 37 "If you're using GitHub, you can enter the URL in any of the following formats, but we'll convert them to use the GitHub API.", 38 'wordcamporg' 39 ); ?> 36 40 </p> 37 41 38 42 <ul> … … 57 61 <p><?php _e( 'Click the <strong>Update</strong> button.', 'wordcamporg' ); ?></p> 58 62 59 63 <p> 60 <?php _e( "WordCamp.org will download the file, sanitize it, minify it, and store a local copy, 61 then enqueue the local copy as a stylesheet alongside your theme's default stylesheet.", 'wordcamporg' ); ?> 64 <?php _e( 65 "WordCamp.org will download the file, sanitize it, minify it, and store a local copy, then enqueue the local copy as a stylesheet alongside your theme's default stylesheet.", 66 'wordcamporg' 67 ); ?> 62 68 </p> 63 69 </li> 64 70 65 71 <li> 66 <?php _e( 'The local copy will need to be <strong>synchronized</strong> whenever you make a change to the file. 67 You can either update manually by pushing the <strong>Update</strong> button again, or update automatically by setting up a webhook. 68 For instructions on setting up a webhook, open the <strong>Automated Synchronization</strong> tab.', 'wordcamporg' ); ?> 72 <?php _e( 73 'The local copy will need to be <strong>synchronized</strong> whenever you make a change to the file. You can either update manually by pushing the <strong>Update</strong> button again, or update automatically by setting up a webhook. For instructions on setting up a webhook, open the <strong>Automated Synchronization</strong> tab.', 74 'wordcamporg' 75 ); ?> 69 76 </li> 70 77 </ol> 71 78 72 79 <p> 73 80 <?php printf( 74 __( 'If you run into any problems, you can ask for help in the <code>#meta-wordcamp</code> channel on <a href="%s">Slack</a>.', 'wordcamporg' ), 81 // translators: %s: WordPress Slack URL */ 82 __( 83 'If you run into any problems, you can ask for help in the <code>#meta-wordcamp</code> channel on <a href="%s">Slack</a>.', 84 'wordcamporg' 85 ), 75 86 'https://chat.wordpress.org' 76 87 ); ?> 77 88 </p> -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-remote-css/views/help-overview.php
10 10 ?> 11 11 12 12 <p> 13 <?php _e( 'Remote CSS gives you a lot more flexibility in how you develop your site than the Core/Jetpack editor. 14 For instance, you can:', 'wordcamporg' ); ?> 13 <?php _e( 14 'Remote CSS gives you a lot more flexibility in how you develop your site than the Core/Jetpack editor. For instance, you can:', 15 'wordcamporg' 16 ); ?> 15 17 </p> 16 18 17 19 <ul> … … 24 26 </ul> 25 27 26 28 <p> 27 <?php _e( "You can use all of those tools, only some of them, or completely different ones. 28 It's up to you how you choose to work.", 'wordcamporg' ); ?> 29 <?php _e( 30 "You can use all of those tools, only some of them, or completely different ones. It's up to you how you choose to work.", 31 'wordcamporg' 32 ); ?> 29 33 </p> 30 34 31 35 <p> 32 <?php _e( "This tool works by fetching your CSS file from a remote server (like GitHub.com), sanitizing the CSS, minifying it,33 and then storing a local copy on WordCamp.org. The local copy is then enqueued as a stylesheet, either in addition to your theme's stylesheet,34 or as a replacement for it. The local copy of the CSS is synchronized with the remote file whenever you press the <strong>Update</strong> button,35 and you can also setup webhook notifications for automatic synchronization when the remote file changes.", 'wordcamporg'); ?>36 <?php _e( 37 "This tool works by fetching your CSS file from a remote server (like GitHub.com), sanitizing the CSS, minifying it, and then storing a local copy on WordCamp.org. The local copy is then enqueued as a stylesheet, either in addition to your theme's stylesheet, or as a replacement for it. The local copy of the CSS is synchronized with the remote file whenever you press the <strong>Update</strong> button, and you can also setup webhook notifications for automatic synchronization when the remote file changes.", 38 'wordcamporg' 39 ); ?> 36 40 </p> 37 41 38 42 <p> 39 43 <?php printf( 44 // translators: %s: URL to Custom CSS section in the Customizer 40 45 __( 'If you\'re looking for something simpler, <a href="%s">the Core/Jetpack editor</a> is a great option.', 'wordcamporg' ), 41 46 esc_url( $custom_css_url ) 42 47 ); ?> -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-remote-css/views/help-tips.php
19 19 </li> 20 20 21 21 <li> 22 <?php _e( "Don't use post IDs as selectors, because they can change between your development environment and production. 23 Instead, use the slug; e.g. <code>body.post-slug-call-for-volunteers</code>, or <code>body.wcb_speaker-slug-sergey-biryukov</code>. 24 Just make sure that you update your CSS if you rename a post.", 'wordcamporg' ); ?> 22 <?php _e( 23 "Don't use post IDs as selectors, because they can change between your development environment and production. Instead, use the slug; e.g. <code>body.post-slug-call-for-volunteers</code>, or <code>body.wcb_speaker-slug-sergey-biryukov</code>. Just make sure that you update your CSS if you rename a post.", 24 'wordcamporg' 25 ); ?> 25 26 </li> 26 27 27 28 <li> … … 33 34 34 35 <li> 35 36 <?php printf( 36 __( 'Upload your images to <a href="%s">the Media Library</a> rather than hosting them on 3rd party servers. 37 That way, visitors will avoid an extra DNS request, 38 and you won\'t have to worry about them going offline if there\'s a problem with the external server.', 'wordcamporg' ), 37 __( 38 'Upload your images to <a href="%s">the Media Library</a> rather than hosting them on 3rd party servers. That way, visitors will avoid an extra DNS request, and you won\'t have to worry about them going offline if there\'s a problem with the external server.', 39 'wordcamporg' 40 ), 39 41 esc_url( $media_library_url ) 40 42 ); ?> 41 43 </li> 42 44 43 45 <li> 44 <?php _e( "This tool plays nicely with the Core/Jetpack editor, and it's possible to use both. 45 If you do, the rules in the Core/Jetpack editor will take precedence.", 'wordcamporg' ); ?> 46 <?php _e( 47 "This tool plays nicely with the Core/Jetpack editor, and it's possible to use both. If you do, the rules in the Core/Jetpack editor will take precedence.", 48 'wordcamporg' 49 ); ?> 46 50 </li> 47 51 </ul> -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-remote-css/views/page-remote-css.php
29 29 <?php endif; ?> 30 30 31 31 <p> 32 <?php _e( 33 'Remote CSS allows you to develop your CSS in any environment that you choose, and with whatever tools that you prefer. 34 <button type="button" id="wcrcss-open-help-tab" class="button-link">Open the Help tab</button> for detailed instructions.', 35 'wordcamporg' 32 <?php printf( 33 // translators: %s: button attributes 34 __( 35 'Remote CSS allows you to develop your CSS in any environment that you choose, and with whatever tools that you prefer. <button %s>Open the Help tab</button> for detailed instructions.', 36 'wordcamporg' 37 ), 38 'type="button" id="wcrcss-open-help-tab" class="button-link"' 36 39 ); ?> 37 40 </p> 38 41