Changeset 5951 for trunk/src/includes/core/theme-compat.php
- Timestamp:
- 10/28/2015 04:07:50 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/core/theme-compat.php (modified) (23 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/core/theme-compat.php
r5909 r5951 32 32 * extending this class, as is @link bbp_setup_theme_compat() 33 33 * 34 * @since bbPress (r3506)34 * @since 2.0.0 bbPress (r3506) 35 35 */ 36 36 class BBP_Theme_Compat { … … 53 53 * Pass the $properties to the object on creation. 54 54 * 55 * @since bbPress (r3926) 55 * @since 2.1.0 bbPress (r3926) 56 * 56 57 * @param array $properties 57 58 */ … … 63 64 * Set a theme's property. 64 65 * 65 * @since bbPress (r3926) 66 * @since 2.1.0 bbPress (r3926) 67 * 66 68 * @param string $property 67 69 * @param mixed $value … … 75 77 * Get a theme's property. 76 78 * 77 * @since bbPress (r3926) 79 * @since 2.1.0 bbPress (r3926) 80 * 78 81 * @param string $property 79 82 * @param mixed $value … … 92 95 * Setup the default theme compat theme 93 96 * 94 * @since bbPress (r3311) 97 * @since 2.0.0 bbPress (r3311) 98 * 95 99 * @param BBP_Theme_Compat $theme 96 100 */ … … 116 120 * default and include their own bbPress compatibility layers for their themes. 117 121 * 118 * @since bbPress (r3506) 122 * @since 2.0.0 bbPress (r3506) 123 * 119 124 * @uses apply_filters() 120 125 * @return string … … 130 135 * default and include their own bbPress compatibility layers for their themes. 131 136 * 132 * @since bbPress (r3506) 137 * @since 2.0.0 bbPress (r3506) 138 * 133 139 * @uses apply_filters() 134 140 * @return string … … 144 150 * default and include their own bbPress compatibility layers for their themes. 145 151 * 146 * @since bbPress (r3506) 152 * @since 2.0.0 bbPress (r3506) 153 * 147 154 * @uses apply_filters() 148 155 * @return string … … 158 165 * their own bbPress compatibility layers for their themes. 159 166 * 160 * @since bbPress (r3032) 167 * @since 2.0.0 bbPress (r3032) 168 * 161 169 * @uses apply_filters() 162 170 * @return string … … 172 180 * their own bbPress compatibility layers for their themes. 173 181 * 174 * @since bbPress (r3032) 182 * @since 2.0.0 bbPress (r3032) 183 * 175 184 * @uses apply_filters() 176 185 * @return string … … 183 192 * Gets true/false if page is currently inside theme compatibility 184 193 * 185 * @since bbPress (r3265) 194 * @since 2.0.0 bbPress (r3265) 195 * 186 196 * @return bool 187 197 */ … … 199 209 * Sets true/false if page is currently inside theme compatibility 200 210 * 201 * @since bbPress (r3265) 211 * @since 2.0.0 bbPress (r3265) 212 * 202 213 * @param bool $set 203 214 * @return bool … … 215 226 * to override them, or see what files are being scanned for inclusion. 216 227 * 217 * @since bbPress (r3311)228 * @since 2.0.0 bbPress (r3311) 218 229 */ 219 230 function bbp_set_theme_compat_templates( $templates = array() ) { … … 229 240 * to override it, or see what file is being included. 230 241 * 231 * @since bbPress (r3311)242 * @since 2.0.0 bbPress (r3311) 232 243 */ 233 244 function bbp_set_theme_compat_template( $template = '' ) { … … 243 254 * if bbPress was able to find a more appropriate template. 244 255 * 245 * @since bbPress (r3926)256 * @since 2.1.0 bbPress (r3926) 246 257 */ 247 258 function bbp_set_theme_compat_original_template( $template = '' ) { … … 257 268 * if bbPress was able to find a more appropriate template. 258 269 * 259 * @since bbPress (r3926)270 * @since 2.1.0 bbPress (r3926) 260 271 */ 261 272 function bbp_is_theme_compat_original_template( $template = '' ) { … … 272 283 * Register a new bbPress theme package to the active theme packages array 273 284 * 274 * @since bbPress (r3829) 285 * @since 2.1.0 bbPress (r3829) 286 * 275 287 * @param array $theme 276 288 */ … … 299 311 * stop your average page template from complaining about it missing. 300 312 * 301 * @since bbPress (r3108) 313 * @since 2.0.0 bbPress (r3108) 314 * 302 315 * @global WP_Query $wp_query 303 316 * @global object $post … … 420 433 * template part as needed. 421 434 * 422 * @since bbPress (r3032) 435 * @since 2.0.0 bbPress (r3032) 436 * 423 437 * @param string $template 424 438 * @uses bbp_is_single_user() To check if page is single user … … 805 819 * Remove the canonical redirect to allow pretty pagination 806 820 * 807 * @since bbPress (r2628)821 * @since 2.0.0 bbPress (r2628) 808 822 * 809 823 * @param string $redirect_url Redirect url … … 863 877 * global in the event they need to be restored later. 864 878 * 865 * @since bbPress (r3251) 879 * @since 2.0.0 bbPress (r3251) 880 * 866 881 * @global WP_filter $wp_filter 867 882 * @global array $merged_filters … … 915 930 * bbp_remove_all_filters() 916 931 * 917 * @since bbPress (r3251) 932 * @since 2.0.0 bbPress (r3251) 933 * 918 934 * @global WP_filter $wp_filter 919 935 * @global array $merged_filters … … 966 982 * Force comments_status to 'closed' for bbPress post types 967 983 * 968 * @since bbPress (r3589) 984 * @since 2.1.0 bbPress (r3589) 985 * 969 986 * @param bool $open True if open, false if closed 970 987 * @param int $post_id ID of the post to check
Note: See TracChangeset
for help on using the changeset viewer.