Ticket #480: fix-members-css.diff
File fix-members-css.diff, 2.3 KB (added by , 16 years ago) |
---|
-
Users/simon/Projects/MegaPress/site/wp-content/member-themes/buddypress-member/style.css
8 8 BuddyPress Enabled: true 9 9 */ 10 10 11 @import url(css/loader.php); 12 No newline at end of file 11 /* This file is unused */ 12 No newline at end of file -
Users/simon/Projects/MegaPress/site/wp-content/member-themes/buddypress-member/css/loader.php
1 1 <?php 2 2 3 3 /* Load the WP environment */ 4 require_once( preg_replace('%(.*)[/\\\\]wp-content[/\\\\].*%', '\1', $_SERVER['SCRIPT_FILENAME'] ) . '/wp-load.php' ); 4 $abspath = @ $_GET[ 'abspath' ]; 5 if ( $abspath ) { 6 require_once( $abspath . '/wp-load.php' ); 7 } else { 8 require_once( preg_replace('%(.*)[/\\\\]wp-content[/\\\\].*%', '\1', $_SERVER['SCRIPT_FILENAME'] ) . '/wp-load.php' ); 9 } 5 10 6 11 /* Set the content type to CSS */ 7 12 header('Content-type: text/css'); -
Users/simon/Projects/MegaPress/site/wp-content/member-themes/buddypress-member/functions.php
32 32 /* Hook for custom theme functions via plugins */ 33 33 do_action( 'bp_member_theme_functions' ); 34 34 35 36 function fix_member_theme_css( $output, $show ) 37 { 38 if ( $show != 'stylesheet_url' ) return $output; 39 $output = get_template_directory_uri() . '/css/loader.php'; 40 $params = array( 'abspath' => ABSPATH ); 41 $output = add_query_arg( $params, $output ); 42 return $output; 43 } 44 add_filter( 'bloginfo_url', 'fix_member_theme_css', null, 2 ); 45 35 46 ?> 47 No newline at end of file