Make WordPress Core


Ignore:
Timestamp:
04/03/2022 11:43:07 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Use correct format for multi-line comments in the_block_editor_meta_boxes().

Follow-up to [44131], [44260].

See #54729.

File:
1 edited

Legend:

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

    r53052 r53056  
    10701070
    10711071/**
    1072  * Replace hrefs of attachment anchors with up-to-date permalinks.
     1072 * Replaces hrefs of attachment anchors with up-to-date permalinks.
    10731073 *
    10741074 * @since 2.3.0
     
    13621362     */
    13631363    $classes = apply_filters( "postbox_classes_{$screen_id}_{$box_id}", $classes );
     1364
    13641365    return implode( ' ', $classes );
    13651366}
     
    23372338    }
    23382339
    2339     /**
     2340    /*
    23402341     * Sadly we probably cannot add this data directly into editor settings.
    23412342     *
    2342      * Some meta boxes need admin_head to fire for meta box registry.
    2343      * admin_head fires after admin_enqueue_scripts, which is where we create our
    2344      * editor instance.
     2343     * Some meta boxes need `admin_head` to fire for meta box registry.
     2344     * `admin_head` fires after `admin_enqueue_scripts`, which is where we create
     2345     * our editor instance.
    23452346     */
    23462347    $script = 'window._wpLoadBlockEditor.then( function() {
     
    23502351    wp_add_inline_script( 'wp-edit-post', $script );
    23512352
    2352     /**
    2353      * When `wp-edit-post` is output in the `<head>`, the inline script needs to be manually printed. Otherwise,
    2354      * meta boxes will not display because inline scripts for `wp-edit-post` will not be printed again after this point.
     2353    /*
     2354     * When `wp-edit-post` is output in the `<head>`, the inline script needs to be manually printed.
     2355     * Otherwise, meta boxes will not display because inline scripts for `wp-edit-post`
     2356     * will not be printed again after this point.
    23552357     */
    23562358    if ( wp_script_is( 'wp-edit-post', 'done' ) ) {
     
    23582360    }
    23592361
    2360     /**
    2361      * If the 'postcustom' meta box is enabled, then we need to perform some
    2362      * extra initialization on it.
     2362    /*
     2363     * If the 'postcustom' meta box is enabled, then we need to perform
     2364     * some extra initialization on it.
    23632365     */
    23642366    $enable_custom_fields = (bool) get_user_meta( get_current_user_id(), 'enable_custom_fields', true );
     2367
    23652368    if ( $enable_custom_fields ) {
    23662369        $script = "( function( $ ) {
     
    24062409
    24072410    /*
    2408      * Some meta boxes hook into these actions to add hidden input fields in the classic post form. For backwards
    2409      * compatibility, we can capture the output from these actions, and extract the hidden input fields.
     2411     * Some meta boxes hook into these actions to add hidden input fields in the classic post form.
     2412     * For backward compatibility, we can capture the output from these actions,
     2413     * and extract the hidden input fields.
    24102414     */
    24112415    ob_start();
Note: See TracChangeset for help on using the changeset viewer.