Make WordPress Core


Ignore:
Timestamp:
07/09/2021 10:49:15 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Some documentation improvements for wp_check_widget_editor_deps():

  • Add missing short description for the function.
  • Correct function names in _doing_it_wrong() calls.
  • Document the usage of $wp_scripts and $wp_styles globals.
  • Update syntax for multi-line comment per the documentation standards.

Follow-up to [51387], [51388].

See #53437, #53569.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r51387 r51390  
    383383        );
    384384
    385         // wp-editor module is exposed as window.wp.editor
    386         // Problem: there is quite some code expecting window.wp.oldEditor object available under window.wp.editor
    387         // Solution: fuse the two objects together to maintain backward compatibility
    388         // For more context, see https://github.com/WordPress/gutenberg/issues/33203
     385        /*
     386         * wp-editor module is exposed as window.wp.editor.
     387         * Problem: there is quite some code expecting window.wp.oldEditor object available under window.wp.editor.
     388         * Solution: fuse the two objects together to maintain backward compatibility.
     389         * For more context, see https://github.com/WordPress/gutenberg/issues/33203.
     390         */
    389391        $scripts->add_inline_script(
    390392                'wp-editor',
     
    22702272 *
    22712273 * @since 5.8.0
    2272  *
    2273  * @return void
    22742274 */
    22752275function wp_enqueue_global_styles() {
Note: See TracChangeset for help on using the changeset viewer.