Make WordPress Core

Changeset 41971


Ignore:
Timestamp:
10/23/2017 01:03:34 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Tests: Fix typo in test_do_action_with_multiple_callbacks_on_different_priorities().

Props withinboredom.
Fixes #42311.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/hooks/doAction.php

    r41261 r41971  
    7878
    7979        $hook->add_filter( $tag, $callback_one, $priority, $accepted_args );
    80         $hook->add_filter( $tag, $callback_two, $priority, $accepted_args );
     80        $hook->add_filter( $tag, $callback_two, $priority + 1, $accepted_args );
    8181        $hook->do_action( array( $arg ) );
    8282
Note: See TracChangeset for help on using the changeset viewer.