WordPress.org

Make WordPress Core

Ticket #37321: 37321.1.diff

File 37321.1.diff, 1.7 KB (added by gma992, 4 years ago)
  • src/wp-includes/general-template.php

     
    28842884}
    28852885
    28862886/**
    2887  * Whether the user should have a WYSIWIG editor.
     2887 * Whether the user can access the WYSIWYG visual editor.
    28882888 *
    2889  * Checks that the user requires a WYSIWIG editor and that the editor is
     2889 * Checks that the user requires a WYSIWYG visual editor and that the editor is
    28902890 * supported in the users browser.
    28912891 *
    28922892 * @since 2.0.0
    28932893 *
    2894  * @global bool $wp_rich_edit
    2895  * @global bool $is_gecko
    2896  * @global bool $is_opera
    2897  * @global bool $is_safari
    2898  * @global bool $is_chrome
    2899  * @global bool $is_IE
     2894 * @global bool $wp_rich_edit   
     2895 * @global bool $is_gecko               Checks if the user is using a Gecko-based browser
     2896 * @global bool $is_opera               Checks if the user is using the Opera browser
     2897 * @global bool $is_safari              Checks if the user is using the Safari browser (AppleWebkit engine instead of Gecko-based)
     2898 * @global bool $is_chrome              Checks if the user is using the Chrome browser
     2899 * @global bool $is_IE                  Checks if the user is using the Internet Explorer browser
    29002900 *
    29012901 * @return bool
    29022902 */
     
    29162916        }
    29172917
    29182918        /**
    2919          * Filters whether the user can access the rich (Visual) editor.
     2919         * Filters whether the user can access the WYSIWYG visual editor.
    29202920         *
    29212921         * @since 2.1.0
    29222922         *
    2923          * @param bool $wp_rich_edit Whether the user can access to the rich (Visual) editor.
     2923         * @param bool $wp_rich_edit Whether the user can access the WYSIWYG visual editor.
    29242924         */
    29252925        return apply_filters( 'user_can_richedit', $wp_rich_edit );
    29262926}