[buddypress-trac] [BuddyPress] #4879: add_theme_support( 'buddypress' ) should not load buddypress-functions.php

buddypress-trac noreply at wordpress.org
Thu Mar 14 20:03:15 UTC 2013


#4879: add_theme_support( 'buddypress' ) should not load buddypress-functions.php
--------------------------------------------+------------------------------
 Reporter:  modemlooper                     |       Owner:
     Type:  defect (bug)                    |      Status:  new
 Priority:  normal                          |   Milestone:  Awaiting Review
Component:  Backwards Compatability         |     Version:  1.7
 Severity:  major                           |  Resolution:
 Keywords:  dev-feedback reporter-feedback  |
--------------------------------------------+------------------------------

Comment (by modemlooper):

 no plugin. my code.




 {{{
         function get_stylesheet( $stylesheet ) {

                 if ( wp_is_mobile() ) {
                         return 'child';
                 } else {
                         return $stylesheet;
                 }
         }

         function get_template( $template ) {
                 if ( wp_is_mobile() ) {
                         return 'child';
                 } else {
                         return $template;
                 }
         }

         add_filter( 'template', 'get_template' );
         add_filter( 'stylesheet',  'get_stylesheet' );
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4879#comment:6>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list