Make WordPress Core

Ticket #48255: 48255-deprecated-hooks-use-short-docblock-style.patch

File 48255-deprecated-hooks-use-short-docblock-style.patch, 2.6 KB (added by jrf, 5 years ago)

Documentation: use short docblock style comments for "filter documented elsewhere" comments

  • src/wp-includes/script-loader.php

    From 124c0ec6dcb7394b84e710fa2936c3e65822ad8f Mon Sep 17 00:00:00 2001
    From: jrfnl <jrfnl@users.noreply.github.com>
    Date: Tue, 8 Oct 2019 06:39:38 +0200
    Subject: [PATCH] Documentation: use short docblock style comments for "filter
     documented elsewhere" comments
    
    ---
     src/wp-includes/script-loader.php | 14 +++++++-------
     1 file changed, 7 insertions(+), 7 deletions(-)
    
    diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php
    index ee36191ec2..e2cacdf426 100644
    a b function wp_tinymce_inline_scripts() { 
    777777                'wpview',
    778778        );
    779779
    780         /* This filter is documented in wp-includes/class-wp-editor.php */
     780        /** This filter is documented in wp-includes/class-wp-editor.php */
    781781        $tinymce_plugins = apply_filters( 'tiny_mce_plugins', $tinymce_plugins, 'classic-block' );
    782782        $tinymce_plugins = array_unique( $tinymce_plugins );
    783783
    function wp_tinymce_inline_scripts() { 
    806806                'wp_adv',
    807807        );
    808808
    809         /* This filter is documented in wp-includes/class-wp-editor.php */
     809        /** This filter is documented in wp-includes/class-wp-editor.php */
    810810        $toolbar1 = apply_filters( 'mce_buttons', $toolbar1, 'classic-block' );
    811811
    812812        $toolbar2 = array(
    function wp_tinymce_inline_scripts() { 
    823823                'wp_help',
    824824        );
    825825
    826         /* This filter is documented in wp-includes/class-wp-editor.php */
     826        /** This filter is documented in wp-includes/class-wp-editor.php */
    827827        $toolbar2 = apply_filters( 'mce_buttons_2', $toolbar2, 'classic-block' );
    828         /* This filter is documented in wp-includes/class-wp-editor.php */
     828        /** This filter is documented in wp-includes/class-wp-editor.php */
    829829        $toolbar3 = apply_filters( 'mce_buttons_3', array(), 'classic-block' );
    830         /* This filter is documented in wp-includes/class-wp-editor.php */
     830        /** This filter is documented in wp-includes/class-wp-editor.php */
    831831        $toolbar4 = apply_filters( 'mce_buttons_4', array(), 'classic-block' );
    832         /* This filter is documented in wp-includes/class-wp-editor.php */
     832        /** This filter is documented in wp-includes/class-wp-editor.php */
    833833        $external_plugins = apply_filters( 'mce_external_plugins', array(), 'classic-block' );
    834834
    835835        $tinymce_settings = array(
    function wp_tinymce_inline_scripts() { 
    850850                array_merge( $tinymce_settings, $editor_settings['tinymce'] );
    851851        }
    852852
    853         /* This filter is documented in wp-includes/class-wp-editor.php */
     853        /** This filter is documented in wp-includes/class-wp-editor.php */
    854854        $tinymce_settings = apply_filters( 'tiny_mce_before_init', $tinymce_settings, 'classic-block' );
    855855
    856856        // Do "by hand" translation from PHP array to js object.