Making WordPress.org

Changeset 7736


Ignore:
Timestamp:
10/17/2018 02:36:35 PM (7 years ago)
Author:
vedjain
Message:

WordCamp: Filter error to reduce noise.

Currently we are getting lots of noise in slack notifications, most of which are Constant already defined category errors and can be ignored for now. This filter is also used in wporg slack notifications.

File:
1 edited

Legend:

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

    r7735 r7736  
    436436add_filter( 'map_meta_cap', 'wcorg_central_modify_export_caps', 10, 2 );
    437437
    438     /**
    439     * Error handler to send errors to slack.
    440     */
     438/**
     439 * Error handler to send errors to slack.
     440 */
    441441function send_error_to_slack( $err_no, $err_msg, $file, $line ) {
     442
     443    if ( $err_no !== E_ERROR && $err_no !== E_USER_ERROR && $err_no !== E_CORE_ERROR && $err_no !== E_COMPILE_ERROR ) {
     444        return;
     445    }
    442446
    443447    $domain = get_site_url();
Note: See TracChangeset for help on using the changeset viewer.