- Timestamp:
- 06/01/2024 04:59:14 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/buddypress-functions.php
r13878 r13882 1137 1137 * 1138 1138 * @since 1.2.0 1139 *1140 * @return mixed String on error, void on success.1141 1139 */ 1142 1140 function bp_legacy_theme_delete_activity() { … … 1179 1177 * 1180 1178 * @since 1.2.0 1181 *1182 * @return mixed String on error, void on success.1183 1179 */ 1184 1180 function bp_legacy_theme_delete_activity_comment() { … … 1221 1217 * 1222 1218 * @since 1.6.0 1223 *1224 * @return mixed String on error, void on success.1225 1219 */ 1226 1220 function bp_legacy_theme_spam_activity() { … … 1542 1536 * 1543 1537 * @since 1.2.0 1544 *1545 * @return mixed String on error, void on success.1546 1538 */ 1547 1539 function bp_legacy_theme_ajax_accept_friendship() { … … 1552 1544 check_admin_referer( 'friends_accept_friendship' ); 1553 1545 1554 if ( ! friends_accept_friendship( (int) $_POST['id'] ) ) 1546 if ( ! friends_accept_friendship( (int) $_POST['id'] ) ) { 1555 1547 echo "-1<div id='message' class='error'><p>" . esc_html__( 'There was a problem accepting that request. Please try again.', 'buddypress' ) . '</p></div>'; 1548 } 1556 1549 1557 1550 exit; … … 1562 1555 * 1563 1556 * @since 1.2.0 1564 *1565 * @return mixed String on error, void on success.1566 1557 */ 1567 1558 function bp_legacy_theme_ajax_reject_friendship() { … … 1572 1563 check_admin_referer( 'friends_reject_friendship' ); 1573 1564 1574 if ( ! friends_reject_friendship( (int) $_POST['id'] ) ) 1565 if ( ! friends_reject_friendship( (int) $_POST['id'] ) ) { 1575 1566 echo "-1<div id='message' class='error'><p>" . esc_html__( 'There was a problem rejecting that request. Please try again.', 'buddypress' ) . '</p></div>'; 1567 } 1576 1568 1577 1569 exit; … … 1702 1694 * 1703 1695 * @since 1.2.0 1704 *1705 * @return mixed String on error, void on success.1706 1696 */ 1707 1697 function bp_legacy_theme_ajax_close_notice() { … … 1793 1783 * @since 1.2.0 1794 1784 * @deprecated 2.2.0 1795 *1796 * @return mixed String on error, void on success.1797 1785 */ 1798 1786 function bp_legacy_theme_ajax_message_markunread() { … … 1807 1795 * @since 1.2.0 1808 1796 * @deprecated 2.2.0 1809 *1810 * @return mixed String on error, void on success.1811 1797 */ 1812 1798 function bp_legacy_theme_ajax_message_markread() { … … 1821 1807 * @since 1.2.0 1822 1808 * @deprecated 2.2.0 1823 *1824 * @return string|null HTML1825 1809 */ 1826 1810 function bp_legacy_theme_ajax_messages_delete() {
Note: See TracChangeset
for help on using the changeset viewer.