Changeset 4328
- Timestamp:
- 11/03/2012 10:46:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/core/template-loader.php
r4249 r4328 288 288 */ 289 289 function bbp_get_forum_edit_template() { 290 $post_type = bbp_get_forum_post_type(); 291 $templates = array( 292 'single-' . $post_type . '-edit.php', // Single Forum Edit 293 'single-' . $post_type . '.php', // Single Forum 290 $templates = array( 291 'single-' . bbp_get_forum_post_type() . '-edit.php' // Single Forum Edit 294 292 ); 295 293 return bbp_get_query_template( 'forum_edit', $templates ); … … 338 336 */ 339 337 function bbp_get_topic_edit_template() { 340 $post_type = bbp_get_topic_post_type(); 341 $templates = array( 342 'single-' . $post_type . '-edit.php', // Single Topic Edit 343 'single-' . $post_type . '.php', // Single Topic 338 $templates = array( 339 'single-' . bbp_get_topic_post_type() . '-edit.php' // Single Topic Edit 344 340 ); 345 341 return bbp_get_query_template( 'topic_edit', $templates ); … … 356 352 */ 357 353 function bbp_get_topic_split_template() { 358 $post_type = bbp_get_topic_post_type(); 359 $templates = array( 360 'single-' . $post_type . '-split.php', // Topic Split 354 $templates = array( 355 'single-' . bbp_get_topic_post_type() . '-split.php', // Topic Split 361 356 ); 362 357 return bbp_get_query_template( 'topic_split', $templates ); … … 373 368 */ 374 369 function bbp_get_topic_merge_template() { 375 $post_type = bbp_get_topic_post_type(); 376 $templates = array( 377 'single-' . $post_type . '-merge.php', // Topic Merge 370 $templates = array( 371 'single-' . bbp_get_topic_post_type() . '-merge.php', // Topic Merge 378 372 ); 379 373 return bbp_get_query_template( 'topic_merge', $templates ); … … 406 400 */ 407 401 function bbp_get_reply_edit_template() { 408 $post_type = bbp_get_reply_post_type(); 409 $templates = array( 410 'single-' . $post_type . '-edit.php', // Single Reply Edit 411 'single-' . $post_type . '.php', // Single Reply 402 $templates = array( 403 'single-' . bbp_get_reply_post_type() . '-edit.php' // Single Reply Edit 412 404 ); 413 405 return bbp_get_query_template( 'reply_edit', $templates ); … … 447 439 $templates = array( 448 440 'taxonomy-' . $tt_slug . '-edit.php', // Single Topic Tag Edit slug 449 'taxonomy-' . $tt_id . '-edit.php', // Single Topic Tag Edit ID 450 'taxonomy-' . $tt_slug . '.php', // Single Topic Tag slug 451 'taxonomy-' . $tt_id . '.php', // Single Topic Tag ID 441 'taxonomy-' . $tt_id . '-edit.php' // Single Topic Tag Edit ID 452 442 ); 453 443 return bbp_get_query_template( 'topic_tag_edit', $templates );
Note: See TracChangeset
for help on using the changeset viewer.