Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/01/2024 04:26:18 PM (2 years ago)
Author:
espellcaste
Message:

WPCS: The modified code addresses all Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword and Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction issues specific to the foreach and function examples.

See #7228

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/blogs/functions.php

    r13503 r13878  
    185185function bp_nouveau_get_blog_signup_inline_script() {
    186186        return '
    187                 ( function( $ ) {
     187                ( function ( $ ) {
    188188                        if ( $( \'body\' ).hasClass( \'register\' ) ) {
    189189                                var blog_checked = $( \'#signup_with_blog\' );
    … …  
    195195
    196196                                // toggle "Blog Details" block whenever checkbox is checked
    197                                 blog_checked.change( function( event ) {
     197                                blog_checked.change( function ( event ) {
    198198                                        // Toggle HTML5 required attribute.
    199                                         $.each( $( \'#blog-details\' ).find( \'[aria-required]\' ), function( i, input ) {
     199                                        $.each( $( \'#blog-details\' ).find( \'[aria-required]\' ), function ( i, input ) {
    200200                                                $( input ).prop( \'required\',  $( event.target ).prop( \'checked\' ) );
    201201                                        } );
Note: See TracChangeset for help on using the changeset viewer.