Ticket #8146: 8146.2.patch
File 8146.2.patch, 4.7 KB (added by , 5 years ago) |
---|
-
src/bp-core/deprecated/6.0.php
diff --git src/bp-core/deprecated/6.0.php src/bp-core/deprecated/6.0.php index 9fc68c35f..39b57748b 100644
function xprofile_screen_change_avatar() { 85 85 86 86 bp_members_screen_change_avatar(); 87 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 } -
src/bp-groups/bp-groups-template.php
diff --git src/bp-groups/bp-groups-template.php src/bp-groups/bp-groups-template.php index 63df2efb7..b4dcd89d3 100644
function bp_group_description_excerpt( $group = false, $length = 225 ) { 1301 1301 return apply_filters( 'bp_get_group_description_excerpt', bp_create_excerpt( $group->description, $length ), $group ); 1302 1302 } 1303 1303 1304 /**1305 * Output the status of the current group in the loop.1306 *1307 * Either 'Public' or 'Private'.1308 *1309 * @since 1.0.01310 *1311 * @param object|bool $group Optional. Group object.1312 * Default: current group in loop.1313 */1314 function bp_group_public_status( $group = false ) {1315 echo bp_get_group_public_status( $group );1316 }1317 /**1318 * Return the status of the current group in the loop.1319 *1320 * Either 'Public' or 'Private'.1321 *1322 * @since 1.0.01323 *1324 * @param object|bool $group Optional. Group object.1325 * Default: current group in loop.1326 * @return string1327 */1328 function bp_get_group_public_status( $group = false ) {1329 global $groups_template;1330 1331 if ( empty( $group ) ) {1332 $group =& $groups_template->group;1333 }1334 1335 if ( $group->is_public ) {1336 return __( 'Public', 'buddypress' );1337 } else {1338 return __( 'Private', 'buddypress' );1339 }1340 }1341 1342 /**1343 * Output whether the current group in the loop is public.1344 *1345 * No longer used in BuddyPress.1346 *1347 * @param object|bool $group Optional. Group object.1348 * Default: current group in loop.1349 */1350 function bp_group_is_public( $group = false ) {1351 echo bp_get_group_is_public( $group );1352 }1353 /**1354 * Return whether the current group in the loop is public.1355 *1356 * No longer used in BuddyPress.1357 *1358 * @param object|bool $group Optional. Group object.1359 * Default: current group in loop.1360 * @return mixed1361 */1362 function bp_get_group_is_public( $group = false ) {1363 global $groups_template;1364 1365 if ( empty( $group ) ) {1366 $group =& $groups_template->group;1367 }1368 1369 /**1370 * Filters whether the current group in the loop is public.1371 *1372 * @since 2.5.0 Added the `$group` parameter.1373 *1374 * @param bool $public True if the group is public.1375 * @param object $group Group object.1376 */1377 return apply_filters( 'bp_get_group_is_public', $group->is_public, $group );1378 }1379 1380 1304 /** 1381 1305 * Output the created date of the current group in the loop. 1382 1306 * -
src/class-buddypress.php
diff --git src/class-buddypress.php src/class-buddypress.php index b58d6133b..a5d449ebd 100644
class BuddyPress { 508 508 require( $this->plugin_dir . 'bp-core/deprecated/2.9.php' ); 509 509 require( $this->plugin_dir . 'bp-core/deprecated/3.0.php' ); 510 510 require( $this->plugin_dir . 'bp-core/deprecated/4.0.php' ); 511 require( $this->plugin_dir . 'bp-core/deprecated/6.0.php' ); 511 512 } 512 513 513 514 // Load wp-cli module if PHP 5.4+.