Skip to:
Content

BuddyPress.org

Changeset 4727


Ignore:
Timestamp:
07/19/2011 09:55:50 PM (14 years ago)
Author:
djpaul
Message:

Fix oembed activity comments when posting with AJAX. Fixes #3354, props r-a-y

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-functions.php

    r4709 r4727  
    602602    $right_now_text = apply_filters( 'bp_core_time_since_right_now_text', __( 'right now', 'buddypress' ) );
    603603    $ago_text       = apply_filters( 'bp_core_time_since_ago_text',       __( '%s ago',    'buddypress' ) );
    604    
     604
    605605    // array of time period chunks
    606606    $chunks = array(
     
    633633    if ( 0 > $since ) {
    634634        $output = $unknown_text;
    635        
     635
    636636    /**
    637637     * We only want to output two chunks of time here, eg:
     
    926926        $bp->embed = new BP_Embed();
    927927}
    928 add_action( 'bp_init', 'bp_embed_init' );
     928add_action( 'bp_init', 'bp_embed_init', 9 );
    929929
    930930/**
  • trunk/bp-themes/bp-default/_inc/global.js

    r4720 r4727  
    9292                    var v = jq("ul#activity-stream li.new-update .activity-content .activity-header p a.view").attr('href');
    9393
     94                    var ltext = jq("ul#activity-stream li.new-update .activity-content .activity-inner p").text();
     95
     96                    var u = '';
     97                    if ( ltext != '' )
     98                        u = l + '· ';
     99
     100                    u += '<a href="' + v + '" rel="nofollow">' + BP_DTheme.view + '</a>';
     101
    94102                    jq("div#latest-update").slideUp(300,function(){
    95                         jq("div#latest-update").html('"' + l + '" &middot; <a href="' + v + '" rel="nofollow">View</a>');
     103                        jq("div#latest-update").html( u );
    96104                        jq("div#latest-update").slideDown(300);
    97105                    });
  • trunk/bp-themes/bp-default/functions.php

    r4705 r4727  
    145145        'show_all'          => __( 'Show all', 'buddypress' ),
    146146        'comments'          => __( 'comments', 'buddypress' ),
    147         'close'             => __( 'Close', 'buddypress' )
     147        'close'             => __( 'Close', 'buddypress' ),
     148        'view'              => __( 'View', 'buddypress' )
    148149    );
    149150
     
    161162 */
    162163function bp_dtheme_enqueue_styles() {
    163    
     164
    164165    // Default CSS
    165166    wp_enqueue_style( 'bp-default-main',  get_template_directory_uri() . '/_inc/css/default.css', array(), BP_VERSION );
     
    516517function bp_dtheme_show_notice() {
    517518    global $pagenow;
    518    
     519
    519520    // Bail if bp-default theme was not just activated
    520521    if ( empty( $_GET['activated'] ) || ( 'themes.php' != $pagenow ) || !is_admin() )
    521522        return;
    522    
     523
    523524    ?>
    524525
Note: See TracChangeset for help on using the changeset viewer.