WordPress.org

Make WordPress Core

Ticket #47820: 47820.diff

File 47820.diff, 623 bytes (added by dinhtungdu, 2 years ago)
  • src/wp-includes/option.php

     
    276276 *
    277277 * If the option does not exist, then the option will be added with the option value,
    278278 * with an `$autoload` value of 'yes'.
     279 *
     280 * This function is designed to work with or without a logged-in user. In term
     281 * of security, plugin developers should check for the current user capabilities
     282 * before using this function.
    279283 *
    280284 * @since 1.0.0
    281285 * @since 4.2.0 The `$autoload` parameter was added.