Changeset 4252
- Timestamp:
- 10/18/2016 12:20:17 AM (10 years ago)
- Location:
- sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins
- Files:
-
- 3 edited
-
0-logger.php (modified) (2 diffs)
-
jetpack-tweaks/new-sites.php (modified) (4 diffs)
-
wp-cli-commands/miscellaneous.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/0-logger.php
r3960 r4252 49 49 */ 50 50 function redact_keys( & $data ) { 51 $redacted_keys = array( 'Authorization' );51 $redacted_keys = array( 'Authorization', 'password', 'user_pass' ); 52 52 $redacted_keys = array_map( 'strtolower', $redacted_keys ); // to avoid human error 53 53 … … 75 75 * 76 76 * Based on https://stackoverflow.com/a/22508709/450127 77 *78 * @todo It might be just as good to use getmypid(), but need to research/test first79 77 * 80 78 * @return string -
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/jetpack-tweaks/new-sites.php
r3831 r4252 21 21 /** 22 22 * Never automatically connect new sites to WordPress.com. 23 * We offload this part to wp-cron.php because of https. 23 * 24 * Sites don't have SSL certificates when they're first created, so any attempt to connect to WordPress.com would 25 * fail. Instead, connecting is attempted after the SSL has been installed. See wcorg_connect_new_site(). 24 26 * 25 27 * @param array $new_value … … 35 37 36 38 /** 37 * Schedule an attempt to connect this site to Jetpack.39 * Schedule an attempt to connect Jetpack to WordPress.com 38 40 * 39 41 * @param int $blog_id The blog id. … … 41 43 function schedule_connect_new_site( $blog_id ) { 42 44 wp_schedule_single_event( 43 time() + 12 * HOUR_IN_SECONDS + 600, 45 time() + 12 * HOUR_IN_SECONDS + 600, // After the the SSL certificate has been installed 44 46 'wcorg_connect_new_site', 45 47 array( $blog_id, get_current_user_id() ) … … 48 50 49 51 /** 50 * Connect the new site to Jetpack. Runs during wp-cron.php. 52 * Connect Jetpack to WordPress.com 53 * 54 * Runs during wp-cron.php. 51 55 * 52 56 * @param int $blog_id The blog_id to connect. -
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wp-cli-commands/miscellaneous.php
r3749 r4252 111 111 * 112 112 * wp wc-misc format-log /var/log/php-errors.log 113 * wp wc-misc format-log "$(grep 'foo' /var/log/php-errors.log - -C 10)" |less -S113 * wp wc-misc format-log "$(grep 'foo' /var/log/php-errors.log -C 10)" |less -S 114 114 * wp wc-misc format-log "$(grep 'bar' /var/log/php-errors.log)" --foreign=ignore 115 115 *
Note: See TracChangeset
for help on using the changeset viewer.