Make WordPress Core

Changeset 58073


Ignore:
Timestamp:
05/01/2024 11:59:03 PM (5 hours ago)
Author:
johnbillion
Message:

Docs: Various docblock corrections.

See #60699

Location:
trunk
Files:
8 edited

Legend:

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

    r57714 r58073  
    918918 * @param bool         $compatible_php   The result of a PHP compatibility check.
    919919 * @param bool         $compatible_wp    The result of a WP compatibility check.
    920  * @return string $button The markup for the dependency row button.
     920 * @return string The markup for the dependency row button.
    921921 */
    922922function wp_get_plugin_action_button( $name, $data, $compatible_php, $compatible_wp ) {
  • trunk/src/wp-includes/block-bindings.php

    r57641 r58073  
    7777 *
    7878 *     @type string   $label                   The label of the source.
    79  *     @type callback $get_value_callback      A callback executed when the source is processed during block rendering.
     79 *     @type callable $get_value_callback      A callback executed when the source is processed during block rendering.
    8080 *                                             The callback should have the following signature:
    8181 *
  • trunk/src/wp-includes/class-wp-block-bindings-registry.php

    r58027 r58073  
    8080     *
    8181     *     @type string   $label                   The label of the source.
    82      *     @type callback $get_value_callback      A callback executed when the source is processed during block rendering.
     82     *     @type callable $get_value_callback      A callback executed when the source is processed during block rendering.
    8383     *                                             The callback should have the following signature:
    8484     *
  • trunk/src/wp-includes/class-wp-block-type.php

    r58024 r58073  
    303303     * @since 6.3.0 Added the `selectors` property.
    304304     * @since 6.4.0 Added the `block_hooks` property.
    305      * @since 6.5.0 Added the `view_style_handles` property.
     305     * @since 6.5.0 Added the `allowed_blocks`, `variation_callback`, and `view_style_handles` properties.
    306306     *
    307307     * @see register_block_type()
     
    622622     * @since 6.5.0
    623623     *
    624      * @return array[]
     624     * @return string[]
    625625     */
    626626    public function get_uses_context() {
     
    630630         * @since 6.5.0
    631631         *
    632          * @param array         $uses_context Array of registered uses context for a block type.
     632         * @param string[]      $uses_context Array of registered uses context for a block type.
    633633         * @param WP_Block_Type $block_type   The full block type object.
    634634         */
  • trunk/src/wp-includes/class-wp-plugin-dependencies.php

    r57791 r58073  
    554554     *
    555555     * @since 6.5.0
    556      *
    557      * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
    558556     */
    559557    protected static function read_dependencies_from_plugin_headers() {
  • trunk/src/wp-includes/fonts.php

    r57902 r58073  
    1616 *     Optional. The font-families and their font faces. Default empty array.
    1717 *
    18  *     @type array {
     18 *     @type array ...$0 {
    1919 *         An indexed or associative (keyed by font-family) array of font variations for this font-family.
    2020 *         Each font face has the following structure.
    2121 *
    22  *         @type array {
     22 *         @type array ...$0 {
     23 *             The font face properties.
     24 *
    2325 *             @type string          $font-family             The font-family property.
    2426 *             @type string|string[] $src                     The URL(s) to each resource containing the font data.
  • trunk/src/wp-includes/fonts/class-wp-font-utils.php

    r57865 r58073  
    222222     * @since 6.5.0
    223223     *
    224      * @param mixed $value     The value to sanitize.
    225      * @param mixed $sanitizer The sanitizer function to apply.
     224     * @param mixed    $value     The value to sanitize.
     225     * @param callable $sanitizer The sanitizer function to apply.
    226226     * @return mixed The sanitized value.
    227227     */
  • trunk/tests/phpunit/tests/user/capabilities.php

    r57987 r58073  
    455455    /**
    456456     * Test the tests. The administrator role has all primitive capabilities, therefore the
    457      * primitive capabilitity tests can be tested by checking that the list of tested
     457     * primitive capability tests can be tested by checking that the list of tested
    458458     * capabilities matches those of the administrator role.
    459459     *
Note: See TracChangeset for help on using the changeset viewer.