Skip to:
Content

BuddyPress.org

Changeset 4803


Ignore:
Timestamp:
07/22/2011 04:56:30 PM (14 years ago)
Author:
boonebgorges
Message:

Properly deprecate bp_get_forum_directory_permalink(), and replace it with proper function names throughout

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/deprecated/1.3.php

    r4738 r4803  
    319319}
    320320
     321/**
     322 * In BP 1.3, these functions were renamed for greater consistency
     323 */
     324function bp_forum_directory_permalink() {
     325    _deprecated_function( __FUNCTION__, '1.3', 'bp_forums_directory_permalink()' );
     326    bp_forums_directory_permalink();
     327}
     328    function bp_get_forum_directory_permalink() {
     329        _deprecated_function( __FUNCTION__, '1.3', 'bp_get_forums_directory_permalink()' );
     330        return bp_get_forums_directory_permalink();
     331    }
     332   
    321333/** Theme *********************************************************************/
    322334
  • trunk/bp-forums/bp-forums-screens.php

    r4596 r4803  
    5252                } else {
    5353                    bp_core_add_message( __( 'Please pick the group forum where you would like to post this topic.', 'buddypress' ), 'error' );
    54                     bp_core_redirect( add_query_arg( 'new', '', bp_get_forum_directory_permalink() ) );
     54                    bp_core_redirect( add_query_arg( 'new', '', bp_get_forums_directory_permalink() ) );
    5555                }
    5656
  • trunk/bp-themes/bp-default/forums/single/edit.php

    r4596 r4803  
    1414
    1515                    <li>
    16                         <a href="<?php bp_forum_directory_permalink(); ?>"><?php _e( 'Forum Directory', 'buddypress'); ?></a>
     16                        <a href="<?php bp_forums_directory_permalink(); ?>"><?php _e( 'Forum Directory', 'buddypress'); ?></a>
    1717                    </li>
    1818
  • trunk/bp-themes/bp-default/forums/single/forum.php

    r4596 r4803  
    2323
    2424                                <li>
    25                                     <a href="<?php bp_forum_directory_permalink() ?>"><?php _e( 'Forum Directory', 'buddypress') ?></a>
     25                                    <a href="<?php bp_forums_directory_permalink() ?>"><?php _e( 'Forum Directory', 'buddypress') ?></a>
    2626                                </li>
    2727
  • trunk/bp-themes/bp-default/forums/single/topic.php

    r4596 r4803  
    4141
    4242                                    <li>
    43                                         <a href="<?php bp_forum_directory_permalink() ?>"><?php _e( 'Forum Directory', 'buddypress') ?></a>
     43                                        <a href="<?php bp_forums_directory_permalink() ?>"><?php _e( 'Forum Directory', 'buddypress') ?></a>
    4444                                    </li>
    4545
  • trunk/bp-themes/bp-default/groups/single/forum.php

    r4596 r4803  
    2121
    2222                <li>
    23                     <a href="<?php bp_forum_directory_permalink() ?>"><?php _e( 'Forum Directory', 'buddypress') ?></a>
     23                    <a href="<?php bp_forums_directory_permalink() ?>"><?php _e( 'Forum Directory', 'buddypress') ?></a>
    2424                </li>
    2525
  • trunk/bp-themes/bp-default/groups/single/forum/edit.php

    r4596 r4803  
    1414
    1515                    <li>
    16                         <a href="<?php bp_forum_directory_permalink(); ?>"><?php _e( 'Forum Directory', 'buddypress'); ?></a>
     16                        <a href="<?php bp_forums_directory_permalink(); ?>"><?php _e( 'Forum Directory', 'buddypress'); ?></a>
    1717                    </li>
    1818
  • trunk/bp-themes/bp-default/groups/single/forum/topic.php

    r4759 r4803  
    1414
    1515                    <li>
    16                         <a href="<?php bp_forum_directory_permalink() ?>"><?php _e( 'Forum Directory', 'buddypress') ?></a>
     16                        <a href="<?php bp_forums_directory_permalink() ?>"><?php _e( 'Forum Directory', 'buddypress') ?></a>
    1717                    </li>
    1818
Note: See TracChangeset for help on using the changeset viewer.