Commit 950a8861 authored by John James Jacoby's avatar John James Jacoby
Browse files

Merge branch 'master' of code.flox.io:stuttter/wp-pretty-filters

parents ea9efa38 214cba69
#posts-filter .wp-pretty-filters {
.wp-pretty-filters {
float: none;
clear: both;
......
jQuery( document ).ready( function( $ ) {
'use strict';
// Get the filters
var toptablenav = $( '#posts-filter .tablenav.top' ),
filters = toptablenav.find( '.actions:not(.bulkactions)' );
// Look for posts
var toptablenav = $( '#posts-filter .tablenav.top' );
// Add a class for custom styling
filters.addClass( 'wp-pretty-filters' );
// Maybe try comments
if ( ! toptablenav.length ) {
toptablenav = $( '#comments-form .tablenav.top' );
}
// Relocate
toptablenav.before( filters );
// Only proceed if toptablenav was found
if ( toptablenav.length ) {
var filters = toptablenav.find( '.actions:not(.bulkactions)' );
// Add a class for custom styling
filters.addClass( 'wp-pretty-filters' );
// Relocate
toptablenav.before( filters );
}
} );
=== WP Pretty Filters ===
Contributors: johnjamesjacoby, stuttter
Tags: jquery, filter, select, chosen
Tags: jquery, filter, select, filters
Requires at least: 4.3
Tested up to: 4.4
Stable tag: 0.1.0
Stable tag: 0.1.1
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9Q4F4EL5YJ62J
== Description ==
......@@ -13,6 +13,7 @@ WP Pretty Filters makes post filters better match what's already in Media & Atta
= Also checkout =
* [WP Chosen](https://wordpress.org/plugins/wp-chosen/ "Make long, unwieldy select boxes much more user-friendly.")
* [WP Reset Filters](https://wordpress.org/plugins/wp-reset-filters/ "Adds a 'Reset' button to filters.")
* [WP Event Calendar](https://wordpress.org/plugins/wp-event-calendar/ "The best way to manage events in WordPress.")
* [WP Term Meta](https://wordpress.org/plugins/wp-term-meta/ "Metadata, for taxonomy terms.")
* [WP Term Order](https://wordpress.org/plugins/wp-term-order/ "Sort taxonomy terms, your way.")
......@@ -56,5 +57,8 @@ http://github.com/stuttter/wp-pretty-filters/
== Changelog ==
= 0.1.1 =
* Support for Comments
= 0.1.0 =
* Initial release
......@@ -5,7 +5,7 @@
* Plugin URI: http://wordpress.org/plugins/wp-pretty-filters/
* Author: John James Jacoby
* Author URI: http://jjj.me
* Version: 0.1.0
* Version: 0.1.1
* Description: Makes post filters match Media & Attachments
* License: GPLv2 or later
*/
......@@ -46,5 +46,5 @@ function wp_pretty_filters_get_plugin_url() {
* @return int
*/
function wp_pretty_filters_get_asset_version() {
return 201511050003;
return 201511180001;
}
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