Skip to:
Content

BuddyPress.org

Ticket #7325: create_functions.txt

File create_functions.txt, 3.8 KB (added by tw2113, 3 years ago)

Current list of create_function usage

Line 
1src/bp-activity/bp-activity-actions.php:835:    $comment_akismet_history = create_function( '$t', '$t[] = $post_type_comment_action; return $t;' );
2src/bp-activity/bp-activity-functions.php:3678: add_filter( 'embed_post_id',         create_function( '', 'return buddypress()->activity->read_more_id;' ) );
3src/bp-activity/classes/class-bp-activity-list-table.php:174:                   usort( $activities['activities'], create_function( '$a, $b', 'return $a->date_recorded > $b->date_recorded;' ) );
4src/bp-blogs/bp-blogs-widgets.php:24:           add_action( 'widgets_init', create_function( '', 'return register_widget("BP_Blogs_Recent_Posts_Widget");' ) );
5src/bp-core/admin/bp-core-admin-tools.php:360:  $lambda  = create_function( '', "echo '$message';" );
6src/bp-core/bp-core-widgets.php:23:     add_action('widgets_init', create_function('', 'return register_widget("BP_Core_Login_Widget");') );
7src/bp-core/deprecated/1.6.php:268:                     add_action( 'wp_ajax_'        . $action, create_function( '', 'exit;' ), 9999 );
8src/bp-core/deprecated/1.6.php:269:                     add_action( 'wp_ajax_nopriv_' . $action, create_function( '', 'exit;' ), 9999 );
9src/bp-forums/bp-forums-bbpress-sa.php:152:     register_shutdown_function( create_function( '', 'do_action("bb_shutdown");' ) );
10src/bp-friends/bp-friends-widgets.php:34:       add_action( 'widgets_init', create_function( '', 'return register_widget("BP_Core_Friends_Widget");' ) );
11src/bp-friends/classes/class-bp-friends-friendship.php:647:             usort( $last_activities, create_function( '$a, $b', '
12src/bp-groups/bp-groups-widgets.php:23: add_action('widgets_init', create_function('', 'return register_widget("BP_Groups_Widget");') );
13src/bp-groups/classes/class-bp-group-extension.php:756:                         add_action( 'bp_template_content_header', create_function( '', 'echo "' . esc_attr( $this->name ) . '";' ) );
14src/bp-groups/classes/class-bp-group-extension.php:757:                         add_action( 'bp_template_title',          create_function( '', 'echo "' . esc_attr( $this->name ) . '";' ) );
15src/bp-groups/classes/class-bp-group-extension.php:977:                         add_action( 'bp_template_content_header', create_function( '', 'echo "<ul class=\"content-header-nav\">"; bp_group_admin_tabs(); echo "</ul>";' ) );
16src/bp-groups/classes/class-bp-group-extension.php:1191:                        create_function( '', 'do_action( "bp_groups_admin_meta_box_content_' . $this->slug . '", ' . $group_id . ' );' ),
17src/bp-groups/classes/class-bp-group-extension.php:1693:        add_action( 'bp_init', create_function( '', '
18src/bp-members/bp-members-screens.php:195:                               * The addslashes() and stripslashes() used to avoid create_function()
19src/bp-members/bp-members-screens.php:206:                              add_action( 'bp_' . $fieldname . '_errors', create_function( '', 'echo apply_filters(\'bp_members_signup_error_message\', "<div class=\"error\">" . stripslashes( \'' . addslashes( $error_message ) . '\' ) . "</div>" );' ) );
20src/bp-members/bp-members-widgets.php:27:       add_action( 'widgets_init', create_function( '', 'return register_widget("BP_Core_Members_Widget");'         ) );
21src/bp-members/bp-members-widgets.php:28:       add_action( 'widgets_init', create_function( '', 'return register_widget("BP_Core_Whos_Online_Widget");'     ) );
22src/bp-members/bp-members-widgets.php:29:       add_action( 'widgets_init', create_function( '', 'return register_widget("BP_Core_Recently_Active_Widget");' ) );
23src/bp-messages/bp-messages-widgets.php:23:     add_action( 'widgets_init', create_function('', 'return register_widget( "BP_Messages_Sitewide_Notices_Widget" );') );
24src/bp-templates/bp-legacy/buddypress-functions.php:1568:               add_filter( 'bp_get_the_thread_message_css_class', create_function( '$retval', '
25src/bp-xprofile/bp-xprofile-admin.php:685:              uasort( $fields, create_function( '$a, $b', 'return strnatcmp( $a[1]->name, $b[1]->name );' ) );
26tests/phpunit/testcases/core/class-bp-user-query.php:178:               add_filter( 'bp_user_query_online_interval', create_function( '', 'return 5;' ) );