Permalink
Browse files

Add breadcrumb_trail() arguments directly in the function call instea…

…d of using a filter.
  • Loading branch information...
justintadlock committed Aug 24, 2012
1 parent 4e83f6b commit be0480cf02b68a688111f3b41b012fe914ccece7
Showing with 9 additions and 18 deletions.
  1. +8 −17 functions.php
  2. +1 −1 header.php
View
@@ -75,9 +75,6 @@ function retro_fitted_theme_setup() {
)
);
- /* Filter the breadcrumb trail arguments. */
- add_filter( 'breadcrumb_trail_args', 'retro_fitted_breadcrumb_trail_args' );
-
/* Embed width/height defaults. */
add_filter( 'embed_defaults', 'retro_fitted_embed_defaults' );
@@ -93,20 +90,6 @@ function retro_fitted_theme_setup() {
add_filter( 'next_comments_link_attributes', 'retro_fitted_next_comments_link_attributes' );
}
-/**
- * Custom breadcrumb trail arguments.
- *
- * @since 0.1.0
- */
-function retro_fitted_breadcrumb_trail_args( $args ) {
-
- /* Change the text before the breadcrumb trail. */
- $args['before'] = __( 'You are here:', 'retro-fitted' );
-
- /* Return the filtered arguments. */
- return $args;
-}
-
/**
* Adds 'class="prev" to the previous comments link.
*
@@ -263,4 +246,12 @@ function retro_fitted_image_info() {
echo apply_atomic( 'image_info', $output );
}
+/**
+ * @since 0.1.0
+ * @deprecated 0.3.0
+ */
+function retro_fitted_breadcrumb_trail_args() {
+ _deprecated_function( __FUNCTION__, '0.3.0' );
+}
+
?>
View
@@ -63,4 +63,4 @@
<?php do_atomic( 'open_main' ); // retro-fitted_open_main ?>
- <?php if ( current_theme_supports( 'breadcrumb-trail' ) ) breadcrumb_trail(); ?>
+ <?php if ( current_theme_supports( 'breadcrumb-trail' ) ) breadcrumb_trail( array( 'before' => __( 'You are here:', 'retro-fitted' ) ) ); ?>

0 comments on commit be0480c

Please sign in to comment.