Skip to:
Content

BuddyPress.org

Changeset 11841


Ignore:
Timestamp:
02/03/2018 07:08:39 PM (7 years ago)
Author:
djpaul
Message:

Template: remove shared folder pending further work.

See https://buddypress.trac.wordpress.org/ticket/7672#comment:11 for more details.

Reverts r11839, r11836, and r11835.

Location:
trunk/src
Files:
1 deleted
3 edited
5 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-attachments.php

    r11839 r11841  
    926926    // Load the attachment template in WP Administration screens.
    927927    if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
    928         $attachment_admin_template_part = buddypress()->themes_dir . '/shared/buddypress/' . $attachment_template_part . '.php';
     928        $attachment_admin_template_part = buddypress()->themes_dir . '/bp-legacy/buddypress/' . $attachment_template_part . '.php';
    929929
    930930        // Check whether the template part exists.
  • trunk/src/bp-core/bp-core-theme-compatibility.php

    r11835 r11841  
    988988}
    989989add_action( 'loop_end', 'bp_theme_compat_loop_end' );
    990 
    991 /**
    992  * Get the absolute path to the shared theme assets folder.
    993  *
    994  * @since 3.0.0
    995  *
    996  * @return string The absolute path to the shared theme assets folder.
    997  */
    998 function bp_get_shared_theme_assets_dir() {
    999 
    1000     /**
    1001      * Filters the absolute path to the shared theme assets folder.
    1002      *
    1003      * @since 3.0.0
    1004      *
    1005      * @param string $dir The absolute path to the shared theme assets folder.
    1006      */
    1007     return apply_filters( 'bp_get_theme_compat_dir', buddypress()->themes_dir . '/shared' );
    1008 }
  • trunk/src/class-buddypress.php

    r11835 r11841  
    733733        // Register the basic theme stack. This is really dope.
    734734        bp_register_template_stack( 'get_stylesheet_directory', 10 );
    735         bp_register_template_stack( 'get_template_directory', 12 );
    736         bp_register_template_stack( 'bp_get_theme_compat_dir', 14 );
    737         bp_register_template_stack( 'bp_get_shared_theme_assets_dir', 16 );
     735        bp_register_template_stack( 'get_template_directory',   12 );
     736        bp_register_template_stack( 'bp_get_theme_compat_dir',  14 );
    738737    }
    739738
Note: See TracChangeset for help on using the changeset viewer.