Changeset 9860 for trunk/src/bp-core/bp-core-avatars.php
- Timestamp:
- 05/10/2015 12:24:24 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-avatars.php
r9828 r9860 1839 1839 * @since BuddyPress (2.3.0) 1840 1840 * 1841 * @global $is_safari 1842 * @global $is_IE 1841 1843 * @return bool True to load the Webcam Avatar UI part. False otherwise. 1842 1844 */ 1843 1845 function bp_avatar_use_webcam() { 1846 global $is_safari, $is_IE; 1847 1844 1848 /** 1845 1849 * Do not use the webcam feature for mobile devices … … 1847 1851 */ 1848 1852 if ( wp_is_mobile() ) { 1853 return false; 1854 } 1855 1856 /** 1857 * Bail when the browser does not support getUserMedia. 1858 * 1859 * @see http://caniuse.com/#feat=stream 1860 */ 1861 if ( $is_safari || $is_IE ) { 1849 1862 return false; 1850 1863 }
Note: See TracChangeset
for help on using the changeset viewer.