WordPress.org

Make WordPress Core

Ticket #8805: 8805-functions.diff

File 8805-functions.diff, 572 bytes (added by rmccue, 5 years ago)

Change update_option() documentation to the right order for the filter

  • functions.php

     
    469469 * When the option is updated, then the filter named 
    470470 * 'update_option_$option_name', with the $option_name as the $option_name 
    471471 * parameter value, will be called. The hook should accept two parameters, the 
    472  * first is the old parameter and the second is the new parameter. 
     472 * first is the new parameter and the second is the old parameter. 
    473473 * 
    474474 * @since 1.0.0 
    475475 * @package WordPress