Changeset 10497 for trunk/src/bp-core/bp-core-avatars.php
- Timestamp:
- 02/03/2016 05:01:13 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-avatars.php
r10496 r10497 13 13 /** 14 14 * Set up the constants we need for avatar support. 15 * 16 * @since 1.2.0 15 17 */ 16 18 function bp_core_set_avatar_constants() { … … 105 107 * add_filter( 'bp_core_fetch_avatar_no_grav', '__return_true' ); 106 108 * 109 * @since 1.1.0 107 110 * @since 2.4.0 Added 'extra_attr', 'scheme', 'rating' and 'force_default' for $args. 108 111 * These are inherited from WordPress 4.2.0. See {@link get_avatar()}. … … 634 637 $url_args['r'] = strtolower( $params['rating'] ); 635 638 } 636 // Only set default image if 'Gravatar Logo' is not requested 639 // Only set default image if 'Gravatar Logo' is not requested. 637 640 if ( 'gravatar_default' !== $default_grav ) { 638 641 $url_args['d'] = $default_grav; … … 674 677 /** 675 678 * Delete an existing avatar. 679 * 680 * @since 1.1.0 676 681 * 677 682 * @param array|string $args { … … 819 824 * location. 820 825 * 826 * @since 1.1.0 827 * 821 828 * @see bp_core_check_avatar_upload() 822 829 * @see bp_core_check_avatar_type() … … 1117 1124 * crop_x - The horizontal starting point of the crop 1118 1125 * crop_y - The vertical starting point of the crop 1126 * 1127 * @since 1.1.0 1119 1128 * 1120 1129 * @param array|string $args { … … 1318 1327 * See 'get_avatar' filter description in wp-includes/pluggable.php. 1319 1328 * 1329 * @since 1.1.0 1320 1330 * @since 2.4.0 Added $args parameter to coincide with WordPress 4.2.0. 1321 1331 * … … 1414 1424 * Is the current avatar upload error-free? 1415 1425 * 1426 * @since 1.0.0 1427 * 1416 1428 * @param array $file The $_FILES array. 1417 1429 * @return bool True if no errors are found. False if there are errors. … … 1426 1438 /** 1427 1439 * Is the file size of the current avatar upload permitted? 1440 * 1441 * @since 1.0.0 1428 1442 * 1429 1443 * @param array $file The $_FILES array. … … 1478 1492 * 1479 1493 * Permitted file types are JPG, GIF and PNG. 1494 * 1495 * @since 1.0.0 1480 1496 * 1481 1497 * @param array $file The $_FILES array. … … 1566 1582 * Get the absolute upload path for the WP installation. 1567 1583 * 1584 * @since 1.2.0 1585 * 1568 1586 * @uses bp_core_get_upload_dir() To get upload directory info. 1569 1587 * … … 1584 1602 /** 1585 1603 * Get the raw base URL for root site upload location. 1604 * 1605 * @since 1.2.0 1586 1606 * 1587 1607 * @uses bp_core_get_upload_dir() To get upload directory info. … … 1850 1870 * @since 2.2.0 1851 1871 * 1852 * @param WP_Query|null $posts_query the main query object.1853 *1854 1872 * @uses bp_is_group_create() 1855 1873 * @uses bp_is_group_admin_page() … … 1857 1875 * @uses bp_action_variable() to check for the group's avatar creation step 1858 1876 * @uses bp_is_user_change_avatar() to check for the user's change profile screen 1877 * 1878 * @param WP_Query|null $posts_query The main query object. 1859 1879 */ 1860 1880 function bp_core_avatar_reset_query( $posts_query = null ) { … … 1934 1954 * @global $is_safari 1935 1955 * @global $is_IE 1956 * 1936 1957 * @return bool True to load the Webcam Avatar UI part. False otherwise. 1937 1958 */
Note: See TracChangeset
for help on using the changeset viewer.