[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Deprecated functions. 4 * 5 * @deprecated 6.0.0 6 */ 7 8 // Exit if accessed directly. 9 defined( 'ABSPATH' ) || exit; 10 11 /** 12 * Check if the current WordPress version is using Plupload 2.1.1 13 * 14 * Plupload 2.1.1 was introduced in WordPress 3.9. Our bp-plupload.js 15 * script requires it. So we need to make sure the current WordPress 16 * match with our needs. 17 * 18 * @since 2.3.0 19 * @since 3.0.0 This is always true. 20 * @deprecated 6.0.0 21 * 22 * @return bool Always true. 23 */ 24 function bp_attachments_is_wp_version_supported() { 25 _deprecated_function( __FUNCTION__, '6.0.0' ); 26 return true; 27 } 28 29 /** 30 * Setup the avatar upload directory for a user. 31 * 32 * @since 1.0.0 33 * @deprecated 6.0.0 34 * 35 * @package BuddyPress Core 36 * 37 * @param string $directory The root directory name. Optional. 38 * @param int $user_id The user ID. Optional. 39 * @return array Array containing the path, URL, and other helpful settings. 40 */ 41 function xprofile_avatar_upload_dir( $directory = 'avatars', $user_id = 0 ) { 42 _deprecated_function( __FUNCTION__, '6.0.0', 'bp_members_avatar_upload_dir()' ); 43 44 $avatar_dir = bp_members_avatar_upload_dir( $directory, $user_id ); 45 46 /** This filter is documented in wp-includes/deprecated.php */ 47 return apply_filters_deprecated( 'xprofile_avatar_upload_dir', array( $avatar_dir ), '6.0.0', 'bp_members_avatar_upload_dir' ); 48 } 49 50 /** 51 * This function runs when an action is set for a screen: 52 * example.com/members/andy/profile/change-avatar/ [delete-avatar] 53 * 54 * The function will delete the active avatar for a user. 55 * 56 * @since 1.0.0 57 * @deprecated 6.0.0 58 */ 59 function xprofile_action_delete_avatar() { 60 _deprecated_function( __FUNCTION__, '6.0.0', 'bp_members_action_delete_avatar()' ); 61 62 bp_members_action_delete_avatar(); 63 } 64 65 /** 66 * Displays the change cover image page. 67 * 68 * @since 2.4.0 69 * @deprecated 6.0.0 70 */ 71 function xprofile_screen_change_cover_image() { 72 _deprecated_function( __FUNCTION__, '6.0.0', 'bp_members_screen_change_cover_image()' ); 73 74 bp_members_screen_change_cover_image(); 75 } 76 77 /** 78 * Handles the uploading and cropping of a user avatar. Displays the change avatar page. 79 * 80 * @since 1.0.0 81 * @deprecated 6.0.0 82 */ 83 function xprofile_screen_change_avatar() { 84 _deprecated_function( __FUNCTION__, '6.0.0', 'bp_members_screen_change_avatar()' ); 85 86 bp_members_screen_change_avatar(); 87 } 88 89 /** 90 * Output the status of the current group in the loop. 91 * 92 * Either 'Public' or 'Private'. 93 * 94 * @since 1.0.0 95 * @deprecated 6.0.0 Not used anymore. 96 * 97 * @param object|bool $group Optional. Group object. 98 * Default: current group in loop. 99 */ 100 function bp_group_public_status( $group = false ) { 101 _deprecated_function( __FUNCTION__, '6.0' ); 102 } 103 /** 104 * Return the status of the current group in the loop. 105 * 106 * Either 'Public' or 'Private'. 107 * 108 * @since 1.0.0 109 * @deprecated 6.0.0 Not used anymore. 110 * 111 * @param object|bool $group Optional. Group object. 112 * Default: current group in loop. 113 * @return string 114 */ 115 function bp_get_group_public_status( $group = false ) { 116 _deprecated_function( __FUNCTION__, '6.0' ); 117 } 118 119 /** 120 * Output whether the current group in the loop is public. 121 * 122 * No longer used in BuddyPress. 123 * 124 * @deprecated 6.0.0 Not used anymore. 125 * 126 * @param object|bool $group Optional. Group object. 127 * Default: current group in loop. 128 */ 129 function bp_group_is_public( $group = false ) { 130 _deprecated_function( __FUNCTION__, '6.0' ); 131 } 132 /** 133 * Return whether the current group in the loop is public. 134 * 135 * No longer used in BuddyPress. 136 * 137 * @deprecated 6.0.0 Not used anymore. 138 * 139 * @param object|bool $group Optional. Group object. 140 * Default: current group in loop. 141 * @return mixed 142 */ 143 function bp_get_group_is_public( $group = false ) { 144 _deprecated_function( __FUNCTION__, '6.0' ); 145 } 146 147 /** 148 * Add illegal blog names to WP so that root components will not conflict with blog names on a subdirectory installation. 149 * 150 * For example, it would stop someone creating a blog with the slug "groups". 151 * 152 * @since 1.0.0 153 * @deprecated 6.0.0 154 */ 155 function bp_core_add_illegal_names() { 156 _deprecated_function( __FUNCTION__, '6.0' ); 157 158 update_site_option( 'illegal_names', get_site_option( 'illegal_names' ), array() ); 159 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Nov 21 01:00:57 2024 | Cross-referenced by PHPXref 0.7.1 |