Make WordPress Core

Ticket #41869: 41869.patch

File 41869.patch, 1.2 KB (added by adnan.limdi, 7 years ago)

Add static keyword in functions descriptions and add missing functions descriptions.

  • class-wp-editor.php

     
    788788        }
    789789
    790790        /**
     791     * @static
    791792         * Enqueue all editor scripts.
    792793         * For use when the editor is going to be initialized after page load.
    793794         *
     
    812813        }
    813814
    814815        /**
     816     * @static
    815817         * Print (output) all editor scripts and default settings.
    816818         * For use when the editor is going to be initialized after page load.
    817819         *
     
    907909                self::wp_link_dialog();
    908910        }
    909911
     912
     913    /**
     914     * @static
     915     * Returns the Mce locale settings.
     916     * @return string
     917     */
    910918        public static function get_mce_locale() {
    911919                if ( empty( self::$mce_locale ) ) {
    912920                        $mce_locale = get_user_locale();
     
    916924                return self::$mce_locale;
    917925        }
    918926
     927        /**
     928     * @static
     929         * Returns base url for tiny mce.
     930         * @return string|void
     931         */
    919932        public static function get_baseurl() {
    920933                if ( empty( self::$baseurl ) ) {
    921934                        self::$baseurl = includes_url( 'js/tinymce' );
     
    925938        }
    926939
    927940        /**
     941     * @static
    928942         * Returns the default TinyMCE settings.
    929943         * Doesn't include plugins, buttons, editor selector.
    930944         *