diff --git Gruntfile.js Gruntfile.js
index 2778bde..362613e 100644
|
|
module.exports = function( grunt ) { |
244 | 244 | |
245 | 245 | grunt.registerTask( 'test', 'Run all unit test tasks.', ['phpunit'] ); |
246 | 246 | |
247 | | grunt.registerTask( 'jstest', 'Runs all javascript tasks.', [ 'jsvalidate:src', 'jshint' ] ); |
| 247 | grunt.registerTask( 'jstest', 'Runs all JavaScript tasks.', [ 'jsvalidate:src', 'jshint' ] ); |
248 | 248 | |
249 | 249 | // Travis CI Task |
250 | 250 | grunt.registerTask( 'travis', ['jsvalidate:src', 'jshint', 'checktextdomain', 'test'] ); |
diff --git src/bp-activity/bp-activity-admin.php src/bp-activity/bp-activity-admin.php
index 8e078b9..fe732bb 100644
|
|
function bp_activity_admin_load() { |
253 | 253 | add_meta_box( 'bp_activity_type', _x( 'Type', 'activity admin edit screen', 'buddypress' ), 'bp_activity_admin_edit_metabox_type', get_current_screen()->id, 'normal', 'core' ); |
254 | 254 | add_meta_box( 'bp_activity_userid', _x( 'Author ID', 'activity admin edit screen', 'buddypress' ), 'bp_activity_admin_edit_metabox_userid', get_current_screen()->id, 'normal', 'core' ); |
255 | 255 | |
256 | | // Enqueue javascripts |
| 256 | // Enqueue JavaScript files |
257 | 257 | wp_enqueue_script( 'postbox' ); |
258 | 258 | wp_enqueue_script( 'dashboard' ); |
259 | 259 | wp_enqueue_script( 'comment' ); |
… |
… |
class BP_Activity_List_Table extends WP_List_Table { |
1480 | 1480 | |
1481 | 1481 | // Rollover actions |
1482 | 1482 | |
1483 | | // Reply - javascript only; implemented by AJAX. |
| 1483 | // Reply - JavaScript only; implemented by AJAX. |
1484 | 1484 | if ( 'spam' != $item_status ) { |
1485 | 1485 | if ( $this->can_comment( $item ) ) { |
1486 | 1486 | $actions['reply'] = sprintf( '<a href="#" class="reply hide-if-no-js">%s</a>', __( 'Reply', 'buddypress' ) ); |
diff --git src/bp-activity/bp-activity-filters.php src/bp-activity/bp-activity-filters.php
index 82f992a..7bed508 100644
|
|
function bp_activity_truncate_entry( $text ) { |
450 | 450 | } |
451 | 451 | |
452 | 452 | /** |
453 | | * Include extra javascript dependencies for activity component. |
| 453 | * Include extra JavaScript dependencies for activity component. |
454 | 454 | * |
455 | 455 | * @since BuddyPress (2.0.0) |
456 | 456 | * |
diff --git src/bp-activity/bp-activity-template.php src/bp-activity/bp-activity-template.php
index bbf5c3b..8ee1651 100644
|
|
function bp_activity_comment_link() { |
2714 | 2714 | } |
2715 | 2715 | |
2716 | 2716 | /** |
2717 | | * Output the activity comment form no javascript display CSS. |
| 2717 | * Output the activity comment form no JavaScript display CSS. |
2718 | 2718 | * |
2719 | 2719 | * @since BuddyPress (1.2.0) |
2720 | 2720 | * |
… |
… |
function bp_activity_comment_form_nojs_display() { |
2725 | 2725 | } |
2726 | 2726 | |
2727 | 2727 | /** |
2728 | | * Return the activity comment form no javascript display CSS. |
| 2728 | * Return the activity comment form no JavaScript display CSS. |
2729 | 2729 | * |
2730 | 2730 | * @since BuddyPress (1.2.0) |
2731 | 2731 | * |
2732 | 2732 | * @global object $activities_template {@link BP_Activity_Template} |
2733 | 2733 | * |
2734 | | * @return string|bool The activity comment form no javascript |
2735 | | * display CSS. False on failure |
| 2734 | * @return string|bool The activity comment form no JavaScript |
| 2735 | * display CSS. False on failure. |
2736 | 2736 | */ |
2737 | 2737 | function bp_get_activity_comment_form_nojs_display() { |
2738 | 2738 | global $activities_template; |
diff --git src/bp-core/admin/bp-core-admin-functions.php src/bp-core/admin/bp-core-admin-functions.php
index c8bbc57..fa96a4f 100644
|
|
function bp_admin_do_wp_nav_menu_meta_box() { |
786 | 786 | * - URL - This field is automatically generated by BP on output, so this |
787 | 787 | * field is useless and can cause confusion. |
788 | 788 | * |
789 | | * Note: These restrictions are only enforced if javascript is enabled. |
| 789 | * Note: These restrictions are only enforced if JavaScript is enabled. |
790 | 790 | * |
791 | 791 | * @since BuddyPress (1.9.0) |
792 | 792 | */ |
diff --git src/bp-core/bp-core-cssjs.php src/bp-core/bp-core-cssjs.php
index ecda7bf..826d3d7 100644
|
|
function bp_core_ajax_url() { |
245 | 245 | } |
246 | 246 | |
247 | 247 | /** |
248 | | * Get the javascript dependencies for buddypress.js. |
| 248 | * Get the JavaScript dependencies for buddypress.js. |
249 | 249 | * |
250 | 250 | * @since BuddyPress (2.0.0) |
251 | 251 | * |
252 | 252 | * @uses apply_filters() to allow other component to load extra dependencies |
253 | 253 | * |
254 | | * @return array The javascript dependencies. |
| 254 | * @return array The JavaScript dependencies. |
255 | 255 | */ |
256 | 256 | function bp_core_get_js_dependencies() { |
257 | 257 | return apply_filters( 'bp_core_get_js_dependencies', array( |
diff --git src/bp-core/bp-core-functions.php src/bp-core/bp-core-functions.php
index 421b30b..2d1ed64 100644
|
|
function bp_core_load_buddypress_textdomain() { |
1805 | 1805 | add_action ( 'bp_core_loaded', 'bp_core_load_buddypress_textdomain' ); |
1806 | 1806 | |
1807 | 1807 | /** |
1808 | | * A javascript-free implementation of the search functions in BuddyPress. |
| 1808 | * A JavaScript-free implementation of the search functions in BuddyPress. |
1809 | 1809 | * |
1810 | 1810 | * @param string $slug The slug to redirect to for searching. |
1811 | 1811 | */ |
diff --git src/bp-core/deprecated/1.5.php src/bp-core/deprecated/1.5.php
index 7eda78c..5c2471f 100644
|
|
function bp_dtheme_deprecated() { |
561 | 561 | |
562 | 562 | if ( !function_exists( 'bp_dtheme_add_blog_comments_js' ) ) : |
563 | 563 | /** |
564 | | * In BuddyPress 1.2.x, this added the javascript needed for blog comment replies. |
565 | | * As of 1.5.x, we recommend that you enqueue the comment-reply javascript in your theme's header.php. |
| 564 | * In BuddyPress 1.2.x, this added the JavaScript needed for blog comment replies. |
| 565 | * As of 1.5.x, we recommend that you enqueue the comment-reply JavaScript in your theme's header.php. |
566 | 566 | * |
567 | 567 | * @deprecated BuddyPress (1.5) |
568 | 568 | * @deprecated Enqueue the comment-reply script in your theme's header.php. |
diff --git src/bp-groups/bp-groups-admin.php src/bp-groups/bp-groups-admin.php
index e8ae903..17195af 100644
|
|
function bp_groups_admin_load() { |
139 | 139 | */ |
140 | 140 | do_action( 'bp_groups_admin_meta_boxes' ); |
141 | 141 | |
142 | | // Enqueue javascripts |
| 142 | // Enqueue JavaScript files |
143 | 143 | wp_enqueue_script( 'postbox' ); |
144 | 144 | wp_enqueue_script( 'dashboard' ); |
145 | 145 | |
… |
… |
function bp_groups_admin_edit_metabox_members( $item ) { |
820 | 820 | |
821 | 821 | // Pull up a list of group members, so we can separate out the types |
822 | 822 | // We'll also keep track of group members here to place them into a |
823 | | // javascript variable, which will help with group member autocomplete |
| 823 | // JavaScript variable, which will help with group member autocomplete |
824 | 824 | $members = array( |
825 | 825 | 'admin' => array(), |
826 | 826 | 'mod' => array(), |
… |
… |
function bp_groups_admin_edit_metabox_members( $item ) { |
850 | 850 | $pagination[ $type ] = bp_groups_admin_create_pagination_links( $member_type_query, $type ); |
851 | 851 | } |
852 | 852 | |
853 | | // Echo out the javascript variable |
| 853 | // Echo out the JavaScript variable |
854 | 854 | echo '<script type="text/javascript">var group_id = "' . esc_js( $item->id ) . '";</script>'; |
855 | 855 | |
856 | 856 | // Loop through each member type |
diff --git src/bp-members/bp-members-admin.php src/bp-members/bp-members-admin.php
index 116a371..1226659 100644
|
|
class BP_Members_Admin { |
579 | 579 | } |
580 | 580 | |
581 | 581 | /** |
582 | | * Fires after all of the members JavaScript and CSS is enqueued. |
| 582 | * Fires after all of the members JavaScript and CSS are enqueued. |
583 | 583 | * |
584 | 584 | * @since BuddyPress (2.0.0) |
585 | 585 | * |
… |
… |
class BP_Members_Admin { |
787 | 787 | */ |
788 | 788 | do_action( 'bp_members_admin_user_metaboxes', $this->is_self_profile, $user_id ); |
789 | 789 | |
790 | | // Enqueue javascripts |
| 790 | // Enqueue JavaScript files |
791 | 791 | wp_enqueue_script( 'postbox' ); |
792 | 792 | wp_enqueue_script( 'dashboard' ); |
793 | 793 | |
diff --git src/bp-members/bp-members-template.php src/bp-members/bp-members-template.php
index 81acf1f..811f2c3 100644
|
|
class BP_Core_Members_Template { |
325 | 325 | /** |
326 | 326 | * Defaults to an empty array to make sure paginate_links() |
327 | 327 | * won't add the $page_arg to the links which would break |
328 | | * pagination in case javascript is disabled. |
| 328 | * pagination in case JavaScript is disabled. |
329 | 329 | */ |
330 | 330 | $add_args = array(); |
331 | 331 | |
diff --git src/bp-templates/bp-legacy/buddypress-functions.php src/bp-templates/bp-legacy/buddypress-functions.php
index 7b7f1b9..50bd15b 100644
|
|
function bp_legacy_theme_ajax_messages_autocomplete_results() { |
1549 | 1549 | foreach ( $suggestions as $user ) { |
1550 | 1550 | |
1551 | 1551 | // Note that the final line break acts as a delimiter for the |
1552 | | // autocomplete javascript and thus should not be removed |
| 1552 | // autocomplete JavaScript and thus should not be removed |
1553 | 1553 | printf( '<span id="%s" href="#"></span><img src="%s" style="width: 15px"> %s (%s)' . "\n", |
1554 | 1554 | esc_attr( 'link-' . $user->ID ), |
1555 | 1555 | esc_url( $user->image ), |