Making WordPress.org

Changeset 917


Ignore:
Timestamp:
10/21/2014 02:05:51 AM (10 years ago)
Author:
nacin
Message:

Revert [916] for security reasons.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wcorg-misc.php

    r916 r917  
    3737 */
    3838add_filter( 'widget_text', 'do_shortcode' );
    39 
    40 /**
    41  * Output a menu via a shortcode
    42  *
    43  * @param array $attributes
    44  *
    45  * @return string
    46  */
    47 function wcorg_shortcode_menu( $attributes ) {
    48     if ( ! isset( $attributes['depth'] ) ) {
    49         $attributes['depth'] = 1;
    50     }
    51 
    52     $attributes['echo'] = false;
    53 
    54     return wp_nav_menu( $attributes );
    55 }
    56 add_shortcode( 'menu', 'wcorg_shortcode_menu' );
    5739
    5840/**
Note: See TracChangeset for help on using the changeset viewer.