Make WordPress Core

Changeset 56256


Ignore:
Timestamp:
07/18/2023 07:28:47 AM (18 months ago)
Author:
audrasjb
Message:

Docs: Fix various incorrect @since mentions.

Props costdev, mukesh27.
Fixes #58834.
See #57840.

Location:
trunk/src/wp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-classic-to-block-menu-converter.php

    r56052 r56256  
    1010 * Converts a Classic Menu to Block Menu blocks.
    1111 *
    12  * @since 6.3.0.
     12 * @since 6.3.0
    1313 * @access public
    1414 */
     
    1818     * Converts a Classic Menu to blocks.
    1919     *
    20      * @since 6.3.0.
     20     * @since 6.3.0
    2121     *
    2222     * @param WP_Term $menu The Menu term object of the menu to convert.
     
    5959     * Returns an array of menu items grouped by the id of the parent menu item.
    6060     *
    61      * @since 6.3.0.
     61     * @since 6.3.0
    6262     *
    6363     * @param array $menu_items An array of menu items.
     
    7777     * Turns menu item data into a nested array of parsed blocks
    7878     *
    79      * @since 6.3.0.
     79     * @since 6.3.0
    8080     *
    8181     * @param array $menu_items               An array of menu items that represent
  • trunk/src/wp-includes/class-wp-navigation-fallback.php

    r56202 r56256  
    1414 *
    1515 * @access public
    16  * @since 6.3.0.
     16 * @since 6.3.0
    1717 */
    1818class WP_Navigation_Fallback {
     
    2121     * Gets (and/or creates) an appropriate fallback Navigation Menu.
    2222     *
    23      * @since 6.3.0.
     23     * @since 6.3.0
    2424     *
    2525     * @return WP_Post|null the fallback Navigation Post or null.
     
    6262     * Finds the most recently published `wp_navigation` post type.
    6363     *
    64      * @since 6.3.0.
     64     * @since 6.3.0
    6565     *
    6666     * @return WP_Post|null the first non-empty Navigation or null.
     
    9191     * Creates a Navigation Menu post from a Classic Menu.
    9292     *
    93      * @since 6.3.0.
     93     * @since 6.3.0
    9494     *
    9595     * @return int|WP_Error The post ID of the default fallback menu or a WP_Error object.
     
    128128     * Determine the most appropriate classic navigation menu to use as a fallback.
    129129     *
    130      * @since 6.3.0.
     130     * @since 6.3.0
    131131     *
    132132     * @return WP_Term|null The most appropriate classic navigation menu to use as a fallback.
     
    158158     * Sorts the classic menus and returns the most recently created one.
    159159     *
    160      * @since 6.3.0.
     160     * @since 6.3.0
    161161     *
    162162     * @param WP_Term[] $classic_nav_menus Array of classic nav menu term objects.
     
    177177     * Returns the classic menu with the slug `primary` if it exists.
    178178     *
    179      * @since 6.3.0.
     179     * @since 6.3.0
    180180     *
    181181     * @param WP_Term[] $classic_nav_menus Array of classic nav menu term objects.
     
    197197     * if it exists.
    198198     *
    199      * @since 6.3.0.
     199     * @since 6.3.0
    200200     *
    201201     * @return WP_Term|null The classic nav menu assigned to the `primary` location or null.
     
    218218     * Creates a default Navigation Block Menu fallback.
    219219     *
    220      * @since 6.3.0.
     220     * @since 6.3.0
    221221     *
    222222     * @return int|WP_Error The post ID of the default fallback menu or a WP_Error object.
     
    244244     * Gets the rendered markup for the default fallback blocks.
    245245     *
    246      * @since 6.3.0.
     246     * @since 6.3.0
    247247     *
    248248     * @return string default blocks markup to use a the fallback.
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-navigation-fallback-controller.php

    r56052 r56256  
    1313 * REST Controller to fetch a fallback Navigation Block Menu. If needed it creates one.
    1414 *
    15  * @since 6.3.0.
     15 * @since 6.3.0
    1616 */
    1717class WP_REST_Navigation_Fallback_Controller extends WP_REST_Controller {
     
    2020     * The Post Type for the Controller
    2121     *
    22      * @since 6.3.0.
     22     * @since 6.3.0
    2323     *
    2424     * @var string
     
    2929     * Constructs the controller.
    3030     *
    31      * @since 6.3.0.
     31     * @since 6.3.0
    3232     */
    3333    public function __construct() {
     
    4040     * Registers the controllers routes.
    4141     *
    42      * @since 6.3.0.
     42     * @since 6.3.0
    4343     *
    4444     * @return void
     
    6565     * Checks if a given request has access to read fallbacks.
    6666     *
    67      * @since 6.3.0.
     67     * @since 6.3.0
    6868     *
    6969     * @param WP_REST_Request $request Full details about the request.
     
    9797     * Gets the most appropriate fallback Navigation Menu.
    9898     *
    99      * @since 6.3.0.
     99     * @since 6.3.0
    100100     *
    101101     * @param WP_REST_Request $request Full details about the request.
     
    117117     * Retrieves the fallbacks' schema, conforming to JSON Schema.
    118118     *
    119      * @since 6.3.0.
     119     * @since 6.3.0
    120120     *
    121121     * @return array Item schema data.
     
    146146     * Matches the post data to the schema we want.
    147147     *
    148      * @since 6.3.0.
     148     * @since 6.3.0
    149149     *
    150150     * @param WP_Post         $item     The wp_navigation Post object whose response is being prepared.
     
    178178     * Prepares the links for the request.
    179179     *
    180      * @since 6.3.0.
     180     * @since 6.3.0
    181181     *
    182182     * @param WP_Post $post the Navigation Menu post object.
Note: See TracChangeset for help on using the changeset viewer.