Make WordPress Core


Ignore:
Timestamp:
11/19/2025 06:15:54 AM (7 months ago)
Author:
westonruter
Message:

Docs: Add missing descriptions and fix types for some @return tags.

Props huzaifaalmesbah, sabernhardt, westonruter.
See #64224.
Fixes #64262.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-theme-json-resolver.php

    r59338 r61270  
    682682     * @since 5.9.0
    683683     *
    684      * @return integer|null
     684     * @return int|null ID for a post of type `wp_global_styles`, or null if not available.
    685685     */
    686686    public static function get_user_global_styles_post_id() {
     
    705705     * @deprecated 6.2.0 Use wp_theme_has_theme_json() instead.
    706706     *
    707      * @return bool
     707     * @return bool Whether the active theme has a theme.json file.
    708708     */
    709709    public static function theme_has_support() {
     
    781781     * @param array  $variation Theme.json shaped style variation object.
    782782     * @param string $scope     Scope to check e.g. theme, block etc.
    783      * @return boolean
     783     * @return bool Whether the supplied style variation matches the provided scope.
    784784     */
    785785    private static function style_variation_has_scope( $variation, $scope ) {
     
    806806     *
    807807     * @param string $scope The scope or type of style variation to retrieve e.g. theme, block etc.
    808      * @return array
     808     * @return array The style variations defined by the theme.
    809809     */
    810810    public static function get_style_variations( $scope = 'theme' ) {
Note: See TracChangeset for help on using the changeset viewer.