Make WordPress Core


Ignore:
Timestamp:
07/05/2020 02:44:37 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve documentation for various option functions.

Props andfinally, david.binda, SergeyBiryukov.
Fixes #49566.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-blogs.php

    r48200 r48320  
    399399 * @param string $option Name of option to add. Expected to not be SQL-escaped.
    400400 * @param mixed  $value  Optional. Option value, can be anything. Expected to not be SQL-escaped.
    401  * @return bool False if option was not added and true if option was added.
     401 * @return bool True if the option was added, false otherwise.
    402402 */
    403403function add_blog_option( $id, $option, $value ) {
     
    426426 * @param int    $id     A blog ID. Can be null to refer to the current blog.
    427427 * @param string $option Name of option to remove. Expected to not be SQL-escaped.
    428  * @return bool True, if option is successfully deleted. False on failure.
     428 * @return bool True if the option was deleted, false otherwise.
    429429 */
    430430function delete_blog_option( $id, $option ) {
     
    455455 * @param mixed  $value      The option value.
    456456 * @param mixed  $deprecated Not used.
    457  * @return bool True on success, false on failure.
     457 * @return bool True if the value was updated, false otherwise.
    458458 */
    459459function update_blog_option( $id, $option, $value, $deprecated = null ) {
Note: See TracChangeset for help on using the changeset viewer.