Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/06/2014 09:02:22 PM (11 years ago)
Author:
boonebgorges
Message:

Improved management of new_blog_post activity items at transition_post_status

Introduces bp_blogs_catch_transition_post_status(). This function, which
replaces bp_blogs_catch_published_post(), performs a similar task - determining
when a new blog post has been published, and recording the post in the activity
stream - but adds a corrolary for unpublishing that deletes the activity item.

Unit tests and deprecated function are included.

See #5333

Props henry.wright for an initial patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/deprecated/2.0.php

    r7854 r8073  
    11<?php
     2/**
     3 * Deprecated Functions
     4 *
     5 * @package BuddyPress
     6 * @subpackage Core
     7 * @deprecated 2.0.0
     8 */
     9
     10// Exit if accessed directly
     11if ( !defined( 'ABSPATH' ) ) exit;
    212
    313/**
     
    717    _deprecated_function( __FUNCTION__, '2.0.0', 'Use WP metadata API instead' );
    818}
     19
     20/**
     21 * @deprecated BuddyPress (2.0.0)
     22 */
     23function bp_blogs_catch_published_post() {
     24    _deprecated_function( __FUNCTION__, '2.0', 'bp_blogs_catch_transition_post_status()' );
     25}
Note: See TracChangeset for help on using the changeset viewer.