Skip to content
Browse files

allow CSS stylesheet URL to be filtered

  • Loading branch information...
1 parent fdf86b4 commit 6bb765f753d8f44c04b5e788b127387292ee2f73 @alexkingorg alexkingorg committed Nov 5, 2012
Showing with 7 additions and 2 deletions.
  1. +4 −2 documents-shortcode.php
  2. +3 −0 readme.txt
View
6 documents-shortcode.php
@@ -4,7 +4,7 @@
Plugin URI: http://dougal.gunters.org/
Description: Shortcode to display a list of attached documents, optionally filtered by mime-type and/or file extension.
Author: Dougal Campbell
-Version: 1.0
+Version: 1.0.1
Min WP Version: 2.5
Author URI: http://dougal.gunters.org/
*/
@@ -89,7 +89,9 @@ function dc_document_shortcode_add_style() {
// Don't need plugin styles in dashboard
if ( is_admin() ) return;
- wp_register_style( 'dc_document_shortcode' , plugins_url( 'dc_documents.css', __FILE__ ) );
+ $css_url = apply_filters( 'dc_document_shortcode_css_url', plugins_url( 'dc_documents.css', __FILE__ ) );
+
+ wp_register_style( 'dc_document_shortcode' , $css_url );
wp_enqueue_style( 'dc_document_shortcode' );
}
View
3 readme.txt
@@ -112,6 +112,9 @@ future, and I am open to suggestions.
At this time, the only supported icon size is 32 x 32 pixels.
== Changelog ==
+= 1.0.1=
+* Allow CSS URL to be filtered.
+
= 1.0 =
* Initial release. 2012-09-10

0 comments on commit 6bb765f

Please sign in to comment.
Something went wrong with that request. Please try again.