Changeset 10899 for trunk/src/bp-core/bp-core-avatars.php
- Timestamp:
- 06/23/2016 06:31:58 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-avatars.php
r10825 r10899 649 649 * 650 650 * @param string $default_grav The avatar default. 651 * @param array $paramsThe avatar's data.651 * @param array $params The avatar's data. 652 652 */ 653 653 $default_grav = apply_filters( 'bp_core_avatar_default', $default_grav, $params ); … … 727 727 * @since 2.5.1 728 728 * 729 * @param bool $value Whether or not to delete the avatar.729 * @param bool $value Whether or not to delete the avatar. 730 730 * @param array $args { 731 731 * Array of function parameters. … … 806 806 * @since 2.3.0 807 807 * 808 * @return string|null A json object containing success data if the avatar was deleted808 * @return string|null A JSON object containing success data if the avatar was deleted, 809 809 * error message otherwise. 810 810 */ … … 949 949 * @since 2.3.0 950 950 * 951 * @return string|null A jsonobject containing success data if the upload succeeded952 * 951 * @return string|null A JSON object containing success data if the upload succeeded 952 * error message otherwise. 953 953 */ 954 954 function bp_avatar_ajax_upload() { … … 960 960 /** 961 961 * Sending the json response will be different if 962 * the current Plupload runtime is html4 962 * the current Plupload runtime is html4. 963 963 */ 964 964 $is_html4 = false; … … 1171 1171 /** 1172 1172 * Crop an uploaded avatar. 1173 *1174 * $args has the following parameters:1175 * object - What component the avatar is for, e.g. "user"1176 * avatar_dir The absolute path to the avatar1177 * item_id - Item ID1178 * original_file - The absolute path to the original avatar file1179 * crop_w - Crop width1180 * crop_h - Crop height1181 * crop_x - The horizontal starting point of the crop1182 * crop_y - The vertical starting point of the crop1183 1173 * 1184 1174 * @since 1.1.0 … … 1247 1237 * @since 2.3.0 1248 1238 * 1249 * @return string|null A jsonobject containing success data if the crop/capture succeeded1250 * 1239 * @return string|null A JSON object containing success data if the crop/capture succeeded 1240 * error message otherwise. 1251 1241 */ 1252 1242 function bp_avatar_ajax_set() { … … 1512 1502 * 1513 1503 * @since 2.3.0 1504 * 1505 * @return array 1514 1506 */ 1515 1507 function bp_core_get_allowed_avatar_types() { … … 1538 1530 * 1539 1531 * @since 2.3.0 1532 * 1533 * @return array 1540 1534 */ 1541 1535 function bp_core_get_allowed_avatar_mimes() { … … 1944 1938 * notices, we need to make sure this 'week' query var is reset to 0. 1945 1939 * 1946 * @since 1940 * @since 2.2.0 1947 1941 * 1948 1942 * @param WP_Query|null $posts_query The main query object. … … 1978 1972 * Checks whether Avatar UI should be loaded. 1979 1973 * 1980 * @since 1974 * @since 2.3.0 1981 1975 * 1982 1976 * @return bool True if Avatar UI should load, false otherwise. … … 2010 2004 * - Completely disable the avatar UI introduced in 2.3 (eg: __return_false()) 2011 2005 * 2012 * @since 2006 * @since 2.3.0 2013 2007 * 2014 2008 * @param bool $retval Whether or not to load the Avatar UI. … … 2020 2014 * Checks whether the Webcam Avatar UI part should be loaded. 2021 2015 * 2022 * @since 2016 * @since 2.3.0 2023 2017 * 2024 2018 * @global $is_safari … … 2041 2035 * Bail when the browser does not support getUserMedia. 2042 2036 * 2043 * @see 2037 * @see http://caniuse.com/#feat=stream 2044 2038 */ 2045 2039 if ( $is_safari || $is_IE || ( $is_chrome && ! is_ssl() ) ) { … … 2061 2055 * Template function to load the Avatar UI javascript templates. 2062 2056 * 2063 * @since 2057 * @since 2.3.0 2064 2058 */ 2065 2059 function bp_avatar_get_templates() { … … 2077 2071 * help users to get the avatar UI. 2078 2072 * 2079 * @since 2073 * @since 2.3.0 2080 2074 */ 2081 2075 function bp_avatar_template_check() {
Note: See TracChangeset
for help on using the changeset viewer.