Changeset 6438 for trunk/src/includes/core/theme-compat.php
- Timestamp:
- 05/27/2017 05:04:31 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/core/theme-compat.php
r6353 r6438 126 126 */ 127 127 function bbp_get_theme_compat_id() { 128 129 // Filter & return 128 130 return apply_filters( 'bbp_get_theme_compat_id', bbpress()->theme_compat->theme->id ); 129 131 } … … 141 143 */ 142 144 function bbp_get_theme_compat_name() { 145 146 // Filter & return 143 147 return apply_filters( 'bbp_get_theme_compat_name', bbpress()->theme_compat->theme->name ); 144 148 } 145 149 146 150 /** 147 * Gets the version of the bbPress compat able theme used, in the event the151 * Gets the version of the bbPress compatible theme used, in the event the 148 152 * currently active WordPress theme does not explicitly support bbPress. 149 153 * This can be filtered or set manually. Tricky theme authors can override the … … 156 160 */ 157 161 function bbp_get_theme_compat_version() { 162 163 // Filter & return 158 164 return apply_filters( 'bbp_get_theme_compat_version', bbpress()->theme_compat->theme->version ); 165 } 166 167 /** 168 * Gets the bbPress compatible theme used in the event the currently active 169 * WordPress theme does not explicitly support bbPress. This can be filtered, 170 * or set manually. Tricky theme authors can override the default and include 171 * their own bbPress compatibility layers for their themes. 172 * 173 * @since 2.0.0 bbPress (r3032) 174 * 175 * @uses apply_filters() 176 * @return string 177 */ 178 function bbp_get_theme_compat_dir() { 179 180 // Filter & return 181 return apply_filters( 'bbp_get_theme_compat_dir', bbpress()->theme_compat->theme->dir ); 159 182 } 160 183 … … 170 193 * @return string 171 194 */ 172 function bbp_get_theme_compat_dir() {173 return apply_filters( 'bbp_get_theme_compat_dir', bbpress()->theme_compat->theme->dir );174 }175 176 /**177 * Gets the bbPress compatable theme used in the event the currently active178 * WordPress theme does not explicitly support bbPress. This can be filtered,179 * or set manually. Tricky theme authors can override the default and include180 * their own bbPress compatibility layers for their themes.181 *182 * @since 2.0.0 bbPress (r3032)183 *184 * @uses apply_filters()185 * @return string186 */187 195 function bbp_get_theme_compat_url() { 196 197 // Filter & return 188 198 return apply_filters( 'bbp_get_theme_compat_url', bbpress()->theme_compat->theme->url ); 189 199 } … … 823 833 } 824 834 835 // Filter & return 825 836 return apply_filters( 'bbp_template_include_theme_compat', $template ); 826 837 } … … 1017 1028 } 1018 1029 1019 // Allow override of the override1030 // Filter & return 1020 1031 return (bool) apply_filters( 'bbp_force_comment_status', $retval, $open, $post_id, $post_type ); 1021 1032 }
Note: See TracChangeset
for help on using the changeset viewer.