Changeset 570985
- Timestamp:
- 07/12/2012 12:56:22 AM (12 years ago)
- Location:
- picasso/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
picasso/trunk/picasso.php
r499488 r570985 4 4 Plugin URI: http://www.johnciacia.com/picasso/ 5 5 Description: Extend the WordPress gallery be adding support of albums. 6 Version: 1.1. 26 Version: 1.1. 7 7 Author: John Ciacia 8 8 Author URI: http://www.johnciacia.com … … 44 44 45 45 // Allow plugins/themes to override the default gallery template. 46 $output = apply_filters( 'post_album', '', $attr);47 if 46 $output = apply_filters(); 47 if( $output != '' ) 48 48 return $output; 49 49 50 50 // We're trusting author input, so let's at least make sure it looks like a valid orderby statement 51 if ( isset( $attr['orderby'] ) ) {52 $att r['orderby'] = sanitize_sql_orderby( $attr['orderby'] );53 if ( !$att r['orderby'] )54 unset( $att r['orderby'] );51 if['orderby'] ) ) { 52 $att['orderby'] ); 53 if ( !$att['orderby'] ) 54 unset( $att['orderby'] ); 55 55 } 56 56 57 extract(shortcode_atts( array(57 extract(shortcode_atts(array( 58 58 'order' => 'ASC', 59 59 'orderby' => 'menu_order ID', … … 66 66 'include' => '', 67 67 'exclude' => '' 68 ), $att r));68 ), $att)); 69 69 70 70 … … 75 75 76 76 $defaults = array( 77 78 79 80 77 'post_parent' => $id, 78 'post_type' => 'page', 79 'numberposts' => -1, 80 'post_status' => 'publish', 81 81 'order' => $order, 82 82 'oderby' => $orderby -
picasso/trunk/readme.txt
r499488 r570985 3 3 Tags: album, gallery 4 4 Requires at least: 2.9 5 Tested up to: 3. 3.16 Stable tag: 1.1. 25 Tested up to: 3..1 6 Stable tag: 1.1. 7 7 8 8 This plugin allows users to create albums (gallery containers).
Note: See TracChangeset
for help on using the changeset viewer.