Skip to:
Content

BuddyPress.org

Changeset 10499


Ignore:
Timestamp:
02/03/2016 09:44:18 AM (9 years ago)
Author:
djpaul
Message:

Revert reintroduction of bp_core_email_from_name_filter() from r10497

This function and filter were moved the 2.5.php deprecated script file.

Location:
trunk/src/bp-core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-filters.php

    r10497 r10499  
    243243}
    244244add_filter( 'nav_menu_css_class', 'bp_core_menu_highlight_nav_menu_item', 10, 2 );
    245 
    246 /**
    247  * Set "From" name in outgoing email to the site name.
    248  *
    249  * @since 1.0.0
    250  *
    251  * @uses bp_get_option() fetches the value for a meta_key in the wp_X_options table.
    252  *
    253  * @return string The blog name for the root blog.
    254  */
    255 function bp_core_email_from_name_filter() {
    256 
    257     /**
    258      * Filters the "From" name in outgoing email to the site name.
    259      *
    260      * @since 1.2.0
    261      *
    262      * @param string $value Value to set the "From" name to.
    263      */
    264     return apply_filters( 'bp_core_email_from_name_filter', bp_get_option( 'blogname', 'WordPress' ) );
    265 }
    266 add_filter( 'wp_mail_from_name', 'bp_core_email_from_name_filter' );
    267245
    268246/**
  • trunk/src/bp-core/deprecated/2.5.php

    r10494 r10499  
    1212 * Set "From" name in outgoing email to the site name.
    1313 *
    14  * @deprecated 2.5.0
     14 * @since 1.0.0
     15 * @deprecated 2.5.0 Not used. Was hooked to WordPress' "wp_mail_from_name" action.
     16 *                   Use the "bp_email_get_from" action instead.
    1517 *
    1618 * @return string The blog name for the root blog.
     
    2325     *
    2426     * @since 1.2.0
    25      * @deprecated 2.5.0 Not used any more in BuddyPress core, but left intact for old plugins.
    26      *                   This used to be hooked to WordPress' "wp_mail_from_name" action.
     27     * @deprecated 2.5.0 Not used.
    2728     *
    2829     * @param string $value Value to set the "From" name to.
Note: See TracChangeset for help on using the changeset viewer.