Commit 214cba69 authored by John James Jacoby's avatar John James Jacoby
Browse files

Check length.

parent cde922fa
#posts-filter .wp-pretty-filters {
.wp-pretty-filters {
float: none;
clear: both;
......
jQuery( document ).ready( function( $ ) {
'use strict';
// Get the filters
// Look for posts
var toptablenav = $( '#posts-filter .tablenav.top' );
// Maybe try comments
if ( 'undefined' === typeof( toptablenav ) ) {
toptablenav = $( '#commentsform .tablenav.top' );
if ( ! toptablenav.length ) {
toptablenav = $( '#comments-form .tablenav.top' );
}
// Only proceed if toptablenav was found
if ( 'undefined' !== typeof( toptablenav ) ) {
if ( toptablenav.length ) {
var filters = toptablenav.find( '.actions:not(.bulkactions)' );
// Add a class for custom styling
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment