Make WordPress Core


Ignore:
Timestamp:
09/20/2020 03:53:52 PM (6 years ago)
Author:
johnbillion
Message:

Docs: Inline documentation improvements for media related functions and hooks.

See #47364, #50768

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/image.php

    r49017 r49020  
    967967
    968968/**
    969  * Retrieve the path or url of an attachment's attached file.
     969 * Retrieve the path or URL of an attachment's attached file.
    970970 *
    971971 * If the attached file is not present on the local filesystem (usually due to replication plugins),
    972  * then the url of the file is returned if url fopen is supported.
     972 * then the URL of the file is returned if `allow_url_fopen` is supported.
    973973 *
    974974 * @since 3.4.0
    … …  
    990990
    991991                                /**
    992                                  * Filters the path to the current image.
     992                                 * Filters the path to an attachment's file when editing the image.
    993993                                 *
    994994                                 * The filter is evaluated for all image sizes except 'full'.
    … …  
    10051005        } elseif ( function_exists( 'fopen' ) && ini_get( 'allow_url_fopen' ) ) {
    10061006                /**
    1007                  * Filters the image URL if not in the local filesystem.
    1008                  *
    1009                  * The filter is only evaluated if fopen is enabled on the server.
     1007                 * Filters the path to an attachment's URL when editing the image.
     1008                 *
     1009                 * The filter is only evaluated if the file isn't stored locally and `allow_url_fopen` is enabled on the server.
    10101010                 *
    10111011                 * @since 3.1.0
Note: See TracChangeset for help on using the changeset viewer.