HTML issues fixed (patch attached)
-
Not sure the best way to submit a patch, since I don’t see this plugin listed in the Trac issue database, so I opted to send it here. Let me know if there is a more appropriate method. Here is a patch which fixes 3 HTML related formatting issues that break my theme on pages containing Buddypress Link interfaces.
* Added semicolon to   entity
* Removed ‘/’ from option opening tags which have closing tags
* Moved closing div tags to proper place (was breaking my sidebar)diff -ruN buddypress-links.orig/bp-links-templatetags.php buddypress-links/bp-links-templatetags.php --- buddypress-links.orig/bp-links-templatetags.php 2014-05-28 11:13:49.000000000 -0700 +++ buddypress-links/bp-links-templatetags.php 2014-05-26 23:39:42.000000000 -0700 @@ -767,7 +767,7 @@ $from_num = intval( ( $links_template->pag_page - 1 ) * $links_template->pag_num ) + 1; $to_num = ( $from_num + ( $links_template->pag_num - 1 ) > $links_template->total_link_count ) ? $links_template->total_link_count : $from_num + ( $links_template->pag_num - 1) ; - return sprintf( __( 'Viewing link %1$d to %2$d (of %3$d links)', 'buddypress-links' ), $from_num, $to_num, $links_template->total_link_count ) . ' <span class="ajax-loader"></span>'; + return sprintf( __( 'Viewing link %1$d to %2$d (of %3$d links)', 'buddypress-links' ), $from_num, $to_num, $links_template->total_link_count ) . ' <span class="ajax-loader"></span>'; } function bp_links_total_link_count() { @@ -1433,7 +1433,7 @@ // is this one selected? $selected = ( $selected_category_id == $category->id ) ? ' selected="selected"' : null; // output it - echo sprintf( '<option value="%d"%s />%s</option>', $category->id, $selected, $category->name ) . PHP_EOL; + echo sprintf( '<option value="%d"%s>%s</option>', $category->id, $selected, $category->name ) . PHP_EOL; } do_action( 'bp_after_links_category_select_options' ); diff -ruN buddypress-links.orig/themes/bp-links-default/index.php buddypress-links/themes/bp-links-default/index.php --- buddypress-links.orig/themes/bp-links-default/index.php 2014-05-28 11:13:49.000000000 -0700 +++ buddypress-links/themes/bp-links-default/index.php 2014-05-27 00:08:45.000000000 -0700 @@ -47,13 +47,11 @@ <?php do_action( 'bp_after_directory_links_content' ) ?> - </div><!-- .padder --> - </div><!-- #content --> - <?php if ( current_theme_supports( 'buddypress' ) ): // close old containers ?> - </div></div><?php + </div><!-- .padder --> + </div><!-- #content --><?php get_sidebar( 'buddypress' ); get_footer( 'buddypress' ); else:
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘HTML issues fixed (patch attached)’ is closed to new replies.