Ticket #37321: 37321.1.diff
| File 37321.1.diff, 1.7 KB (added by , 10 years ago) |
|---|
-
src/wp-includes/general-template.php
2884 2884 } 2885 2885 2886 2886 /** 2887 * Whether the user should have a WYSIWIGeditor.2887 * Whether the user can access the WYSIWYG visual editor. 2888 2888 * 2889 * Checks that the user requires a WYSIW IGeditor and that the editor is2889 * Checks that the user requires a WYSIWYG visual editor and that the editor is 2890 2890 * supported in the users browser. 2891 2891 * 2892 2892 * @since 2.0.0 2893 2893 * 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 2900 2900 * 2901 2901 * @return bool 2902 2902 */ … … 2916 2916 } 2917 2917 2918 2918 /** 2919 * Filters whether the user can access the rich (Visual)editor.2919 * Filters whether the user can access the WYSIWYG visual editor. 2920 2920 * 2921 2921 * @since 2.1.0 2922 2922 * 2923 * @param bool $wp_rich_edit Whether the user can access t o the rich (Visual)editor.2923 * @param bool $wp_rich_edit Whether the user can access the WYSIWYG visual editor. 2924 2924 */ 2925 2925 return apply_filters( 'user_can_richedit', $wp_rich_edit ); 2926 2926 }