Changeset 6714
- Timestamp:
- 02/22/2018 04:41:31 PM (7 years ago)
- Location:
- sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/camptix-tweaks/camptix-tweaks.php
r6575 r6714 3 3 namespace WordCamp\CampTix_Tweaks; 4 4 use CampTix_Plugin; 5 use WP_Post; 5 6 6 7 defined( 'WPINC' ) or die(); … … 21 22 add_filter( 'camptix_name_order', __NAMESPACE__ . '\set_name_order' ); 22 23 add_action( 'camptix_form_edit_attendee_custom_error_flags', __NAMESPACE__ . '\disable_attendee_edits' ); 24 add_action( 'transition_post_status', __NAMESPACE__ . '\log_publish_to_cancel', 10, 3 ); 23 25 24 26 // Miscellaneous 27 add_filter( 'camptix_beta_features_enabled', '__return_true' ); 25 28 add_action( 'camptix_nt_file_log', '__return_false' ); 29 add_action( 'init', __NAMESPACE__ . '\camptix_debug', 9 ); // CampTix does this at 10. 26 30 add_filter( 'camptix_default_addons', __NAMESPACE__ . '\load_addons' ); 27 31 add_filter( 'camptix_capabilities', __NAMESPACE__ . '\modify_capabilities' ); … … 473 477 474 478 /** 479 * Log when published attendees are cancelled. 480 * 481 * @param string $to 482 * @param string $from 483 * @param WP_Post $post 484 */ 485 function log_publish_to_cancel( $to, $from, $post ) { 486 /** @var $camptix CampTix_Plugin */ 487 global $camptix; 488 489 if ( 'tix_attendee' !== $post->post_type || $to === $from ) { 490 return; 491 } 492 493 if ( 'publish' === $from && 'cancel' === $to ) { 494 $camptix->log( 'Publish to cancel transition, possible bug.', $post->ID ); 495 } 496 } 497 498 /** 499 * Enable debugging info for super admins. 500 * 501 * It's not done for others because it can expose sensitive information. 502 */ 503 function camptix_debug() { 504 if ( ! current_user_can( 'manage_network' ) ) { 505 return; 506 } 507 508 add_filter( 'camptix_debug', '__return_true' ); 509 } 510 511 /** 475 512 * Enable addons that are disabled by default 476 513 * -
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wcorg-network-plugin-control.php
r5800 r6714 33 33 'camptix-badge-generator/bootstrap.php', 34 34 'camptix/camptix.php', 35 'camptix-extras/camptix-extras.php',36 35 'camptix-network-tools/camptix-network-tools.php', 37 36 'custom-content-width/custom-content-width.php',
Note: See TracChangeset
for help on using the changeset viewer.