Skip to:
Content

bbPress.org

Changeset 3905


Ignore:
Timestamp:
05/17/2012 03:13:02 AM (9 years ago)
Author:
johnjamesjacoby
Message:

bbPress::setup_globals()

  • Add filters to: basename, plugin_dir, plugin_url, themes_dir, themes_url, and lang_dir.
  • Props tott.
  • Fixes #1824.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbpress.php

    r3899 r3905  
    351351        // Setup some base path and URL information
    352352        $this->file       = __FILE__;
    353         $this->basename   = plugin_basename( $this->file );
    354         $this->plugin_dir = plugin_dir_path( $this->file );
    355         $this->plugin_url = plugin_dir_url ( $this->file );
     353        $this->basename   = apply_filters( 'bbp_plugin_basenname', plugin_basename( $this->file ) );
     354        $this->plugin_dir = apply_filters( 'bbp_plugin_dir_path',  plugin_dir_path( $this->file ) );
     355        $this->plugin_url = apply_filters( 'bbp_plugin_dir_url',   plugin_dir_url ( $this->file ) );
    356356
    357357        // Themes
    358         $this->themes_dir = trailingslashit( $this->plugin_dir . 'bbp-themes' );
    359         $this->themes_url = trailingslashit( $this->plugin_url . 'bbp-themes' );
     358        $this->themes_dir = apply_filters( 'bbp_themes_dir', trailingslashit( $this->plugin_dir . 'bbp-themes' ) );
     359        $this->themes_url = apply_filters( 'bbp_themes_url', trailingslashit( $this->plugin_url . 'bbp-themes' ) );
    360360
    361361        // Languages
    362         $this->lang_dir   = trailingslashit( $this->plugin_dir . 'bbp-languages' );
     362        $this->lang_dir   = apply_filters( 'bbp_lang_dir', trailingslashit( $this->plugin_dir . 'bbp-languages' ) );
    363363
    364364        /** Identifiers *******************************************************/
Note: See TracChangeset for help on using the changeset viewer.