Making WordPress.org

Changeset 4252


Ignore:
Timestamp:
10/18/2016 12:20:17 AM (10 years ago)
Author:
iandunn
Message:

WordCamp Logger: Add a few common password field keys to the blacklist.

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

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/0-logger.php

    r3960 r4252  
    4949 */
    5050function redact_keys( & $data ) {
    51     $redacted_keys = array( 'Authorization' );
     51    $redacted_keys = array( 'Authorization', 'password', 'user_pass' );
    5252    $redacted_keys = array_map( 'strtolower', $redacted_keys ); // to avoid human error
    5353
     
    7575 *
    7676 * 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 first
    7977 *
    8078 * @return string
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/jetpack-tweaks/new-sites.php

    r3831 r4252  
    2121/**
    2222 * 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().
    2426 *
    2527 * @param array $new_value
     
    3537
    3638/**
    37  * Schedule an attempt to connect this site to Jetpack.
     39 * Schedule an attempt to connect Jetpack to WordPress.com
    3840 *
    3941 * @param int $blog_id The blog id.
     
    4143function schedule_connect_new_site( $blog_id ) {
    4244    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
    4446        'wcorg_connect_new_site',
    4547        array( $blog_id, get_current_user_id() )
     
    4850
    4951/**
    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.
    5155 *
    5256 * @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  
    111111     *
    112112     * 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 -S
     113     * wp wc-misc format-log "$(grep 'foo' /var/log/php-errors.log -C 10)" |less -S
    114114     * wp wc-misc format-log "$(grep 'bar' /var/log/php-errors.log)" --foreign=ignore
    115115     *
Note: See TracChangeset for help on using the changeset viewer.