Skip to:
Content

bbPress.org

Ticket #3363: 3363.diff

File 3363.diff, 2.1 KB (added by immeet94, 19 months ago)
  • src/includes/admin/classes/class-bbp-admin.php

     
    933933                                printf( esc_html__( '%1$s - %2$s', 'bbpress' ), bbp_get_topic_id( $post->ID ), bbp_get_topic_title( $post->ID ) . "\n" );
    934934                        }
    935935                }
    936                 die();
     936                wp_die();
    937937        }
    938938
    939939        /**
     
    10131013                                printf( esc_html__( '%1$s - %2$s', 'bbpress' ), bbp_get_user_id( $user->ID ), bbp_get_user_nicename( $user->ID, array( 'force' => $user->user_nicename ) ) . "\n" );
    10141014                        }
    10151015                }
    1016                 die();
     1016                wp_die();
    10171017        }
    10181018
    10191019        /** About *****************************************************************/
  • src/includes/common/ajax.php

     
    155155        // Send back the JSON
    156156        @header( 'Content-type: application/json' );
    157157        echo json_encode( $response );
    158         die();
     158        wp_die();
    159159}
  • tests/phpunit/bootstrap.php

     
    1111
    1212// Bail if test suite cannot be found
    1313if ( ! file_exists( WP_TESTS_DIR . '/includes/functions.php' ) ) {
    14         die( "The WordPress PHPUnit test suite could not be found.\n" );
     14        wp_die( "The WordPress PHPUnit test suite could not be found.\n" );
    1515} else {
    1616        echo "Loading WordPress PHPUnit test suite...\n";
    1717        require( WP_TESTS_DIR . '/includes/functions.php' );
  • tests/phpunit/includes/define-constants.php

     
    5050
    5151// No test config found.
    5252} else {
    53         die( "wp-tests-config.php could not be found.\n" );
     53        wp_die( "wp-tests-config.php could not be found.\n" );
    5454}
    5555
    5656// Determine whether BuddyPress is present.