Changeset 8141 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/sponsor-invoice.php
- Timestamp:
- 01/25/2019 03:51:59 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/sponsor-invoice.php
r6067 r8141 6 6 7 7 namespace WordCamp\Budgets\Sponsor_Invoices; 8 use WP_Post; 9 use WordCamp_Loader; 8 10 9 11 defined( 'WPINC' ) or die(); … … 244 246 * Render the Status metabox 245 247 * 246 * @param \WP_Post $post248 * @param WP_Post $post The invoice post 247 249 */ 248 250 function render_status_metabox( $post ) { 251 require_once( WP_PLUGIN_DIR . '/wcpt/wcpt-event/class-event-loader.php' ); 252 require_once( WP_PLUGIN_DIR . '/wcpt/wcpt-wordcamp/wordcamp-loader.php' ); 253 249 254 wp_nonce_field( 'status', 'status_nonce' ); 250 255 251 256 $delete_text = EMPTY_TRASH_DAYS ? esc_html__( 'Move to Trash' ) : esc_html__( 'Delete Permanently' ); 257 $wordcamp = get_wordcamp_post(); 252 258 253 259 /* … … 269 275 } 270 276 277 $allowed_submit_statuses = WordCamp_Loader::get_after_contract_statuses(); 271 278 $current_user_can_edit_request = in_array( $post->post_status, $allowed_edit_statuses, true ); 279 $current_user_can_submit_request = $wordcamp && in_array( $wordcamp->post_status, $allowed_submit_statuses, true ); 272 280 273 281 require_once( dirname( __DIR__ ) . '/views/sponsor-invoice/metabox-status.php' );
Note: See TracChangeset
for help on using the changeset viewer.