Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/15/2014 09:08:25 PM (5 years ago)
Author:
johnjamesjacoby
Message:

Skip the notorious friends_register_activity_action action in updated Activity admin type selector. (More to do here.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-admin.php

    r8613 r8615  
    12951295                        <?php foreach ( $actions as $action_key => $action_values ) : ?>
    12961296
    1297                             <option value="<?php echo esc_attr( $action_key ); ?>" <?php selected( $action_key,  $selected ); ?>><?php echo esc_html( $action_values[ 'value' ] ); ?></option>
     1297                            <?php
     1298
     1299                            // Skip the incorrectly named pre-1.6 action
     1300                            if ( 'friends_register_activity_action' !== $action_key ) : ?>
     1301
     1302                                <option value="<?php echo esc_attr( $action_key ); ?>" <?php selected( $action_key,  $selected ); ?>><?php echo esc_html( $action_values[ 'value' ] ); ?></option>
     1303
     1304                            <?php endif; ?>
    12981305
    12991306                        <?php endforeach; ?>
Note: See TracChangeset for help on using the changeset viewer.