'', 'align' => 'alignnone', 'width' => '', 'caption' => '' ), $attr ); if ( 1 > (int) $attr['width'] || empty( $caption ) ) { return $val; } $id = ''; if ( $attr['id'] ) { $id = 'id="' . esc_attr( $attr['id'] ) . '" '; } return '
' . do_shortcode( $content ) . '

' . $attr['caption'] . '

'; } //add_filter( 'img_caption_shortcode', 'upright_img_caption_shortcode_filter', 10, 3 ); //////////// /** * adding a class to the ul of menu, this is used in fallback menu * * @param $menu * * @return string */ function upright_strip_div_menu_page( $menu ) { $menu = str_replace( '