Making WordPress.org


Ignore:
Timestamp:
01/11/2016 10:15:37 PM (9 years ago)
Author:
iandunn
Message:

WordCamp Budgets: Reorganize to make room for additional modules.

Soon we'll be adding modules for Budgets and Sponsor Invoices, in addition to the existing one for Payment Requests.

Location:
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/payment-request.php

    r2201 r2272  
    941941            $incomplete_text = get_post_meta( $post->ID, '_wcp_incomplete_notes', true );
    942942            $incomplete_text = preg_replace( '#\.$#', '', $incomplete_text ); // trailing-undot-it.
    943             WordCamp_Payments::log( $post->ID, sprintf( 'Marked as incomplete by %s: %s.', $user->display_name, $incomplete_text ), array(
     943            WordCamp_Budgets::log( $post->ID, sprintf( 'Marked as incomplete by %s: %s.', $user->display_name, $incomplete_text ), array(
    944944                'user_id' => $user->ID,
    945945                'action' => 'marked-incomplete',
     
    947947            ) );
    948948        } elseif ( $new == 'paid' && $old != 'paid' ) {
    949             WordCamp_Payments::log( $post->ID, sprintf( 'Marked as paid by %s.', $user->display_name ), array(
     949            WordCamp_Budgets::log( $post->ID, sprintf( 'Marked as paid by %s.', $user->display_name ), array(
    950950                'user_id' => $user->ID,
    951951                'action' => 'marked-paid',
    952952            ) );
    953953        } elseif ( $old == 'auto-draft' && $new != 'auto-draft' ) {
    954             WordCamp_Payments::log( $post->ID, sprintf( 'Request created by %s.', $user->display_name ), array(
     954            WordCamp_Budgets::log( $post->ID, sprintf( 'Request created by %s.', $user->display_name ), array(
    955955                'user_id' => $user->ID,
    956956                'action' => 'updated',
    957957            ) );
    958958        } else {
    959             WordCamp_Payments::log( $post->ID, sprintf( 'Request updated by %s.', $user->display_name ), array(
     959            WordCamp_Budgets::log( $post->ID, sprintf( 'Request updated by %s.', $user->display_name ), array(
    960960                'user_id' => $user->ID,
    961961                'action' => 'updated',
     
    982982        }
    983983
    984         remove_action( 'save_post', array( $this, 'save_payment' ), 10, 2 ); // avoid infinite recursion
     984        remove_action( 'save_post', array( $this, 'save_payment' ), 10 ); // avoid infinite recursion
    985985
    986986        foreach( $files as $file_id ) {
Note: See TracChangeset for help on using the changeset viewer.