Making WordPress.org


Ignore:
Timestamp:
12/15/2021 04:38:09 AM (4 years ago)
Author:
dd32
Message:

SVN Watcher: Move the Trac importer from running within profiles.wordpress.org into this plugin.

The Trac importer was previously running as part of profiles, but was sporadic due to the different cron setup of the various WordPress.org multisites.
This brings over the code to here, leaving profiles just consuming the data instead.

See #5978.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-trac-watcher/trac-watch.php

    r11371 r11372  
    9090
    9191    foreach ( SVN\get_svns() as $prefix => $info ) {
    92         $wpdb->query( sprintf( $trac_table, 'trac_' . $prefix ) );
     92        if ( ! empty( $info['trac_table'] ) ) {
     93            $wpdb->query( sprintf( $trac_table, $info['trac_table'] ) );
     94        }
    9395        if ( ! empty( $info['rev_table'] ) ) {
    9496            $wpdb->query( sprintf( $revisions_table, $info['rev_table'] ) );
Note: See TracChangeset for help on using the changeset viewer.