Media Library Assistant - Version 0.60

Version Description

  • New: Enhanced Search Media box. Search can be extended to the name/slug, ALT text and caption fields. The connector between search terms can be "and" or "or".
  • New: The ID/Parent and Parent ID columns now contain a link to a parent-specific search of the Media Library.
  • New: Menu Order added as sortable column, to Edit Single Item and to Quick Edit area.
  • New: The Author column now contains a link to an author-specific search of the Media Library.
  • New: The Attached to column now contains a link to the Edit Post/Page screen for the parent.
  • New: For WordPress version 3.5, the WordPress standard Edit Media screen replaces the MLA Edit Single Item screen.
  • Fix: HTML markup is no longer escaped in [mla_gallery] captions; caption processing now matches the WordPress [gallery] shortcode.
  • Fix: For WordPress version 3.5, duplicate "edit taxonomy" submenu entries will not appear.
Download this release

Release Info

Developer dglingren
Plugin Icon 128x128 Media Library Assistant
Version 0.60
Comparing to
See all releases

Code changes from version 0.50 to 0.60

css/mla-style.css CHANGED
@@ -112,6 +112,10 @@ textarea[readonly] {
112
  width: 5em
113
  }
114
 
 
 
 
 
115
  .quick-edit-row-attachment fieldset.inline-edit-col-right label span.title,
116
  .bulk-edit-row-attachment fieldset.inline-edit-col-right label.inline-edit-tags span.title {
117
  width: 99%
112
  width: 5em
113
  }
114
 
115
+ .quick-edit-row-attachment fieldset.inline-edit-col-left label.inline-edit-menu-order span.input-text-wrap {
116
+ width: 5em
117
+ }
118
+
119
  .quick-edit-row-attachment fieldset.inline-edit-col-right label span.title,
120
  .bulk-edit-row-attachment fieldset.inline-edit-col-right label.inline-edit-tags span.title {
121
  width: 99%
includes/class-mla-data.php CHANGED
@@ -250,11 +250,19 @@ class MLAData {
250
  'orderby' => MLASettings::mla_get_option( 'default_orderby' ),
251
  'order' => MLASettings::mla_get_option( 'default_order' ),
252
  'post_type' => 'attachment',
253
- 'post_status' => 'inherit'
 
 
254
  );
255
 
256
  foreach ( $raw_request as $key => $value ) {
257
  switch ( $key ) {
 
 
 
 
 
 
258
  case 'mla-tax':
259
  case 'mla-term':
260
  $clean_request[ $key ] = sanitize_key( $value );
@@ -275,6 +283,8 @@ class MLAData {
275
  /*
276
  * ['m'] - filter by year and month of post, e.g., 201204
277
  */
 
 
278
  case 'm':
279
  $clean_request[ $key ] = absint( $value );
280
  break;
@@ -302,15 +312,49 @@ class MLAData {
302
  if ( 'trash' == $value )
303
  $clean_request['post_status'] = 'trash';
304
  break;
 
 
 
 
 
 
 
 
 
 
 
305
  default:
306
  // ignore anything else in $_REQUEST
307
  } // switch $key
308
  } // foreach $raw_request
309
 
 
 
 
310
  self::$query_parameters = array( );
311
  self::$query_parameters['detached'] = isset( $clean_request['detached'] );
312
  self::$query_parameters['orderby'] = $clean_request['orderby'];
313
  self::$query_parameters['order'] = $clean_request['order'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
314
 
315
  /*
316
  * We have to handle custom field/post_meta values here
@@ -407,6 +451,7 @@ class MLAData {
407
  * @return object WP_Query object with query results
408
  */
409
  private static function _execute_list_table_query( $request ) {
 
410
  add_filter( 'posts_join', 'MLAData::mla_query_posts_join_filter' );
411
  add_filter( 'posts_where', 'MLAData::mla_query_posts_where_filter' );
412
  add_filter( 'posts_orderby', 'MLAData::mla_query_posts_orderby_filter' );
@@ -416,10 +461,85 @@ class MLAData {
416
  remove_filter( 'posts_orderby', 'MLAData::mla_query_posts_orderby_filter' );
417
  remove_filter( 'posts_where', 'MLAData::mla_query_posts_where_filter' );
418
  remove_filter( 'posts_join', 'MLAData::mla_query_posts_join_filter' );
 
419
 
420
  return $results;
421
  }
422
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
423
  /**
424
  * Adds a JOIN clause, if required
425
  *
@@ -438,7 +558,9 @@ class MLAData {
438
  * build an intermediate table and modify the JOIN to include posts with
439
  * no value for this meta data field.
440
  */
441
- if ( '_wp_attachment_image_alt' == self::$query_parameters['orderby'] ) {
 
 
442
  $view_name = MLASettings::$mla_alt_text_view;
443
  $join_clause .= " LEFT JOIN {$view_name} ON ({$table_prefix}posts.ID = {$view_name}.post_id)";
444
  }
250
  'orderby' => MLASettings::mla_get_option( 'default_orderby' ),
251
  'order' => MLASettings::mla_get_option( 'default_order' ),
252
  'post_type' => 'attachment',
253
+ 'post_status' => 'inherit',
254
+ 'mla-search-connector' => 'AND',
255
+ 'mla-search-fields' => array ( )
256
  );
257
 
258
  foreach ( $raw_request as $key => $value ) {
259
  switch ( $key ) {
260
+ /*
261
+ * 'sentence' and 'exact' modify the keyword search ('s')
262
+ * Their value is not important, only their presence.
263
+ */
264
+ case 'sentence':
265
+ case 'exact':
266
  case 'mla-tax':
267
  case 'mla-term':
268
  $clean_request[ $key ] = sanitize_key( $value );
283
  /*
284
  * ['m'] - filter by year and month of post, e.g., 201204
285
  */
286
+ case 'post_parent':
287
+ case 'author':
288
  case 'm':
289
  $clean_request[ $key ] = absint( $value );
290
  break;
312
  if ( 'trash' == $value )
313
  $clean_request['post_status'] = 'trash';
314
  break;
315
+ /*
316
+ * ['s'] - Search Media by one or more keywords
317
+ * ['mla-search-connector'], ['mla-search-fields'] - Search Media options
318
+ */
319
+ case 's':
320
+ $clean_request[ $key ] = stripslashes( trim( $value ) );
321
+ break;
322
+ case 'mla-search-connector':
323
+ case 'mla-search-fields':
324
+ $clean_request[ $key ] = $value;
325
+ break;
326
  default:
327
  // ignore anything else in $_REQUEST
328
  } // switch $key
329
  } // foreach $raw_request
330
 
331
+ /*
332
+ * Pass query parameters to the filters for _execute_list_table_query
333
+ */
334
  self::$query_parameters = array( );
335
  self::$query_parameters['detached'] = isset( $clean_request['detached'] );
336
  self::$query_parameters['orderby'] = $clean_request['orderby'];
337
  self::$query_parameters['order'] = $clean_request['order'];
338
+
339
+ /*
340
+ * We will handle keyword search in the mla_query_posts_search_filter.
341
+ * There must be at least one search field to do a search.
342
+ */
343
+ if ( isset( $clean_request['s'] ) ) {
344
+ if ( ! empty( $clean_request['mla-search-fields'] ) ) {
345
+ self::$query_parameters['s'] = $clean_request['s'];
346
+ self::$query_parameters['mla-search-connector'] = $clean_request['mla-search-connector'];
347
+ self::$query_parameters['mla-search-fields'] = $clean_request['mla-search-fields'];
348
+ self::$query_parameters['sentence'] = isset( $clean_request['sentence'] );
349
+ self::$query_parameters['exact'] = isset( $clean_request['exact'] );
350
+ } // !empty
351
+
352
+ unset( $clean_request['s'] );
353
+ unset( $clean_request['mla-search-connector'] );
354
+ unset( $clean_request['mla-search-fields'] );
355
+ unset( $clean_request['sentence'] );
356
+ unset( $clean_request['exact'] );
357
+ }
358
 
359
  /*
360
  * We have to handle custom field/post_meta values here
451
  * @return object WP_Query object with query results
452
  */
453
  private static function _execute_list_table_query( $request ) {
454
+ add_filter( 'posts_search', 'MLAData::mla_query_posts_search_filter', 10, 2 ); // $search, &$this
455
  add_filter( 'posts_join', 'MLAData::mla_query_posts_join_filter' );
456
  add_filter( 'posts_where', 'MLAData::mla_query_posts_where_filter' );
457
  add_filter( 'posts_orderby', 'MLAData::mla_query_posts_orderby_filter' );
461
  remove_filter( 'posts_orderby', 'MLAData::mla_query_posts_orderby_filter' );
462
  remove_filter( 'posts_where', 'MLAData::mla_query_posts_where_filter' );
463
  remove_filter( 'posts_join', 'MLAData::mla_query_posts_join_filter' );
464
+ remove_filter( 'posts_search', 'MLAData::mla_query_posts_search_filter' );
465
 
466
  return $results;
467
  }
468
 
469
+ /**
470
+ * Adds a keyword search to the WHERE clause, if required
471
+ *
472
+ * Defined as public because it's a filter.
473
+ *
474
+ * @since 0.60
475
+ *
476
+ * @param string query clause before modification
477
+ * @param object WP_Query object
478
+ *
479
+ * @return string query clause after keyword search addition
480
+ */
481
+ public static function mla_query_posts_search_filter( $search_string, &$query_object ) {
482
+ global $table_prefix, $wpdb;
483
+
484
+ /*
485
+ * Process the keyword search argument, if present.
486
+ */
487
+ $search_clause = '';
488
+ if ( isset( self::$query_parameters['s'] ) ) {
489
+ if ( self::$query_parameters['sentence'] ) {
490
+ $search_terms = array( self::$query_parameters['s'] );
491
+ } else {
492
+ preg_match_all('/".*?("|$)|((?<=[\r\n\t ",+])|^)[^\r\n\t ",+]+/', self::$query_parameters['s'], $matches);
493
+ $search_terms = array_map('_search_terms_tidy', $matches[0]);
494
+ }
495
+
496
+ $fields = self::$query_parameters['mla-search-fields'];
497
+ $percent = self::$query_parameters['exact'] ? '' : '%';
498
+ $connector = '';
499
+ foreach( $search_terms as $term ) {
500
+ $term = esc_sql( like_escape( $term ) );
501
+ $inner_connector = '';
502
+ $search_clause .= "{$connector}(";
503
+
504
+ if ( in_array( 'content', $fields ) ) {
505
+ $search_clause .= "{$inner_connector}({$wpdb->posts}.post_content LIKE '{$percent}{$term}{$percent}')";
506
+ $inner_connector = ' OR ';
507
+ }
508
+
509
+ if ( in_array( 'title', $fields ) ) {
510
+ $search_clause .= "{$inner_connector}({$wpdb->posts}.post_title LIKE '{$percent}{$term}{$percent}')";
511
+ $inner_connector = ' OR ';
512
+ }
513
+
514
+ if ( in_array( 'excerpt', $fields ) ) {
515
+ $search_clause .= "{$inner_connector}({$wpdb->posts}.post_excerpt LIKE '{$percent}{$term}{$percent}')";
516
+ $inner_connector = ' OR ';
517
+ }
518
+
519
+ if ( in_array( 'alt-text', $fields ) ) {
520
+ $view_name = MLASettings::$mla_alt_text_view;
521
+ $search_clause .= "{$inner_connector}({$view_name}.meta_value LIKE '{$percent}{$term}{$percent}')";
522
+ $inner_connector = ' OR ';
523
+ }
524
+
525
+ if ( in_array( 'name', $fields ) ) {
526
+ $search_clause .= "{$inner_connector}({$wpdb->posts}.post_name LIKE '{$percent}{$term}{$percent}')";
527
+ }
528
+
529
+ $search_clause .= ")";
530
+ $connector = ' ' . self::$query_parameters['mla-search-connector'] . ' ';
531
+ } // foreach
532
+
533
+ if ( !empty($search_clause) ) {
534
+ $search_clause = " AND ({$search_clause}) ";
535
+ if ( !is_user_logged_in() )
536
+ $search_clause .= " AND ($wpdb->posts.post_password = '') ";
537
+ }
538
+ } // isset 's'
539
+
540
+ return $search_clause;
541
+ }
542
+
543
  /**
544
  * Adds a JOIN clause, if required
545
  *
558
  * build an intermediate table and modify the JOIN to include posts with
559
  * no value for this meta data field.
560
  */
561
+ if ( '_wp_attachment_image_alt' == self::$query_parameters['orderby']
562
+ || isset( self::$query_parameters['s'] )
563
+ ) {
564
  $view_name = MLASettings::$mla_alt_text_view;
565
  $join_clause .= " LEFT JOIN {$view_name} ON ({$table_prefix}posts.ID = {$view_name}.post_id)";
566
  }
includes/class-mla-list-table.php CHANGED
@@ -77,6 +77,7 @@ class MLA_List_Table extends WP_List_Table {
77
  'post_title' => 'Title',
78
  'post_name' => 'Name',
79
  'parent' => 'Parent ID',
 
80
  'featured' => 'Featured in',
81
  'inserted' => 'Inserted in',
82
  'alt_text' => 'ALT Text',
@@ -112,17 +113,18 @@ class MLA_List_Table extends WP_List_Table {
112
  0 => 'post_title',
113
  1 => 'post_name',
114
  2 => 'parent',
 
115
  // 'featured',
116
  // 'inserted,
117
- 3 => 'alt_text',
118
- 4 => 'caption',
119
- 5 => 'description',
120
- 6 => 'post_mime_type',
121
- 7 => 'base_file',
122
- 8 => 'date',
123
- 9 => 'modified',
124
- 10 => 'author',
125
- 11 => 'attached_to',
126
  // taxonomy columns added by mla_admin_init_action
127
  );
128
 
@@ -147,6 +149,7 @@ class MLA_List_Table extends WP_List_Table {
147
  'post_title' => array('post_title',false),
148
  'post_name' => array('post_name',false),
149
  'parent' => array('post_parent',false),
 
150
  // 'featured' => array('featured',false),
151
  // 'inserted' => array('inserted',false),
152
  'alt_text' => array('_wp_attachment_image_alt',false),
@@ -504,7 +507,15 @@ class MLA_List_Table extends WP_List_Table {
504
  if ( $this->is_trash )
505
  $actions['restore'] = '<a class="submitdelete" href="' . add_query_arg( $view_args, wp_nonce_url( '?mla_admin_action=' . MLA::MLA_ADMIN_SINGLE_RESTORE, MLA::MLA_ADMIN_NONCE ) ) . '" title="Restore this item from the Trash">Restore</a>';
506
  else {
507
- $actions['edit'] = '<a href="' . add_query_arg( $view_args, wp_nonce_url( '?mla_admin_action=' . MLA::MLA_ADMIN_SINGLE_EDIT_DISPLAY, MLA::MLA_ADMIN_NONCE ) ) . '" title="Edit this item">Edit</a>';
 
 
 
 
 
 
 
 
508
  $actions['inline hide-if-no-js'] = '<a class="editinline" href="#" title="Edit this item inline">Quick Edit</a>';
509
  }
510
  } // edit_post
@@ -548,6 +559,7 @@ class MLA_List_Table extends WP_List_Table {
548
  }
549
 
550
  $inline_data .= ' <div class="post_parent">' . $item->post_parent . "</div>\r\n";
 
551
  $inline_data .= ' <div class="post_author">' . $item->post_author . "</div>\r\n";
552
 
553
  $taxonomies = get_object_taxonomies( 'attachment', 'objects' );
@@ -576,11 +588,19 @@ class MLA_List_Table extends WP_List_Table {
576
  */
577
  function column_ID_parent( $item ) {
578
  $row_actions = self::_build_rollover_actions( $item, 'ID_parent' );
579
-
 
 
 
 
 
 
 
 
580
  if ( !empty( $row_actions ) ) {
581
- return sprintf( '%1$s<br><span style="color:silver">(parent:%2$s)</span><br>%3$s%4$s', /*%1$s*/ $item->ID, /*%2$s*/ $item->post_parent, /*%3$s*/ $this->row_actions( $row_actions ), /*%4$s*/ $this->_build_inline_data( $item ) );
582
  } else {
583
- return sprintf( '%1$s<br><span style="color:silver">(parent:%2$s)</span>', /*%1$s*/ $item->ID, /*%2$s*/ $item->post_parent );
584
  }
585
  }
586
 
@@ -660,7 +680,27 @@ class MLA_List_Table extends WP_List_Table {
660
  * @return string HTML markup to be placed inside the column
661
  */
662
  function column_parent( $item ) {
663
- return (string) $item->post_parent;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
664
  }
665
 
666
  /**
@@ -846,7 +886,11 @@ class MLA_List_Table extends WP_List_Table {
846
  $user = get_user_by( 'id', $item->post_author );
847
 
848
  if ( isset( $user->data->display_name ) )
849
- return $user->data->display_name;
 
 
 
 
850
  else
851
  return 'unknown';
852
  }
@@ -866,7 +910,11 @@ class MLA_List_Table extends WP_List_Table {
866
  $parent_date = '';
867
 
868
  if ( isset( $item->parent_title ) )
869
- $parent_title = esc_attr( $item->parent_title );
 
 
 
 
870
  else
871
  $parent_title = '(Unattached)';
872
 
77
  'post_title' => 'Title',
78
  'post_name' => 'Name',
79
  'parent' => 'Parent ID',
80
+ 'menu_order' => 'Menu Order',
81
  'featured' => 'Featured in',
82
  'inserted' => 'Inserted in',
83
  'alt_text' => 'ALT Text',
113
  0 => 'post_title',
114
  1 => 'post_name',
115
  2 => 'parent',
116
+ 3 => 'menu_order',
117
  // 'featured',
118
  // 'inserted,
119
+ 4 => 'alt_text',
120
+ 5 => 'caption',
121
+ 6 => 'description',
122
+ 7 => 'post_mime_type',
123
+ 8 => 'base_file',
124
+ 9 => 'date',
125
+ 10 => 'modified',
126
+ 11 => 'author',
127
+ 12 => 'attached_to',
128
  // taxonomy columns added by mla_admin_init_action
129
  );
130
 
149
  'post_title' => array('post_title',false),
150
  'post_name' => array('post_name',false),
151
  'parent' => array('post_parent',false),
152
+ 'menu_order' => array('menu_order',false),
153
  // 'featured' => array('featured',false),
154
  // 'inserted' => array('inserted',false),
155
  'alt_text' => array('_wp_attachment_image_alt',false),
507
  if ( $this->is_trash )
508
  $actions['restore'] = '<a class="submitdelete" href="' . add_query_arg( $view_args, wp_nonce_url( '?mla_admin_action=' . MLA::MLA_ADMIN_SINGLE_RESTORE, MLA::MLA_ADMIN_NONCE ) ) . '" title="Restore this item from the Trash">Restore</a>';
509
  else {
510
+ /*
511
+ * Use the WordPress Edit Media screen for 3.5 and later
512
+ */
513
+ if( MLATest::$wordpress_3point5_plus ) {
514
+ $actions['edit'] = '<a href="' . admin_url( 'post.php' ) . '?post=' . $item->ID . '&action=edit&mla_source=edit" title="Edit this item">Edit</a>';
515
+ }
516
+ else {
517
+ $actions['edit'] = '<a href="' . add_query_arg( $view_args, wp_nonce_url( '?mla_admin_action=' . MLA::MLA_ADMIN_SINGLE_EDIT_DISPLAY, MLA::MLA_ADMIN_NONCE ) ) . '" title="Edit this item">Edit</a>';
518
+ }
519
  $actions['inline hide-if-no-js'] = '<a class="editinline" href="#" title="Edit this item inline">Quick Edit</a>';
520
  }
521
  } // edit_post
559
  }
560
 
561
  $inline_data .= ' <div class="post_parent">' . $item->post_parent . "</div>\r\n";
562
+ $inline_data .= ' <div class="menu_order">' . $item->menu_order . "</div>\r\n";
563
  $inline_data .= ' <div class="post_author">' . $item->post_author . "</div>\r\n";
564
 
565
  $taxonomies = get_object_taxonomies( 'attachment', 'objects' );
588
  */
589
  function column_ID_parent( $item ) {
590
  $row_actions = self::_build_rollover_actions( $item, 'ID_parent' );
591
+ if ( $item->post_parent )
592
+ $parent = sprintf( '<a href="%1$s">(parent:%2$s)</a>', esc_url( add_query_arg( array(
593
+ 'page' => 'mla-menu',
594
+ 'post_parent' => $item->post_parent,
595
+ 'heading_suffix' => urlencode( 'Parent: ' . $item->parent_title )
596
+ ), 'upload.php' ) ), (string) $item->post_parent );
597
+ else
598
+ $parent = 'parent:0';
599
+
600
  if ( !empty( $row_actions ) ) {
601
+ return sprintf( '%1$s<br><span style="color:silver">%2$s</span><br>%3$s%4$s', /*%1$s*/ $item->ID, /*%2$s*/ $parent, /*%3$s*/ $this->row_actions( $row_actions ), /*%4$s*/ $this->_build_inline_data( $item ) );
602
  } else {
603
+ return sprintf( '%1$s<br><span style="color:silver">%2$s</span>', /*%1$s*/ $item->ID, /*%2$s*/ $parent );
604
  }
605
  }
606
 
680
  * @return string HTML markup to be placed inside the column
681
  */
682
  function column_parent( $item ) {
683
+ if ( $item->post_parent ){
684
+ return sprintf( '<a href="%s">%s</a>', esc_url( add_query_arg( array(
685
+ 'page' => 'mla-menu',
686
+ 'post_parent' => $item->post_parent,
687
+ 'heading_suffix' => urlencode( 'Parent: ' . $item->parent_title )
688
+ ), 'upload.php' ) ), (string) $item->post_parent );
689
+ }
690
+ else
691
+ return (string) $item->post_parent;
692
+ }
693
+
694
+ /**
695
+ * Supply the content for a custom column
696
+ *
697
+ * @since 0.60
698
+ *
699
+ * @param array A singular attachment (post) object
700
+ * @return string HTML markup to be placed inside the column
701
+ */
702
+ function column_menu_order( $item ) {
703
+ return (string) $item->menu_order;
704
  }
705
 
706
  /**
886
  $user = get_user_by( 'id', $item->post_author );
887
 
888
  if ( isset( $user->data->display_name ) )
889
+ return sprintf( '<a href="%s">%s</a>', esc_url( add_query_arg( array(
890
+ 'page' => 'mla-menu',
891
+ 'author' => $item->post_author,
892
+ 'heading_suffix' => urlencode( $user->data->display_name )
893
+ ), 'upload.php' ) ), esc_html( $user->data->display_name ) );
894
  else
895
  return 'unknown';
896
  }
910
  $parent_date = '';
911
 
912
  if ( isset( $item->parent_title ) )
913
+ // $parent_title = esc_attr( $item->parent_title );
914
+ $parent_title = sprintf( '<a href="%s">%s</a>', esc_url( add_query_arg( array(
915
+ 'post' => $item->post_parent,
916
+ 'action' => 'edit'
917
+ ), 'post.php' ) ), esc_attr( $item->parent_title ) );
918
  else
919
  $parent_title = '(Unattached)';
920
 
includes/class-mla-main.php CHANGED
@@ -38,7 +38,7 @@ class MLA {
38
  *
39
  * @var string
40
  */
41
- const CURRENT_MLA_VERSION = '0.50';
42
 
43
  /**
44
  * Minimum version of PHP required for this plugin
@@ -178,6 +178,10 @@ class MLA {
178
  /**
179
  * Initialization function, similar to __construct()
180
  *
 
 
 
 
181
  * @since 0.1
182
  *
183
  * @return void
@@ -251,11 +255,13 @@ class MLA {
251
  * Add the submenu pages
252
  *
253
  * Add a submenu page in the "Media" section,
254
- * add submenu page(s) for attachment taxonomies,
255
- * add filter to clean up taxonomy submenu labels
256
- * add settings page in the "Settings" section,
257
  * add settings link in the Plugins section entry for MLA.
258
  *
 
 
 
 
259
  * @since 0.1
260
  *
261
  * @return void
@@ -269,93 +275,79 @@ class MLA {
269
  $taxonomies = get_object_taxonomies( 'attachment', 'objects' );
270
  if ( !empty( $taxonomies ) ) {
271
  foreach ( $taxonomies as $tax_name => $tax_object ) {
272
- $hook = add_submenu_page( 'upload.php', $tax_object->label, $tax_object->label, 'manage_categories', 'mla-edit-tax-' . $tax_name, 'MLA::mla_edit_tax_redirect' );
273
- add_action( 'load-' . $hook, 'MLA::mla_edit_tax_redirect' );
 
 
 
 
 
 
274
  /*
275
  * The page_hook we need for taxonomy edits is slightly different
276
  */
277
  $hook = 'edit-' . $tax_name;
278
  self::$page_hooks[ $hook ] = 't_' . $tax_name;
279
- }
280
 
281
  add_action( 'load-edit-tags.php', 'MLA::mla_add_help_tab' );
282
  }
283
 
284
- add_filter( 'parent_file', 'MLA::mla_modify_parent_menu', 10, 1 );
 
 
 
 
 
 
 
 
 
285
  }
286
 
287
  /**
288
- * Add the "XX Entries per page" filter to the Screen Options tab
289
  *
290
- * @since 0.1
291
  *
292
  * @return void
293
  */
294
- public static function mla_add_menu_options( ) {
295
- $option = 'per_page';
296
-
297
- $args = array(
298
- 'label' => 'Entries per page',
299
- 'default' => 10,
300
- 'option' => 'mla_entries_per_page'
301
- );
302
-
303
- add_screen_option( $option, $args );
304
  }
305
 
306
  /**
307
- * Only show screen options on the table-list screen
308
- *
309
- * @since 0.1
310
- *
311
- * @param boolean True to display "Screen Options", false to suppress them
312
- * @param string Name of the page being loaded
313
- *
314
- * @return boolean True to display "Screen Options", false to suppress them
315
- */
316
- public static function mla_screen_options_show_screen_filter( $show_screen, $this_screen ) {
317
- if ( isset( $_REQUEST['mla_admin_action'] ) && ( $_REQUEST['mla_admin_action'] == self::MLA_ADMIN_SINGLE_EDIT_DISPLAY ) )
318
- return false;
319
- else
320
- return $show_screen;
321
- }
322
-
323
- /**
324
- * Save the "Entries per page" option set by this user
325
- *
326
- * @since 0.1
327
  *
328
- * @param boolean Unknown - always false?
329
- * @param string Name of the option being changed
330
- * @param string New value of the option
331
  *
332
- * @return string|void New value if this is our option, otherwise nothing
333
  */
334
- public static function mla_set_screen_option_filter( $status, $option, $value )
335
- {
336
- if ( 'mla_entries_per_page' == $option )
337
- return $value;
338
  }
339
 
340
  /**
341
- * Redirect to the Edit Tags/Categories page
342
- *
343
- * The custom taxonomy add/edit submenu entries go to "upload.php" by default.
344
- * This filter is the only way to redirect them to the correct WordPress page.
345
  *
346
  * @since 0.1
347
  *
348
  * @return void
349
  */
350
- public static function mla_edit_tax_redirect( )
351
- {
352
- $screen = get_current_screen();
353
-
354
- if ( isset( $_REQUEST['page'] ) && ( substr( $_REQUEST['page'], 0, 13 ) == 'mla-edit-tax-' ) ) {
355
- $taxonomy = substr( $_REQUEST['page'], 13 );
356
- wp_redirect( admin_url( 'edit-tags.php?taxonomy=' . $taxonomy . '&post_type=attachment' ), 302 );
357
- exit;
358
- }
 
359
  }
360
 
361
  /**
@@ -368,7 +360,7 @@ class MLA {
368
  public static function mla_add_help_tab( )
369
  {
370
  $screen = get_current_screen();
371
-
372
  /*
373
  * Is this one of our pages?
374
  */
@@ -444,12 +436,77 @@ class MLA {
444
  }
445
  }
446
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
447
  /**
448
  * Cleanup menus for Edit Tags/Categories page
449
  *
450
- * The submenu entries for custom taxonomies under the "Media" menu are not set up
451
- * correctly by WordPress, so this function cleans them up, redirecting the request
452
- * to the right WordPress page for editing/adding taxonomy terms.
 
 
 
453
  *
454
  * @since 0.1
455
  *
@@ -457,9 +514,21 @@ class MLA {
457
  *
458
  * @return string The updated top-level menu page
459
  */
460
- public static function mla_modify_parent_menu( $parent_file ) {
461
- global $submenu;
462
 
 
 
 
 
 
 
 
 
 
 
 
 
463
  if ( isset( $_REQUEST['taxonomy'] ) ) {
464
  $taxonomies = get_object_taxonomies( 'attachment', 'objects' );
465
 
@@ -626,6 +695,8 @@ class MLA {
626
 
627
  if ( !empty( $_REQUEST['heading_suffix'] ) ) {
628
  echo ' - ' . $_REQUEST['heading_suffix'] . "</h2>\r\n";
 
 
629
  } else
630
  echo "</h2>\r\n";
631
 
@@ -644,7 +715,58 @@ class MLA {
644
 
645
  // Forms are NOT created automatically, so you need to wrap the table in one to use features like bulk actions
646
  echo '<form id="mla-filter" action="' . admin_url( 'upload.php' ) . "\" method=\"get\">\r\n";
647
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
648
  /*
649
  * We also need to ensure that the form posts back to our current page and remember all the view arguments
650
  */
@@ -1142,6 +1264,7 @@ class MLA {
1142
  'post_date' => $post_data['post_date'],
1143
  'post_modified' => $post_data['post_modified'],
1144
  'post_parent' => $post_data['post_parent'],
 
1145
  'attachment_icon' => wp_get_attachment_image( $post_id, array( 160, 120 ), true ),
1146
  'file_name' => esc_html( $post_data['mla_references']['file'] ),
1147
  'width' => $width,
@@ -1276,6 +1399,15 @@ class MLA {
1276
  $message .= sprintf( 'Changing Parent from "%1$s" to "%2$s"<br>', $post_data[ $key ], $value );
1277
  $updates[ $key ] = $value;
1278
  break;
 
 
 
 
 
 
 
 
 
1279
  case 'post_author':
1280
  if ( $value == $post_data[ $key ] )
1281
  break;
38
  *
39
  * @var string
40
  */
41
+ const CURRENT_MLA_VERSION = '0.60';
42
 
43
  /**
44
  * Minimum version of PHP required for this plugin
178
  /**
179
  * Initialization function, similar to __construct()
180
  *
181
+ * This function contains add_action and add_filter calls
182
+ * to set up the Ajax handlers, enqueue JavaScript and CSS files, and
183
+ * set up the Assistant submenu.
184
+ *
185
  * @since 0.1
186
  *
187
  * @return void
255
  * Add the submenu pages
256
  *
257
  * Add a submenu page in the "Media" section,
258
+ * add settings page in the "Settings" section.
 
 
259
  * add settings link in the Plugins section entry for MLA.
260
  *
261
+ * For WordPress versions before 3.5,
262
+ * add submenu page(s) for attachment taxonomies,
263
+ * add filter to clean up taxonomy submenu labels.
264
+ *
265
  * @since 0.1
266
  *
267
  * @return void
275
  $taxonomies = get_object_taxonomies( 'attachment', 'objects' );
276
  if ( !empty( $taxonomies ) ) {
277
  foreach ( $taxonomies as $tax_name => $tax_object ) {
278
+ /*
279
+ * WordPress 3.5 adds native support for taxonomies
280
+ */
281
+ if( ! MLATest::$wordpress_3point5_plus ) {
282
+ $hook = add_submenu_page( 'upload.php', $tax_object->label, $tax_object->label, 'manage_categories', 'mla-edit-tax-' . $tax_name, 'MLA::mla_edit_tax_redirect' );
283
+ add_action( 'load-' . $hook, 'MLA::mla_edit_tax_redirect' );
284
+ } // ! MLATest::$wordpress_3point5_plus
285
+
286
  /*
287
  * The page_hook we need for taxonomy edits is slightly different
288
  */
289
  $hook = 'edit-' . $tax_name;
290
  self::$page_hooks[ $hook ] = 't_' . $tax_name;
291
+ } // foreach $taxonomies
292
 
293
  add_action( 'load-edit-tags.php', 'MLA::mla_add_help_tab' );
294
  }
295
 
296
+ add_filter( 'parent_file', 'MLA::mla_parent_file_filter', 10, 1 );
297
+
298
+ /*
299
+ * For WordPress 3.5 and later we are using the native Edit Media screen,
300
+ * so we want to get control back when the edits are completed.
301
+ */
302
+ if( MLATest::$wordpress_3point5_plus ) {
303
+ add_filter( 'load-upload.php', 'MLA::mla_load_upload_php_action' );
304
+ add_filter( 'load-post.php', 'MLA::mla_load_post_php_action' );
305
+ }
306
  }
307
 
308
  /**
309
+ * Intercept return from Edit Media screen
310
  *
311
+ * @since 0.60
312
  *
313
  * @return void
314
  */
315
+ public static function mla_load_upload_php_action( ) {
316
+ // error_log('mla_load_upload_php_action current_screen = ' . var_export( get_current_screen(), true), 0 ); /* DGL */
317
+ // error_log('mla_load_upload_php_action $_REQUEST = ' . var_export($_REQUEST, true ), 0 ); /* DGL */
318
+ // error_log('mla_load_upload_php_action wp_get_referer() = ' . var_export(wp_get_referer(), true ), 0 ); /* DGL */
 
 
 
 
 
 
319
  }
320
 
321
  /**
322
+ * Intercept call to Edit Media screen
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
323
  *
324
+ * @since 0.60
 
 
325
  *
326
+ * @return void
327
  */
328
+ public static function mla_load_post_php_action( ) {
329
+ // error_log('mla_load_post_php_action current_screen = ' . var_export( get_current_screen(), true), 0 ); /* DGL */
330
+ // error_log('mla_load_post_php_action $_REQUEST = ' . var_export($_REQUEST, true ), 0 ); /* DGL */
331
+ // error_log('mla_load_post_php_action wp_get_referer() = ' . var_export(wp_get_referer(), true ), 0 ); /* DGL */
332
  }
333
 
334
  /**
335
+ * Add the "XX Entries per page" filter to the Screen Options tab
 
 
 
336
  *
337
  * @since 0.1
338
  *
339
  * @return void
340
  */
341
+ public static function mla_add_menu_options( ) {
342
+ $option = 'per_page';
343
+
344
+ $args = array(
345
+ 'label' => 'Entries per page',
346
+ 'default' => 10,
347
+ 'option' => 'mla_entries_per_page'
348
+ );
349
+
350
+ add_screen_option( $option, $args );
351
  }
352
 
353
  /**
360
  public static function mla_add_help_tab( )
361
  {
362
  $screen = get_current_screen();
363
+
364
  /*
365
  * Is this one of our pages?
366
  */
436
  }
437
  }
438
 
439
+ /**
440
+ * Only show screen options on the table-list screen
441
+ *
442
+ * @since 0.1
443
+ *
444
+ * @param boolean True to display "Screen Options", false to suppress them
445
+ * @param string Name of the page being loaded
446
+ *
447
+ * @return boolean True to display "Screen Options", false to suppress them
448
+ */
449
+ public static function mla_screen_options_show_screen_filter( $show_screen, $this_screen ) {
450
+ if ( isset( $_REQUEST['mla_admin_action'] ) && ( $_REQUEST['mla_admin_action'] == self::MLA_ADMIN_SINGLE_EDIT_DISPLAY ) )
451
+ return false;
452
+ else
453
+ return $show_screen;
454
+ }
455
+
456
+ /**
457
+ * Save the "Entries per page" option set by this user
458
+ *
459
+ * @since 0.1
460
+ *
461
+ * @param boolean Unknown - always false?
462
+ * @param string Name of the option being changed
463
+ * @param string New value of the option
464
+ *
465
+ * @return string|void New value if this is our option, otherwise nothing
466
+ */
467
+ public static function mla_set_screen_option_filter( $status, $option, $value )
468
+ {
469
+ if ( 'mla_entries_per_page' == $option )
470
+ return $value;
471
+ }
472
+
473
+ /**
474
+ * Redirect to the Edit Tags/Categories page
475
+ *
476
+ * The custom taxonomy add/edit submenu entries go to "upload.php" by default.
477
+ * This filter is the only way to redirect them to the correct WordPress page.
478
+ * The filter is not required for WordPress 3.5 and later.
479
+ *
480
+ * @since 0.1
481
+ *
482
+ * @return void
483
+ */
484
+ public static function mla_edit_tax_redirect( )
485
+ {
486
+ /*
487
+ * WordPress 3.5 adds native support for taxonomies
488
+ */
489
+ if( MLATest::$wordpress_3point5_plus )
490
+ return;
491
+
492
+ $screen = get_current_screen();
493
+
494
+ if ( isset( $_REQUEST['page'] ) && ( substr( $_REQUEST['page'], 0, 13 ) == 'mla-edit-tax-' ) ) {
495
+ $taxonomy = substr( $_REQUEST['page'], 13 );
496
+ wp_redirect( admin_url( 'edit-tags.php?taxonomy=' . $taxonomy . '&post_type=attachment' ), 302 );
497
+ exit;
498
+ }
499
+ }
500
+
501
  /**
502
  * Cleanup menus for Edit Tags/Categories page
503
  *
504
+ * For WordPress before 3.5, the submenu entries for custom taxonomies
505
+ * under the "Media" menu are not set up correctly by WordPress, so this
506
+ * function cleans them up, redirecting the request to the right WordPress
507
+ * page for editing/adding taxonomy terms.
508
+ * For WordPress 3.5 and later, the function fixes the submenu bolding when
509
+ * going to the Edit Media screen.
510
  *
511
  * @since 0.1
512
  *
514
  *
515
  * @return string The updated top-level menu page
516
  */
517
+ public static function mla_parent_file_filter( $parent_file ) {
518
+ global $submenu_file, $submenu;
519
 
520
+ /*
521
+ * Make sure the "Assistant" submenu line is bolded when we go to the Edit Media page
522
+ */
523
+ if ( isset( $_REQUEST['mla_source'] ) )
524
+ $submenu_file = 'mla-menu';
525
+
526
+ /*
527
+ * WordPress 3.5 adds native support for taxonomies
528
+ */
529
+ if( MLATest::$wordpress_3point5_plus )
530
+ return $parent_file;
531
+
532
  if ( isset( $_REQUEST['taxonomy'] ) ) {
533
  $taxonomies = get_object_taxonomies( 'attachment', 'objects' );
534
 
695
 
696
  if ( !empty( $_REQUEST['heading_suffix'] ) ) {
697
  echo ' - ' . $_REQUEST['heading_suffix'] . "</h2>\r\n";
698
+ } elseif ( !empty( $_REQUEST['s'] ) && !empty( $_REQUEST['mla-search-fields'] ) ) {
699
+ echo ' - search results for "' . stripslashes( trim( $_REQUEST['s'] ) ) . "\"</h2>\r\n";
700
  } else
701
  echo "</h2>\r\n";
702
 
715
 
716
  // Forms are NOT created automatically, so you need to wrap the table in one to use features like bulk actions
717
  echo '<form id="mla-filter" action="' . admin_url( 'upload.php' ) . "\" method=\"get\">\r\n";
718
+ /*
719
+ * Compose the Search Media box
720
+ */
721
+ if ( !empty( $_REQUEST['s'] ) && !empty( $_REQUEST['mla-search-fields'] ) ) {
722
+ $search_value = esc_attr( stripslashes( trim( $_REQUEST['s'] ) ) );
723
+ $search_fields = $_REQUEST['mla-search-fields'];
724
+ $search_connector = $_REQUEST['mla-search-connector'];
725
+ } else {
726
+ $search_value = '';
727
+ $search_fields = array ( 'title', 'content' );
728
+ $search_connector = 'AND';
729
+ }
730
+
731
+ echo '<p class="search-box">' . "\r\n";
732
+ echo '<label class="screen-reader-text" for="media-search-input">Search Media:</label>' . "\r\n";
733
+ echo '<input type="text" size="45" id="media-search-input" name="s" value="' . $search_value . '" />' . "\r\n";
734
+ echo '<input type="submit" name="mla-search-submit" id="search-submit" class="button" value="Search Media" /><br>' . "\r\n";
735
+ if ( 'OR' == $search_connector ) {
736
+ echo '<input type="radio" name="mla-search-connector" value="AND" />&nbsp;and&nbsp;' . "\r\n";
737
+ echo '<input type="radio" name="mla-search-connector" checked="checked" value="OR" />&nbsp;or&nbsp;' . "\r\n";
738
+ } else {
739
+ echo '<input type="radio" name="mla-search-connector" checked="checked" value="AND" />&nbsp;and&nbsp;' . "\r\n";
740
+ echo '<input type="radio" name="mla-search-connector" value="OR" />&nbsp;or&nbsp;' . "\r\n";
741
+ }
742
+
743
+ if ( in_array( 'title', $search_fields ) )
744
+ echo '<input type="checkbox" name="mla-search-fields[]" id="search-title" checked="checked" value="title" />&nbsp;title&nbsp;' . "\r\n";
745
+ else
746
+ echo '<input type="checkbox" name="mla-search-fields[]" id="search-title" value="title" />&nbsp;title&nbsp;' . "\r\n";
747
+
748
+ if ( in_array( 'name', $search_fields ) )
749
+ echo '<input type="checkbox" name="mla-search-fields[]" id="search-name" checked="checked" value="name" />&nbsp;name&nbsp;' . "\r\n";
750
+ else
751
+ echo '<input type="checkbox" name="mla-search-fields[]" id="search-name" value="name" />&nbsp;name&nbsp;' . "\r\n";
752
+
753
+ if ( in_array( 'alt-text', $search_fields ) )
754
+ echo '<input type="checkbox" name="mla-search-fields[]" id="search-alt-text" checked="checked" value="alt-text" />&nbsp;ALT text&nbsp;' . "\r\n";
755
+ else
756
+ echo '<input type="checkbox" name="mla-search-fields[]" id="search-alt-text" value="alt-text" />&nbsp;ALT text&nbsp;' . "\r\n";
757
+
758
+ if ( in_array( 'excerpt', $search_fields ) )
759
+ echo '<input type="checkbox" name="mla-search-fields[]" id="search-excerpt" checked="checked" value="excerpt" />&nbsp;caption&nbsp;' . "\r\n";
760
+ else
761
+ echo '<input type="checkbox" name="mla-search-fields[]" id="search-excerpt" value="excerpt" />&nbsp;caption&nbsp;' . "\r\n";
762
+
763
+ if ( in_array( 'content', $search_fields ) )
764
+ echo '<input type="checkbox" name="mla-search-fields[]" id="search-content" checked="checked" value="content" />&nbsp;description&nbsp;' . "\r\n";
765
+ else
766
+ echo '<input type="checkbox" name="mla-search-fields[]" id="search-content" value="content" />&nbsp;description&nbsp;' . "\r\n";
767
+
768
+ echo '</p>' . "\r\n";
769
+
770
  /*
771
  * We also need to ensure that the form posts back to our current page and remember all the view arguments
772
  */
1264
  'post_date' => $post_data['post_date'],
1265
  'post_modified' => $post_data['post_modified'],
1266
  'post_parent' => $post_data['post_parent'],
1267
+ 'menu_order' => $post_data['menu_order'],
1268
  'attachment_icon' => wp_get_attachment_image( $post_id, array( 160, 120 ), true ),
1269
  'file_name' => esc_html( $post_data['mla_references']['file'] ),
1270
  'width' => $width,
1399
  $message .= sprintf( 'Changing Parent from "%1$s" to "%2$s"<br>', $post_data[ $key ], $value );
1400
  $updates[ $key ] = $value;
1401
  break;
1402
+ case 'menu_order':
1403
+ if ( $value == $post_data[ $key ] )
1404
+ break;
1405
+
1406
+ $value = absint( $value );
1407
+
1408
+ $message .= sprintf( 'Changing Menu Order from "%1$s" to "%2$s"<br>', $post_data[ $key ], $value );
1409
+ $updates[ $key ] = $value;
1410
+ break;
1411
  case 'post_author':
1412
  if ( $value == $post_data[ $key ] )
1413
  break;
includes/class-mla-objects.php CHANGED
@@ -22,6 +22,13 @@ class MLAObjects {
22
  */
23
  public static function initialize() {
24
  self::_build_taxonomies();
 
 
 
 
 
 
 
25
  }
26
 
27
  /**
22
  */
23
  public static function initialize() {
24
  self::_build_taxonomies();
25
+
26
+ /*
27
+ * WordPress 3.5 uses the advanced-form-edit.php function for the Edit Media
28
+ * page. This supports all the standard meta-boxes for post types.
29
+ */
30
+ if ( MLATest::$wordpress_3point5_plus )
31
+ add_post_type_support( 'attachment', 'custom-fields' );
32
  }
33
 
34
  /**
includes/class-mla-settings.php CHANGED
@@ -917,7 +917,7 @@ class MLASettings {
917
  self::mla_delete_option( $key );
918
  return "<br>Reset custom {$key}\r\n";
919
  default:
920
- error_log( 'ERROR: _save_settings unknown type(2): ' . var_export( $value, true ), 0 );
921
  return '';
922
  }
923
  } // _taxonomy_handler
917
  self::mla_delete_option( $key );
918
  return "<br>Reset custom {$key}\r\n";
919
  default:
920
+ error_log( 'ERROR: _save_settings unknown type(3): ' . var_export( $value, true ), 0 );
921
  return '';
922
  }
923
  } // _taxonomy_handler
includes/class-mla-shortcodes.php CHANGED
@@ -122,6 +122,15 @@ class MLAShortcodes {
122
  echo "<br>----- End of Report -----\r\n";
123
  }
124
 
 
 
 
 
 
 
 
 
 
125
  /**
126
  * The MLA Gallery shortcode.
127
  *
@@ -195,7 +204,9 @@ class MLAShortcodes {
195
  'meta_compare' => '',
196
  'meta_query' => '',
197
  // Search
198
- 's' => ''
 
 
199
  );
200
 
201
  /*
@@ -242,12 +253,13 @@ class MLAShortcodes {
242
 
243
  // We're trusting author input, but let's at least make sure it looks like a valid orderby statement
244
  if ( isset( $arguments['orderby'] ) ) {
245
- $attr['orderby'] = sanitize_sql_orderby( $arguments['orderby'] );
246
  if ( ! $arguments['orderby'] )
247
  unset( $arguments['orderby'] );
248
  }
249
 
250
  $use_children = empty( $query_arguments );
 
251
  foreach ($arguments as $key => $value ) {
252
  /*
253
  * There are several "fallthru" cases in this switch statement that decide
@@ -389,6 +401,11 @@ class MLAShortcodes {
389
  }
390
  unset( $arguments[ $key ] );
391
  break;
 
 
 
 
 
392
  default:
393
  // ignore anything else
394
  } // switch $key
@@ -420,9 +437,17 @@ class MLAShortcodes {
420
  if ( isset( $query_arguments['post_mime_type'] ) && ('all' == strtolower( $query_arguments['post_mime_type'] ) ) )
421
  unset ($query_arguments['post_mime_type'] );
422
 
423
- $attachments = self::_get_attachments( $query_arguments );
424
- if ( empty($attachments) )
425
- return '';
 
 
 
 
 
 
 
 
426
 
427
  if ( is_feed() ) {
428
  $output = "\n";
@@ -474,6 +499,12 @@ class MLAShortcodes {
474
  $gallery_div = "<div id='$selector' class='gallery galleryid-{$id} gallery-columns-{$columns} gallery-size-{$size_class}'>";
475
  $output = apply_filters( 'gallery_style', $gallery_style . "\n\t\t" . $gallery_div );
476
 
 
 
 
 
 
 
477
  $i = 0;
478
  foreach ( $attachments as $id => $attachment ) {
479
  $link = isset($arguments['link']) && 'file' == $arguments['link'] ? wp_get_attachment_link($attachment->ID, $size, false, $show_icon) : wp_get_attachment_link($attachment->ID, $size, true, $show_icon);
@@ -483,11 +514,10 @@ class MLAShortcodes {
483
  <{$icontag} class='gallery-icon'>
484
  $link
485
  </{$icontag}>";
486
- $post_excerpt = esc_attr( trim( $attachment->post_excerpt ) );
487
- if ( $captiontag && ! empty( $post_excerpt ) ) {
488
  $output .= "
489
  <{$captiontag} class='wp-caption-text gallery-caption'>
490
- " . wptexturize($post_excerpt) . "
491
  </{$captiontag}>";
492
  }
493
  $output .= "</{$itemtag}>";
@@ -508,10 +538,11 @@ class MLAShortcodes {
508
  * @since .50
509
  *
510
  * @param array Attributes of the shortcode
 
511
  *
512
  * @return array List of attachments returned from WP_Query
513
  */
514
- private static function _get_attachments( $args ) {
515
  if ( ! empty($args['include']) ) {
516
  $incposts = wp_parse_id_list( $args['include'] );
517
  $args['posts_per_page'] = count($incposts); // only the number of posts included
@@ -523,7 +554,14 @@ class MLAShortcodes {
523
  $args['no_found_rows'] = true;
524
 
525
  $get_posts = new WP_Query;
526
- return $get_posts->query($args);
 
 
 
 
 
 
 
527
 
528
  }
529
  } // Class MLAShortcodes
122
  echo "<br>----- End of Report -----\r\n";
123
  }
124
 
125
+ /**
126
+ * Accumulates debug messages
127
+ *
128
+ * @since 0.60
129
+ *
130
+ * @var string
131
+ */
132
+ private static $mla_debug_messages = '';
133
+
134
  /**
135
  * The MLA Gallery shortcode.
136
  *
204
  'meta_compare' => '',
205
  'meta_query' => '',
206
  // Search
207
+ 's' => '',
208
+ // Debug
209
+ 'mla_debug' => false
210
  );
211
 
212
  /*
253
 
254
  // We're trusting author input, but let's at least make sure it looks like a valid orderby statement
255
  if ( isset( $arguments['orderby'] ) ) {
256
+ $arguments['orderby'] = sanitize_sql_orderby( $arguments['orderby'] );
257
  if ( ! $arguments['orderby'] )
258
  unset( $arguments['orderby'] );
259
  }
260
 
261
  $use_children = empty( $query_arguments );
262
+ $mla_debug = false;
263
  foreach ($arguments as $key => $value ) {
264
  /*
265
  * There are several "fallthru" cases in this switch statement that decide
401
  }
402
  unset( $arguments[ $key ] );
403
  break;
404
+ case 'mla_debug': // boolean
405
+ if ( ! empty( $value ) && ( 'true' == strtolower( $value ) ) )
406
+ $mla_debug = true;
407
+ unset( $arguments[ $key ] );
408
+ break;
409
  default:
410
  // ignore anything else
411
  } // switch $key
437
  if ( isset( $query_arguments['post_mime_type'] ) && ('all' == strtolower( $query_arguments['post_mime_type'] ) ) )
438
  unset ($query_arguments['post_mime_type'] );
439
 
440
+ $attachments = self::_get_attachments( $query_arguments, $mla_debug );
441
+ if ( empty($attachments) ) {
442
+ if ( $mla_debug ) {
443
+ $output = '<p><strong>mla_debug</strong> empty gallery, query = ' . var_export( $query_arguments, true ) . '</p>';
444
+ $output .= self::$mla_debug_messages;
445
+ self::$mla_debug_messages = '';
446
+ return $output;
447
+ }
448
+ else
449
+ return '';
450
+ }
451
 
452
  if ( is_feed() ) {
453
  $output = "\n";
499
  $gallery_div = "<div id='$selector' class='gallery galleryid-{$id} gallery-columns-{$columns} gallery-size-{$size_class}'>";
500
  $output = apply_filters( 'gallery_style', $gallery_style . "\n\t\t" . $gallery_div );
501
 
502
+ if ( $mla_debug ) {
503
+ $output .= '<p><strong>mla_debug</strong> query = ' . var_export( $query_arguments, true ) . '</p>';
504
+ $output .= self::$mla_debug_messages;
505
+ self::$mla_debug_messages = '';
506
+ }
507
+
508
  $i = 0;
509
  foreach ( $attachments as $id => $attachment ) {
510
  $link = isset($arguments['link']) && 'file' == $arguments['link'] ? wp_get_attachment_link($attachment->ID, $size, false, $show_icon) : wp_get_attachment_link($attachment->ID, $size, true, $show_icon);
514
  <{$icontag} class='gallery-icon'>
515
  $link
516
  </{$icontag}>";
517
+ if ( $captiontag && trim( $attachment->post_excerpt ) ) {
 
518
  $output .= "
519
  <{$captiontag} class='wp-caption-text gallery-caption'>
520
+ " . wptexturize( $attachment->post_excerpt ) . "
521
  </{$captiontag}>";
522
  }
523
  $output .= "</{$itemtag}>";
538
  * @since .50
539
  *
540
  * @param array Attributes of the shortcode
541
+ * @param boolean True to add debug information to self::$mla_debug_messages
542
  *
543
  * @return array List of attachments returned from WP_Query
544
  */
545
+ private static function _get_attachments( $args , $mla_debug = false ) {
546
  if ( ! empty($args['include']) ) {
547
  $incposts = wp_parse_id_list( $args['include'] );
548
  $args['posts_per_page'] = count($incposts); // only the number of posts included
554
  $args['no_found_rows'] = true;
555
 
556
  $get_posts = new WP_Query;
557
+ $attachments = $get_posts->query($args);
558
+
559
+ if ( $mla_debug ) {
560
+ self::$mla_debug_messages .= '<p><strong>mla_debug</strong> request = ' . var_export( $get_posts->request, true ) . '</p>';
561
+ self::$mla_debug_messages .= '<p><strong>mla_debug</strong> query_vars = ' . var_export( $get_posts->query_vars, true ) . '</p>';
562
+ }
563
+
564
+ return $attachments;
565
 
566
  }
567
  } // Class MLAShortcodes
includes/mla-plugin-loader.php CHANGED
@@ -15,6 +15,13 @@ if (!defined('MLA_OPTION_PREFIX'))
15
  */
16
  define('MLA_OPTION_PREFIX', 'mla_');
17
 
 
 
 
 
 
 
 
18
  /*
19
  * Template file and database access functions.
20
  */
@@ -36,11 +43,6 @@ require_once( MLA_PLUGIN_PATH . 'includes/class-mla-shortcodes.php');
36
 
37
  add_action('init', 'MLAShortcodes::initialize');
38
 
39
- /*
40
- * Basic library of run-time tests.
41
- */
42
- require_once( MLA_PLUGIN_PATH . 'tests/class-mla-tests.php' );
43
-
44
  /*
45
  * Plugin settings and management page
46
  */
15
  */
16
  define('MLA_OPTION_PREFIX', 'mla_');
17
 
18
+ /*
19
+ * Basic library of run-time tests.
20
+ */
21
+ require_once( MLA_PLUGIN_PATH . 'tests/class-mla-tests.php' );
22
+
23
+ add_action( 'init', 'MLATest::initialize' );
24
+
25
  /*
26
  * Template file and database access functions.
27
  */
43
 
44
  add_action('init', 'MLAShortcodes::initialize');
45
 
 
 
 
 
 
46
  /*
47
  * Plugin settings and management page
48
  */
index.php CHANGED
@@ -6,7 +6,7 @@
6
  * will the rest of the plugin be loaded and run.
7
  *
8
  * @package Media Library Assistant
9
- * @version 0.50
10
  */
11
 
12
  /*
@@ -14,7 +14,7 @@ Plugin Name: Media Library Assistant
14
  Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
15
  Description: Provides several enhancements to the handling of images and files held in the WordPress Media Library.
16
  Author: David Lingren
17
- Version: 0.50
18
  Author URI: http://fairtradejudaica.org/our-story/staff/
19
  */
20
 
6
  * will the rest of the plugin be loaded and run.
7
  *
8
  * @package Media Library Assistant
9
+ * @version 0.60
10
  */
11
 
12
  /*
14
  Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
15
  Description: Provides several enhancements to the handling of images and files held in the WordPress Media Library.
16
  Author: David Lingren
17
+ Version: 0.60
18
  Author URI: http://fairtradejudaica.org/our-story/staff/
19
  */
20
 
js/mla-inline-edit-scripts.dev.js CHANGED
@@ -122,7 +122,7 @@ inlineEditAttachment = {
122
  if ( typeof(id) == 'object' )
123
  id = t.getId(id);
124
 
125
- fields = ['post_title', 'post_name', 'image_alt', 'post_parent', 'post_author'];
126
 
127
  // add the new blank row
128
  editRow = $('#inline-edit').clone(true);
122
  if ( typeof(id) == 'object' )
123
  id = t.getId(id);
124
 
125
+ fields = ['post_title', 'post_name', 'image_alt', 'post_parent', 'menu_order', 'post_author'];
126
 
127
  // add the new blank row
128
  editRow = $('#inline-edit').clone(true);
js/mla-inline-edit-scripts.js CHANGED
@@ -1 +1 @@
1
- (function(a){inlineEditAttachment={init:function(){var c=this,d=a("#inline-edit"),b=a("#bulk-edit");c.type="attachment";c.what="#attachment-";d.keyup(function(f){if(f.which==27){return inlineEditAttachment.revert()}});b.keyup(function(f){if(f.which==27){return inlineEditAttachment.revert()}});a("a.cancel",d).click(function(){return inlineEditAttachment.revert()});a("a.save",d).click(function(){return inlineEditAttachment.save(this)});a("td",d).keydown(function(f){if(f.which==13){return inlineEditAttachment.save(this)}});a("a.cancel",b).click(function(){return inlineEditAttachment.revert()});a("a.editinline").live("click",function(){inlineEditAttachment.edit(this);return false});a("span.catshow").click(function(){a(this).hide().next().show().parent().next().addClass("cat-hover")});a("span.cathide").click(function(){a(this).hide().prev().show().parent().next().removeClass("cat-hover")});a('select[name="_status"] option[value="future"]',b).remove();a("#doaction, #doaction2").click(function(f){var g=a(this).attr("id").substr(2);if(a('select[name="'+g+'"]').val()=="edit"){f.preventDefault();c.setBulk()}else{if(a("form#posts-filter tr.inline-editor").length>0){c.revert()}}});a("#post-query-submit").mousedown(function(f){c.revert();a('select[name^="action"]').val("-1")})},toggle:function(c){var b=this;a(b.what+b.getId(c)).css("display")=="none"?b.revert():b.edit(c)},setBulk:function(){var b="",d=true;this.revert();a("#bulk-edit td").attr("colspan",a(".widefat:first thead th:visible").length);a("table.widefat tbody").prepend(a("#bulk-edit"));a("#bulk-edit").addClass("inline-editor").show();a('tbody th.check-column input[type="checkbox"]').each(function(e){if(a(this).prop("checked")){d=false;var f=a(this).val(),c;c=a("#inline_"+f+" .post_title").text()||mla_inline_edit_vars.notitle;b+='<div id="ttle'+f+'"><a id="_'+f+'" class="ntdelbutton" title="'+mla_inline_edit_vars.ntdeltitle+'">X</a>'+c+"</div>"}});if(d){return this.revert()}a("#bulk-titles").html(b);a("#bulk-titles a").click(function(){var c=a(this).attr("id").substr(1);a('table.widefat input[value="'+c+'"]').prop("checked",false);a("#ttle"+c).remove()});a("textarea.mla_tags").each(function(){var c=a(this).attr("name").replace("]","").replace("tax_input[","");a(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+c,{delay:500,minchars:2,multiple:true,multipleSep:mla_inline_edit_vars.comma+" "})});a("html, body").animate({scrollTop:0},"fast")},edit:function(g){var d=this,b,c,e,f;d.revert();if(typeof(g)=="object"){g=d.getId(g)}b=["post_title","post_name","image_alt","post_parent","post_author"];c=a("#inline-edit").clone(true);a("td",c).attr("colspan",a(".widefat:first thead th:visible").length);if(a(d.what+g).hasClass("alternate")){a(c).addClass("alternate")}a(d.what+g).hide().after(c);e=a("#inline_"+g);if(!a(':input[name="post_author"] option[value="'+a(".post_author",e).text()+'"]',c).val()){a(':input[name="post_author"]',c).prepend('<option value="'+a(".post_author",e).text()+'">'+a("#"+d.type+"-"+g+" .author").text()+"</option>")}if(a(':input[name="post_author"] option',c).length==1){a("label.inline-edit-author",c).hide()}for(f=0;f<b.length;f++){a(':input[name="'+b[f]+'"]',c).val(a("."+b[f],e).text())}if(a(".image_alt",e).length==0){a("label.inline-edit-image-alt",c).hide()}a(".mla_category",e).each(function(){var h=a(this).text();if(h){taxname=a(this).attr("id").replace("_"+g,"");a("ul."+taxname+"-checklist :checkbox",c).val(h.split(","))}});a(".mla_tags",e).each(function(){var j=a(this).text(),k=a(this).attr("id").replace("_"+g,""),i=a("textarea.tax_input_"+k,c),h=mla_inline_edit_vars.comma;if(j){if(","!==h){j=j.replace(/,/g,h)}i.val(j)}i.suggest(ajaxurl+"?action=ajax-tag-search&tax="+k,{delay:500,minchars:2,multiple:true,multipleSep:mla_inline_edit_vars.comma+" "})});a(c).attr("id","edit-"+g).addClass("inline-editor").show();a(".ptitle",c).focus();return false},save:function(e){var d,b,c=a(".post_status_page").val()||"";if(typeof(e)=="object"){e=this.getId(e)}a("table.widefat .inline-edit-save .waiting").show();d={action:mla_inline_edit_vars.ajax_action,nonce:mla_inline_edit_vars.ajax_nonce,post_type:typenow,post_ID:e,edit_date:"true",post_status:c};b=a("#edit-"+e+" :input").serialize();d=b+"&"+a.param(d);a.post(ajaxurl,d,function(f){a("table.widefat .inline-edit-save .waiting").hide();if(f){if(-1!=f.indexOf("<tr")){a(inlineEditAttachment.what+e).remove();a("#edit-"+e).before(f).remove();a(inlineEditAttachment.what+e).hide().fadeIn()}else{f=f.replace(/<.[^<>]*?>/g,"");a("#edit-"+e+" .inline-edit-save .error").html(f).show()}}else{a("#edit-"+e+" .inline-edit-save .error").html(mla_inline_edit_vars.error).show()}},"html");return false},revert:function(){var b=a("table.widefat tr.inline-editor").attr("id");if(b){a("table.widefat .inline-edit-save .waiting").hide();if("bulk-edit"==b){a("table.widefat #bulk-edit").removeClass("inline-editor").hide();a("#bulk-titles").html("");a("#inlineedit").append(a("#bulk-edit"))}else{a("#"+b).remove();b=b.substr(b.lastIndexOf("-")+1);a(this.what+b).show()}}return false},getId:function(c){var d=a(c).closest("tr").attr("id"),b=d.split("-");return b[b.length-1]}};a(document).ready(function(){inlineEditAttachment.init()})})(jQuery);
1
+ (function(a){inlineEditAttachment={init:function(){var c=this,d=a("#inline-edit"),b=a("#bulk-edit");c.type="attachment";c.what="#attachment-";d.keyup(function(f){if(f.which==27){return inlineEditAttachment.revert()}});b.keyup(function(f){if(f.which==27){return inlineEditAttachment.revert()}});a("a.cancel",d).click(function(){return inlineEditAttachment.revert()});a("a.save",d).click(function(){return inlineEditAttachment.save(this)});a("td",d).keydown(function(f){if(f.which==13){return inlineEditAttachment.save(this)}});a("a.cancel",b).click(function(){return inlineEditAttachment.revert()});a("a.editinline").live("click",function(){inlineEditAttachment.edit(this);return false});a("span.catshow").click(function(){a(this).hide().next().show().parent().next().addClass("cat-hover")});a("span.cathide").click(function(){a(this).hide().prev().show().parent().next().removeClass("cat-hover")});a('select[name="_status"] option[value="future"]',b).remove();a("#doaction, #doaction2").click(function(f){var g=a(this).attr("id").substr(2);if(a('select[name="'+g+'"]').val()=="edit"){f.preventDefault();c.setBulk()}else{if(a("form#posts-filter tr.inline-editor").length>0){c.revert()}}});a("#post-query-submit").mousedown(function(f){c.revert();a('select[name^="action"]').val("-1")})},toggle:function(c){var b=this;a(b.what+b.getId(c)).css("display")=="none"?b.revert():b.edit(c)},setBulk:function(){var b="",d=true;this.revert();a("#bulk-edit td").attr("colspan",a(".widefat:first thead th:visible").length);a("table.widefat tbody").prepend(a("#bulk-edit"));a("#bulk-edit").addClass("inline-editor").show();a('tbody th.check-column input[type="checkbox"]').each(function(e){if(a(this).prop("checked")){d=false;var f=a(this).val(),c;c=a("#inline_"+f+" .post_title").text()||mla_inline_edit_vars.notitle;b+='<div id="ttle'+f+'"><a id="_'+f+'" class="ntdelbutton" title="'+mla_inline_edit_vars.ntdeltitle+'">X</a>'+c+"</div>"}});if(d){return this.revert()}a("#bulk-titles").html(b);a("#bulk-titles a").click(function(){var c=a(this).attr("id").substr(1);a('table.widefat input[value="'+c+'"]').prop("checked",false);a("#ttle"+c).remove()});a("textarea.mla_tags").each(function(){var c=a(this).attr("name").replace("]","").replace("tax_input[","");a(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+c,{delay:500,minchars:2,multiple:true,multipleSep:mla_inline_edit_vars.comma+" "})});a("html, body").animate({scrollTop:0},"fast")},edit:function(g){var d=this,b,c,e,f;d.revert();if(typeof(g)=="object"){g=d.getId(g)}b=["post_title","post_name","image_alt","post_parent","menu_order","post_author"];c=a("#inline-edit").clone(true);a("td",c).attr("colspan",a(".widefat:first thead th:visible").length);if(a(d.what+g).hasClass("alternate")){a(c).addClass("alternate")}a(d.what+g).hide().after(c);e=a("#inline_"+g);if(!a(':input[name="post_author"] option[value="'+a(".post_author",e).text()+'"]',c).val()){a(':input[name="post_author"]',c).prepend('<option value="'+a(".post_author",e).text()+'">'+a("#"+d.type+"-"+g+" .author").text()+"</option>")}if(a(':input[name="post_author"] option',c).length==1){a("label.inline-edit-author",c).hide()}for(f=0;f<b.length;f++){a(':input[name="'+b[f]+'"]',c).val(a("."+b[f],e).text())}if(a(".image_alt",e).length==0){a("label.inline-edit-image-alt",c).hide()}a(".mla_category",e).each(function(){var h=a(this).text();if(h){taxname=a(this).attr("id").replace("_"+g,"");a("ul."+taxname+"-checklist :checkbox",c).val(h.split(","))}});a(".mla_tags",e).each(function(){var j=a(this).text(),k=a(this).attr("id").replace("_"+g,""),i=a("textarea.tax_input_"+k,c),h=mla_inline_edit_vars.comma;if(j){if(","!==h){j=j.replace(/,/g,h)}i.val(j)}i.suggest(ajaxurl+"?action=ajax-tag-search&tax="+k,{delay:500,minchars:2,multiple:true,multipleSep:mla_inline_edit_vars.comma+" "})});a(c).attr("id","edit-"+g).addClass("inline-editor").show();a(".ptitle",c).focus();return false},save:function(e){var d,b,c=a(".post_status_page").val()||"";if(typeof(e)=="object"){e=this.getId(e)}a("table.widefat .inline-edit-save .waiting").show();d={action:mla_inline_edit_vars.ajax_action,nonce:mla_inline_edit_vars.ajax_nonce,post_type:typenow,post_ID:e,edit_date:"true",post_status:c};b=a("#edit-"+e+" :input").serialize();d=b+"&"+a.param(d);a.post(ajaxurl,d,function(f){a("table.widefat .inline-edit-save .waiting").hide();if(f){if(-1!=f.indexOf("<tr")){a(inlineEditAttachment.what+e).remove();a("#edit-"+e).before(f).remove();a(inlineEditAttachment.what+e).hide().fadeIn()}else{f=f.replace(/<.[^<>]*?>/g,"");a("#edit-"+e+" .inline-edit-save .error").html(f).show()}}else{a("#edit-"+e+" .inline-edit-save .error").html(mla_inline_edit_vars.error).show()}},"html");return false},revert:function(){var b=a("table.widefat tr.inline-editor").attr("id");if(b){a("table.widefat .inline-edit-save .waiting").hide();if("bulk-edit"==b){a("table.widefat #bulk-edit").removeClass("inline-editor").hide();a("#bulk-titles").html("");a("#inlineedit").append(a("#bulk-edit"))}else{a("#"+b).remove();b=b.substr(b.lastIndexOf("-")+1);a(this.what+b).show()}}return false},getId:function(c){var d=a(c).closest("tr").attr("id"),b=d.split("-");return b[b.length-1]}};a(document).ready(function(){inlineEditAttachment.init()})})(jQuery);
phpDocs/classes/MLA.html CHANGED
@@ -60,7 +60,9 @@
60
  <li class="method public "><a href="#mla_admin_menu_action" title="mla_admin_menu_action :: Add the submenu pages"><span class="description">Add the submenu pages</span><pre>mla_admin_menu_action()</pre></a></li>
61
  <li class="method public "><a href="#mla_edit_tax_redirect" title="mla_edit_tax_redirect :: Redirect to the Edit Tags/Categories page"><span class="description">Redirect to the Edit Tags/Categories page</span><pre>mla_edit_tax_redirect()</pre></a></li>
62
  <li class="method public "><a href="#mla_inline_edit_action" title="mla_inline_edit_action :: Ajax handler for inline editing (quick and bulk edit)"><span class="description">Ajax handler for inline editing (quick and bulk edit)</span><pre>mla_inline_edit_action()</pre></a></li>
63
- <li class="method public "><a href="#mla_modify_parent_menu" title="mla_modify_parent_menu :: Cleanup menus for Edit Tags/Categories page"><span class="description">Cleanup menus for Edit Tags/Categories page</span><pre>mla_modify_parent_menu()</pre></a></li>
 
 
64
  <li class="method public "><a href="#mla_render_admin_page" title='mla_render_admin_page :: Render the "Assistant" subpage in the Media section, using the list_table package'><span class="description">Render the "Assistant" subpage in the Media section, using the list_table package</span><pre>mla_render_admin_page()</pre></a></li>
65
  <li class="method public "><a href="#mla_screen_options_show_screen_filter" title="mla_screen_options_show_screen_filter :: Only show screen options on the table-list screen"><span class="description">Only show screen options on the table-list screen</span><pre>mla_screen_options_show_screen_filter()</pre></a></li>
66
  <li class="method public "><a href="#mla_set_screen_option_filter" title='mla_set_screen_option_filter :: Save the "Entries per page" option set by this user'><span class="description">Save the "Entries per page" option set by this user</span><pre>mla_set_screen_option_filter()</pre></a></li>
@@ -134,7 +136,9 @@ of images and files held in the WordPress Media Library.</p>
134
  <pre>initialize() : void</pre>
135
  <div class="labels"></div>
136
  <div class="row collapse"><div class="detail-description">
137
- <p class="long_description"></p>
 
 
138
  <table class="table table-bordered"><tr>
139
  <th>since</th>
140
  <td>0.1</td>
@@ -199,10 +203,12 @@ of images and files held in the WordPress Media Library.</p>
199
  <div class="labels"></div>
200
  <div class="row collapse"><div class="detail-description">
201
  <p class="long_description"><p>Add a submenu page in the "Media" section,
 
 
 
 
202
  add submenu page(s) for attachment taxonomies,
203
- add filter to clean up taxonomy submenu labels
204
- add settings page in the "Settings" section,
205
- add settings link in the Plugins section entry for MLA.</p></p>
206
  <table class="table table-bordered"><tr>
207
  <th>since</th>
208
  <td>0.1</td>
@@ -215,7 +221,8 @@ add settings link in the Plugins section entry for MLA.</p></p>
215
  <div class="labels"></div>
216
  <div class="row collapse"><div class="detail-description">
217
  <p class="long_description"><p>The custom taxonomy add/edit submenu entries go to "upload.php" by default.
218
- This filter is the only way to redirect them to the correct WordPress page.</p></p>
 
219
  <table class="table table-bordered"><tr>
220
  <th>since</th>
221
  <td>0.1</td>
@@ -234,14 +241,41 @@ This filter is the only way to redirect them to the correct WordPress page.</p><
234
  </tr></table>
235
  </div></div>
236
  </div>
237
- <a name="mla_modify_parent_menu" id="mla_modify_parent_menu"></a><div class="element clickable method public mla_modify_parent_menu" data-toggle="collapse" data-target=".mla_modify_parent_menu .collapse">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
238
  <h2>Cleanup menus for Edit Tags/Categories page</h2>
239
- <pre>mla_modify_parent_menu(array $parent_file) : string</pre>
240
  <div class="labels"></div>
241
  <div class="row collapse"><div class="detail-description">
242
- <p class="long_description"><p>The submenu entries for custom taxonomies under the "Media" menu are not set up
243
- correctly by WordPress, so this function cleans them up, redirecting the request
244
- to the right WordPress page for editing/adding taxonomy terms.</p></p>
 
 
 
245
  <table class="table table-bordered"><tr>
246
  <th>since</th>
247
  <td>0.1</td>
@@ -725,7 +759,7 @@ for a single attachment.</h2>
725
  <div class="row"><footer class="span12">
726
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
727
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
728
- generated on 2012-10-13T19:50:41-07:00.<br></footer></div>
729
  </div>
730
  </body>
731
  </html>
60
  <li class="method public "><a href="#mla_admin_menu_action" title="mla_admin_menu_action :: Add the submenu pages"><span class="description">Add the submenu pages</span><pre>mla_admin_menu_action()</pre></a></li>
61
  <li class="method public "><a href="#mla_edit_tax_redirect" title="mla_edit_tax_redirect :: Redirect to the Edit Tags/Categories page"><span class="description">Redirect to the Edit Tags/Categories page</span><pre>mla_edit_tax_redirect()</pre></a></li>
62
  <li class="method public "><a href="#mla_inline_edit_action" title="mla_inline_edit_action :: Ajax handler for inline editing (quick and bulk edit)"><span class="description">Ajax handler for inline editing (quick and bulk edit)</span><pre>mla_inline_edit_action()</pre></a></li>
63
+ <li class="method public "><a href="#mla_load_post_php_action" title="mla_load_post_php_action :: Intercept call to Edit Media screen"><span class="description">Intercept call to Edit Media screen</span><pre>mla_load_post_php_action()</pre></a></li>
64
+ <li class="method public "><a href="#mla_load_upload_php_action" title="mla_load_upload_php_action :: Intercept return from Edit Media screen"><span class="description">Intercept return from Edit Media screen</span><pre>mla_load_upload_php_action()</pre></a></li>
65
+ <li class="method public "><a href="#mla_parent_file_filter" title="mla_parent_file_filter :: Cleanup menus for Edit Tags/Categories page"><span class="description">Cleanup menus for Edit Tags/Categories page</span><pre>mla_parent_file_filter()</pre></a></li>
66
  <li class="method public "><a href="#mla_render_admin_page" title='mla_render_admin_page :: Render the "Assistant" subpage in the Media section, using the list_table package'><span class="description">Render the "Assistant" subpage in the Media section, using the list_table package</span><pre>mla_render_admin_page()</pre></a></li>
67
  <li class="method public "><a href="#mla_screen_options_show_screen_filter" title="mla_screen_options_show_screen_filter :: Only show screen options on the table-list screen"><span class="description">Only show screen options on the table-list screen</span><pre>mla_screen_options_show_screen_filter()</pre></a></li>
68
  <li class="method public "><a href="#mla_set_screen_option_filter" title='mla_set_screen_option_filter :: Save the "Entries per page" option set by this user'><span class="description">Save the "Entries per page" option set by this user</span><pre>mla_set_screen_option_filter()</pre></a></li>
136
  <pre>initialize() : void</pre>
137
  <div class="labels"></div>
138
  <div class="row collapse"><div class="detail-description">
139
+ <p class="long_description"><p>This function contains add_action and add_filter calls
140
+ to set up the Ajax handlers, enqueue JavaScript and CSS files, and
141
+ set up the Assistant submenu.</p></p>
142
  <table class="table table-bordered"><tr>
143
  <th>since</th>
144
  <td>0.1</td>
203
  <div class="labels"></div>
204
  <div class="row collapse"><div class="detail-description">
205
  <p class="long_description"><p>Add a submenu page in the "Media" section,
206
+ add settings page in the "Settings" section.
207
+ add settings link in the Plugins section entry for MLA.</p>
208
+
209
+ <p>For WordPress versions before 3.5,
210
  add submenu page(s) for attachment taxonomies,
211
+ add filter to clean up taxonomy submenu labels.</p></p>
 
 
212
  <table class="table table-bordered"><tr>
213
  <th>since</th>
214
  <td>0.1</td>
221
  <div class="labels"></div>
222
  <div class="row collapse"><div class="detail-description">
223
  <p class="long_description"><p>The custom taxonomy add/edit submenu entries go to "upload.php" by default.
224
+ This filter is the only way to redirect them to the correct WordPress page.
225
+ The filter is not required for WordPress 3.5 and later.</p></p>
226
  <table class="table table-bordered"><tr>
227
  <th>since</th>
228
  <td>0.1</td>
241
  </tr></table>
242
  </div></div>
243
  </div>
244
+ <a name="mla_load_post_php_action" id="mla_load_post_php_action"></a><div class="element clickable method public mla_load_post_php_action" data-toggle="collapse" data-target=".mla_load_post_php_action .collapse">
245
+ <h2>Intercept call to Edit Media screen</h2>
246
+ <pre>mla_load_post_php_action() : void</pre>
247
+ <div class="labels"></div>
248
+ <div class="row collapse"><div class="detail-description">
249
+ <p class="long_description"></p>
250
+ <table class="table table-bordered"><tr>
251
+ <th>since</th>
252
+ <td>0.60</td>
253
+ </tr></table>
254
+ </div></div>
255
+ </div>
256
+ <a name="mla_load_upload_php_action" id="mla_load_upload_php_action"></a><div class="element clickable method public mla_load_upload_php_action" data-toggle="collapse" data-target=".mla_load_upload_php_action .collapse">
257
+ <h2>Intercept return from Edit Media screen</h2>
258
+ <pre>mla_load_upload_php_action() : void</pre>
259
+ <div class="labels"></div>
260
+ <div class="row collapse"><div class="detail-description">
261
+ <p class="long_description"></p>
262
+ <table class="table table-bordered"><tr>
263
+ <th>since</th>
264
+ <td>0.60</td>
265
+ </tr></table>
266
+ </div></div>
267
+ </div>
268
+ <a name="mla_parent_file_filter" id="mla_parent_file_filter"></a><div class="element clickable method public mla_parent_file_filter" data-toggle="collapse" data-target=".mla_parent_file_filter .collapse">
269
  <h2>Cleanup menus for Edit Tags/Categories page</h2>
270
+ <pre>mla_parent_file_filter(array $parent_file) : string</pre>
271
  <div class="labels"></div>
272
  <div class="row collapse"><div class="detail-description">
273
+ <p class="long_description"><p>For WordPress before 3.5, the submenu entries for custom taxonomies
274
+ under the "Media" menu are not set up correctly by WordPress, so this
275
+ function cleans them up, redirecting the request to the right WordPress
276
+ page for editing/adding taxonomy terms.
277
+ For WordPress 3.5 and later, the function fixes the submenu bolding when
278
+ going to the Edit Media screen.</p></p>
279
  <table class="table table-bordered"><tr>
280
  <th>since</th>
281
  <td>0.1</td>
759
  <div class="row"><footer class="span12">
760
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
761
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
762
+ generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
763
  </div>
764
  </body>
765
  </html>
phpDocs/classes/MLAData.html CHANGED
@@ -61,6 +61,7 @@
61
  <li class="method public "><a href="#mla_query_list_table_items" title="mla_query_list_table_items :: Retrieve attachment objects for list table display"><span class="description">Retrieve attachment objects for list table display</span><pre>mla_query_list_table_items()</pre></a></li>
62
  <li class="method public "><a href="#mla_query_posts_join_filter" title="mla_query_posts_join_filter :: Adds a JOIN clause, if required"><span class="description">Adds a JOIN clause, if required</span><pre>mla_query_posts_join_filter()</pre></a></li>
63
  <li class="method public "><a href="#mla_query_posts_orderby_filter" title="mla_query_posts_orderby_filter :: Adds a ORDERBY clause, if required"><span class="description">Adds a ORDERBY clause, if required</span><pre>mla_query_posts_orderby_filter()</pre></a></li>
 
64
  <li class="method public "><a href="#mla_query_posts_where_filter" title="mla_query_posts_where_filter :: Adds a WHERE clause for detached items"><span class="description">Adds a WHERE clause for detached items</span><pre>mla_query_posts_where_filter()</pre></a></li>
65
  <li class="nav-header private">» Private</li>
66
  <li class="method private "><a href="#_execute_list_table_query" title="_execute_list_table_query :: Add filters, run query, remove filters"><span class="description">Add filters, run query, remove filters</span><pre>_execute_list_table_query()</pre></a></li>
@@ -291,6 +292,28 @@ Defined as public because it's a filter.</p></p>
291
  <code>string</code>updated query clause</div>
292
  </div></div>
293
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
294
  <a name="mla_query_posts_where_filter" id="mla_query_posts_where_filter"></a><div class="element clickable method public mla_query_posts_where_filter" data-toggle="collapse" data-target=".mla_query_posts_where_filter .collapse">
295
  <h2>Adds a WHERE clause for detached items</h2>
296
  <pre>mla_query_posts_where_filter(string $where_clause) : string</pre>
@@ -423,7 +446,7 @@ any further logic required to translate those values is contained in the filters
423
  <div class="row"><footer class="span12">
424
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
425
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
426
- generated on 2012-10-13T19:50:41-07:00.<br></footer></div>
427
  </div>
428
  </body>
429
  </html>
61
  <li class="method public "><a href="#mla_query_list_table_items" title="mla_query_list_table_items :: Retrieve attachment objects for list table display"><span class="description">Retrieve attachment objects for list table display</span><pre>mla_query_list_table_items()</pre></a></li>
62
  <li class="method public "><a href="#mla_query_posts_join_filter" title="mla_query_posts_join_filter :: Adds a JOIN clause, if required"><span class="description">Adds a JOIN clause, if required</span><pre>mla_query_posts_join_filter()</pre></a></li>
63
  <li class="method public "><a href="#mla_query_posts_orderby_filter" title="mla_query_posts_orderby_filter :: Adds a ORDERBY clause, if required"><span class="description">Adds a ORDERBY clause, if required</span><pre>mla_query_posts_orderby_filter()</pre></a></li>
64
+ <li class="method public "><a href="#mla_query_posts_search_filter" title="mla_query_posts_search_filter :: Adds a keyword search to the WHERE clause, if required"><span class="description">Adds a keyword search to the WHERE clause, if required</span><pre>mla_query_posts_search_filter()</pre></a></li>
65
  <li class="method public "><a href="#mla_query_posts_where_filter" title="mla_query_posts_where_filter :: Adds a WHERE clause for detached items"><span class="description">Adds a WHERE clause for detached items</span><pre>mla_query_posts_where_filter()</pre></a></li>
66
  <li class="nav-header private">» Private</li>
67
  <li class="method private "><a href="#_execute_list_table_query" title="_execute_list_table_query :: Add filters, run query, remove filters"><span class="description">Add filters, run query, remove filters</span><pre>_execute_list_table_query()</pre></a></li>
292
  <code>string</code>updated query clause</div>
293
  </div></div>
294
  </div>
295
+ <a name="mla_query_posts_search_filter" id="mla_query_posts_search_filter"></a><div class="element clickable method public mla_query_posts_search_filter" data-toggle="collapse" data-target=".mla_query_posts_search_filter .collapse">
296
+ <h2>Adds a keyword search to the WHERE clause, if required</h2>
297
+ <pre>mla_query_posts_search_filter(string $search_string, object $query_object) : string</pre>
298
+ <div class="labels"></div>
299
+ <div class="row collapse"><div class="detail-description">
300
+ <p class="long_description"><p>Defined as public because it's a filter.</p></p>
301
+ <table class="table table-bordered"><tr>
302
+ <th>since</th>
303
+ <td>0.60</td>
304
+ </tr></table>
305
+ <h3>Parameters</h3>
306
+ <div class="subelement argument">
307
+ <h4>$search_string</h4>
308
+ <code>string</code><p>query clause before modification</p></div>
309
+ <div class="subelement argument">
310
+ <h4>$query_object</h4>
311
+ <code>object</code><p>WP_Query object</p></div>
312
+ <h3>Returns</h3>
313
+ <div class="subelement response">
314
+ <code>string</code>query clause after keyword search addition</div>
315
+ </div></div>
316
+ </div>
317
  <a name="mla_query_posts_where_filter" id="mla_query_posts_where_filter"></a><div class="element clickable method public mla_query_posts_where_filter" data-toggle="collapse" data-target=".mla_query_posts_where_filter .collapse">
318
  <h2>Adds a WHERE clause for detached items</h2>
319
  <pre>mla_query_posts_where_filter(string $where_clause) : string</pre>
446
  <div class="row"><footer class="span12">
447
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
448
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
449
+ generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
450
  </div>
451
  </body>
452
  </html>
phpDocs/classes/MLAObjects.html CHANGED
@@ -167,7 +167,7 @@ which replaces the "Posts" column with an equivalent "Attachments" column.</h2>
167
  <div class="row"><footer class="span12">
168
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
169
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
170
- generated on 2012-10-13T19:50:41-07:00.<br></footer></div>
171
  </div>
172
  </body>
173
  </html>
167
  <div class="row"><footer class="span12">
168
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
169
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
170
+ generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
171
  </div>
172
  </body>
173
  </html>
phpDocs/classes/MLASettings.html CHANGED
@@ -442,7 +442,7 @@ reset => reset function for 'custom' options; returns nothing. Usage:
442
  <div class="row"><footer class="span12">
443
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
444
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
445
- generated on 2012-10-13T19:50:41-07:00.<br></footer></div>
446
  </div>
447
  </body>
448
  </html>
442
  <div class="row"><footer class="span12">
443
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
444
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
445
+ generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
446
  </div>
447
  </body>
448
  </html>
phpDocs/classes/MLAShortcodes.html CHANGED
@@ -57,6 +57,10 @@
57
  <li class="method public "><a href="#mla_gallery_shortcode" title="mla_gallery_shortcode :: The MLA Gallery shortcode."><span class="description">The MLA Gallery shortcode.</span><pre>mla_gallery_shortcode()</pre></a></li>
58
  <li class="nav-header private">» Private</li>
59
  <li class="method private "><a href="#_get_attachments" title="_get_attachments :: Replaces /wp-includes/post.php function get_posts()"><span class="description">Replaces /wp-includes/post.php function get_posts()</span><pre>_get_attachments()</pre></a></li>
 
 
 
 
60
  </ul>
61
  </div>
62
  <div class="span8">
@@ -132,7 +136,7 @@ Enhancements include many additional selection parameters and full taxonomy supp
132
  </div>
133
  <a name="_get_attachments" id="_get_attachments"></a><div class="element clickable method private _get_attachments" data-toggle="collapse" data-target="._get_attachments .collapse">
134
  <h2>Replaces /wp-includes/post.php function get_posts()</h2>
135
- <pre>_get_attachments(array $args) : array</pre>
136
  <div class="labels"></div>
137
  <div class="row collapse"><div class="detail-description">
138
  <p class="long_description"></p>
@@ -144,11 +148,29 @@ Enhancements include many additional selection parameters and full taxonomy supp
144
  <div class="subelement argument">
145
  <h4>$args</h4>
146
  <code>array</code><p>Attributes of the shortcode</p></div>
 
 
 
 
147
  <h3>Returns</h3>
148
  <div class="subelement response">
149
  <code>array</code>List of attachments returned from WP_Query</div>
150
  </div></div>
151
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  </div>
153
  </div>
154
  </div>
@@ -156,7 +178,7 @@ Enhancements include many additional selection parameters and full taxonomy supp
156
  <div class="row"><footer class="span12">
157
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
158
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
159
- generated on 2012-10-13T19:50:41-07:00.<br></footer></div>
160
  </div>
161
  </body>
162
  </html>
57
  <li class="method public "><a href="#mla_gallery_shortcode" title="mla_gallery_shortcode :: The MLA Gallery shortcode."><span class="description">The MLA Gallery shortcode.</span><pre>mla_gallery_shortcode()</pre></a></li>
58
  <li class="nav-header private">» Private</li>
59
  <li class="method private "><a href="#_get_attachments" title="_get_attachments :: Replaces /wp-includes/post.php function get_posts()"><span class="description">Replaces /wp-includes/post.php function get_posts()</span><pre>_get_attachments()</pre></a></li>
60
+ <li class="nav-header">
61
+ <i class="icon-custom icon-property"></i> Properties</li>
62
+ <li class="nav-header private">» Private</li>
63
+ <li class="property private "><a href="#%24mla_debug_messages" title="$mla_debug_messages :: Accumulates debug messages"><span class="description">Accumulates debug messages</span><pre>$mla_debug_messages</pre></a></li>
64
  </ul>
65
  </div>
66
  <div class="span8">
136
  </div>
137
  <a name="_get_attachments" id="_get_attachments"></a><div class="element clickable method private _get_attachments" data-toggle="collapse" data-target="._get_attachments .collapse">
138
  <h2>Replaces /wp-includes/post.php function get_posts()</h2>
139
+ <pre>_get_attachments(array $args, boolean $mla_debug) : array</pre>
140
  <div class="labels"></div>
141
  <div class="row collapse"><div class="detail-description">
142
  <p class="long_description"></p>
148
  <div class="subelement argument">
149
  <h4>$args</h4>
150
  <code>array</code><p>Attributes of the shortcode</p></div>
151
+ <div class="subelement argument">
152
+ <h4>$mla_debug</h4>
153
+ <code>boolean</code><p>True to add debug information to self::$mla_debug_messages</p>
154
+ </div>
155
  <h3>Returns</h3>
156
  <div class="subelement response">
157
  <code>array</code>List of attachments returned from WP_Query</div>
158
  </div></div>
159
  </div>
160
+ <h3>
161
+ <i class="icon-custom icon-property"></i> Properties</h3>
162
+ <a name="%24mla_debug_messages" id="$mla_debug_messages"> </a><div class="element clickable property private $mla_debug_messages" data-toggle="collapse" data-target=".$mla_debug_messages .collapse">
163
+ <h2>Accumulates debug messages</h2>
164
+ <pre>$mla_debug_messages : string</pre>
165
+ <div class="labels"></div>
166
+ <div class="row collapse"><div class="detail-description">
167
+ <p class="long_description"></p>
168
+ <table class="table table-bordered"><tr>
169
+ <th>since</th>
170
+ <td>0.60</td>
171
+ </tr></table>
172
+ </div></div>
173
+ </div>
174
  </div>
175
  </div>
176
  </div>
178
  <div class="row"><footer class="span12">
179
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
180
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
181
+ generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
182
  </div>
183
  </body>
184
  </html>
phpDocs/classes/MLATest.html CHANGED
@@ -52,8 +52,12 @@
52
  <ul class="side-nav nav nav-list">
53
  <li class="nav-header">
54
  <i class="icon-custom icon-method"></i> Methods</li>
 
55
  <li class="method public "><a href="#min_WordPress_version" title="min_WordPress_version :: Test that your WordPress version is at least that of the $min_version"><span class="description">Test that your WordPress version is at least that of the $min_version</span><pre>min_WordPress_version()</pre></a></li>
56
  <li class="method public "><a href="#min_php_version" title="min_php_version :: Test that your PHP version is at least that of the $min_php_version"><span class="description">Test that your PHP version is at least that of the $min_php_version</span><pre>min_php_version()</pre></a></li>
 
 
 
57
  </ul>
58
  </div>
59
  <div class="span8">
@@ -83,6 +87,18 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
83
  </table>
84
  <h3>
85
  <i class="icon-custom icon-method"></i> Methods</h3>
 
 
 
 
 
 
 
 
 
 
 
 
86
  <a name="min_WordPress_version" id="min_WordPress_version"></a><div class="element clickable method public min_WordPress_version" data-toggle="collapse" data-target=".min_WordPress_version .collapse">
87
  <h2>Test that your WordPress version is at least that of the $min_version</h2>
88
  <pre>min_WordPress_version(string $min_version, string $plugin_name) : void</pre>
@@ -123,6 +139,20 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
123
  <code>string</code><p>Name of the plugin for messaging purposes</p></div>
124
  </div></div>
125
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  </div>
127
  </div>
128
  </div>
@@ -130,7 +160,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
130
  <div class="row"><footer class="span12">
131
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
132
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
133
- generated on 2012-10-13T19:50:41-07:00.<br></footer></div>
134
  </div>
135
  </body>
136
  </html>
52
  <ul class="side-nav nav nav-list">
53
  <li class="nav-header">
54
  <i class="icon-custom icon-method"></i> Methods</li>
55
+ <li class="method public "><a href="#initialize" title="initialize :: Initialization function, similar to __construct()"><span class="description">Initialization function, similar to __construct()</span><pre>initialize()</pre></a></li>
56
  <li class="method public "><a href="#min_WordPress_version" title="min_WordPress_version :: Test that your WordPress version is at least that of the $min_version"><span class="description">Test that your WordPress version is at least that of the $min_version</span><pre>min_WordPress_version()</pre></a></li>
57
  <li class="method public "><a href="#min_php_version" title="min_php_version :: Test that your PHP version is at least that of the $min_php_version"><span class="description">Test that your PHP version is at least that of the $min_php_version</span><pre>min_php_version()</pre></a></li>
58
+ <li class="nav-header">
59
+ <i class="icon-custom icon-property"></i> Properties</li>
60
+ <li class="property public "><a href="#%24wordpress_3point5_plus" title="$wordpress_3point5_plus :: True if WordPress version is 3.5 or newer"><span class="description">True if WordPress version is 3.5 or newer</span><pre>$wordpress_3point5_plus</pre></a></li>
61
  </ul>
62
  </div>
63
  <div class="span8">
87
  </table>
88
  <h3>
89
  <i class="icon-custom icon-method"></i> Methods</h3>
90
+ <a name="initialize" id="initialize"></a><div class="element clickable method public initialize" data-toggle="collapse" data-target=".initialize .collapse">
91
+ <h2>Initialization function, similar to __construct()</h2>
92
+ <pre>initialize() : void</pre>
93
+ <div class="labels"></div>
94
+ <div class="row collapse"><div class="detail-description">
95
+ <p class="long_description"></p>
96
+ <table class="table table-bordered"><tr>
97
+ <th>since</th>
98
+ <td>0.60</td>
99
+ </tr></table>
100
+ </div></div>
101
+ </div>
102
  <a name="min_WordPress_version" id="min_WordPress_version"></a><div class="element clickable method public min_WordPress_version" data-toggle="collapse" data-target=".min_WordPress_version .collapse">
103
  <h2>Test that your WordPress version is at least that of the $min_version</h2>
104
  <pre>min_WordPress_version(string $min_version, string $plugin_name) : void</pre>
139
  <code>string</code><p>Name of the plugin for messaging purposes</p></div>
140
  </div></div>
141
  </div>
142
+ <h3>
143
+ <i class="icon-custom icon-property"></i> Properties</h3>
144
+ <a name="%24wordpress_3point5_plus" id="$wordpress_3point5_plus"> </a><div class="element clickable property public $wordpress_3point5_plus" data-toggle="collapse" data-target=".$wordpress_3point5_plus .collapse">
145
+ <h2>True if WordPress version is 3.5 or newer</h2>
146
+ <pre>$wordpress_3point5_plus : boolean</pre>
147
+ <div class="labels"></div>
148
+ <div class="row collapse"><div class="detail-description">
149
+ <p class="long_description"></p>
150
+ <table class="table table-bordered"><tr>
151
+ <th>since</th>
152
+ <td>0.60</td>
153
+ </tr></table>
154
+ </div></div>
155
+ </div>
156
  </div>
157
  </div>
158
  </div>
160
  <div class="row"><footer class="span12">
161
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
162
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
163
+ generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
164
  </div>
165
  </body>
166
  </html>
phpDocs/classes/MLA_List_Table.html CHANGED
@@ -68,6 +68,7 @@ calls the parent constructor to set some default configs.</span><pre>__construct
68
  <li class="method public "><a href="#column_featured" title="column_featured :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_featured()</pre></a></li>
69
  <li class="method public "><a href="#column_icon" title="column_icon :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_icon()</pre></a></li>
70
  <li class="method public "><a href="#column_inserted" title="column_inserted :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_inserted()</pre></a></li>
 
71
  <li class="method public "><a href="#column_modified" title="column_modified :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_modified()</pre></a></li>
72
  <li class="method public "><a href="#column_parent" title="column_parent :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_parent()</pre></a></li>
73
  <li class="method public "><a href="#column_post_mime_type" title="column_post_mime_type :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_post_mime_type()</pre></a></li>
@@ -416,6 +417,26 @@ have a specific method, so this function returns a troubleshooting message.</p><
416
  <code>string</code>HTML markup to be placed inside the column</div>
417
  </div></div>
418
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
419
  <a name="column_modified" id="column_modified"></a><div class="element clickable method public column_modified" data-toggle="collapse" data-target=".column_modified .collapse">
420
  <h2>Supply the content for a custom column</h2>
421
  <pre>column_modified(array $item) : string</pre>
@@ -923,7 +944,7 @@ sorted by that column. This is computed each time the table is displayed.</p></p
923
  <div class="row"><footer class="span12">
924
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
925
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
926
- generated on 2012-10-13T19:50:41-07:00.<br></footer></div>
927
  </div>
928
  </body>
929
  </html>
68
  <li class="method public "><a href="#column_featured" title="column_featured :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_featured()</pre></a></li>
69
  <li class="method public "><a href="#column_icon" title="column_icon :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_icon()</pre></a></li>
70
  <li class="method public "><a href="#column_inserted" title="column_inserted :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_inserted()</pre></a></li>
71
+ <li class="method public "><a href="#column_menu_order" title="column_menu_order :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_menu_order()</pre></a></li>
72
  <li class="method public "><a href="#column_modified" title="column_modified :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_modified()</pre></a></li>
73
  <li class="method public "><a href="#column_parent" title="column_parent :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_parent()</pre></a></li>
74
  <li class="method public "><a href="#column_post_mime_type" title="column_post_mime_type :: Supply the content for a custom column"><span class="description">Supply the content for a custom column</span><pre>column_post_mime_type()</pre></a></li>
417
  <code>string</code>HTML markup to be placed inside the column</div>
418
  </div></div>
419
  </div>
420
+ <a name="column_menu_order" id="column_menu_order"></a><div class="element clickable method public column_menu_order" data-toggle="collapse" data-target=".column_menu_order .collapse">
421
+ <h2>Supply the content for a custom column</h2>
422
+ <pre>column_menu_order(array $item) : string</pre>
423
+ <div class="labels"></div>
424
+ <div class="row collapse"><div class="detail-description">
425
+ <p class="long_description"></p>
426
+ <table class="table table-bordered"><tr>
427
+ <th>since</th>
428
+ <td>0.60</td>
429
+ </tr></table>
430
+ <h3>Parameters</h3>
431
+ <div class="subelement argument">
432
+ <h4>$item</h4>
433
+ <code>array</code><p>A singular attachment (post) object</p>
434
+ </div>
435
+ <h3>Returns</h3>
436
+ <div class="subelement response">
437
+ <code>string</code>HTML markup to be placed inside the column</div>
438
+ </div></div>
439
+ </div>
440
  <a name="column_modified" id="column_modified"></a><div class="element clickable method public column_modified" data-toggle="collapse" data-target=".column_modified .collapse">
441
  <h2>Supply the content for a custom column</h2>
442
  <pre>column_modified(array $item) : string</pre>
944
  <div class="row"><footer class="span12">
945
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
946
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
947
+ generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
948
  </div>
949
  </body>
950
  </html>
phpDocs/deprecated.html CHANGED
@@ -62,7 +62,7 @@
62
  <div class="row"><footer class="span12">
63
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
64
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
65
- generated on 2012-10-13T19:50:41-07:00.<br></footer></div>
66
  </div>
67
  </body>
68
  </html>
62
  <div class="row"><footer class="span12">
63
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
64
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
65
+ generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
66
  </div>
67
  </body>
68
  </html>
phpDocs/errors.html CHANGED
@@ -74,7 +74,7 @@
74
  <div class="row"><footer class="span12">
75
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
76
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
77
- generated on 2012-10-13T19:50:41-07:00.<br></footer></div>
78
  </div>
79
  </body>
80
  </html>
74
  <div class="row"><footer class="span12">
75
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
76
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
77
+ generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
78
  </div>
79
  </body>
80
  </html>
phpDocs/graph_class.html CHANGED
@@ -59,7 +59,7 @@
59
  </script><div class="row"><footer class="span12">
60
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
61
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
62
- generated on 2012-10-13T19:50:41-07:00.<br></footer></div>
63
  </div>
64
  </body>
65
  </html>
59
  </script><div class="row"><footer class="span12">
60
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
61
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
62
+ generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
63
  </div>
64
  </body>
65
  </html>
phpDocs/index.html CHANGED
@@ -79,7 +79,7 @@
79
  <div class="row"><footer class="span12">
80
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
81
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
82
- generated on 2012-10-13T19:50:41-07:00.<br></footer></div>
83
  </div>
84
  </body>
85
  </html>
79
  <div class="row"><footer class="span12">
80
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
81
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
82
+ generated on 2012-10-24T10:33:49-07:00.<br></footer></div>
83
  </div>
84
  </body>
85
  </html>
phpDocs/markers.html CHANGED
@@ -64,7 +64,7 @@
64
  <div class="row"><footer class="span12">
65
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
66
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
67
- generated on 2012-10-13T19:50:41-07:00.<br></footer></div>
68
  </div>
69
  </body>
70
  </html>
64
  <div class="row"><footer class="span12">
65
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
66
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
67
+ generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
68
  </div>
69
  </body>
70
  </html>
phpDocs/namespaces/global.html CHANGED
@@ -159,7 +159,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
159
  <div class="row"><footer class="span12">
160
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
161
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
162
- generated on 2012-10-13T19:50:41-07:00.<br></footer></div>
163
  </div>
164
  </body>
165
  </html>
159
  <div class="row"><footer class="span12">
160
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
161
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
162
+ generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
163
  </div>
164
  </body>
165
  </html>
phpDocs/packages/Media Library Assistant.html CHANGED
@@ -179,7 +179,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
179
  <div class="row"><footer class="span12">
180
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
181
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
182
- generated on 2012-10-13T19:50:41-07:00.<br></footer></div>
183
  </div>
184
  </body>
185
  </html>
179
  <div class="row"><footer class="span12">
180
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
181
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
182
+ generated on 2012-10-24T10:33:50-07:00.<br></footer></div>
183
  </div>
184
  </body>
185
  </html>
phpDocs/structure.xml CHANGED
@@ -1,6 +1,6 @@
1
  <?xml version="1.0" encoding="utf-8"?>
2
  <project version="2.0.0a8" title="Media Library Assistant">
3
- <file path="includes\class-mla-data.php" hash="a7a7cf84277084dd2745f90fa38c39c7" package="Media Library Assistant">
4
  <docblock line="2">
5
  <description><![CDATA[Database and template file access for MLA needs]]></description>
6
  <long-description><![CDATA[]]></long-description>
@@ -196,176 +196,204 @@ Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-descri
196
  <type/>
197
  </argument>
198
  </method>
199
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="409" package="Media Library Assistant">
200
  <name>_execute_list_table_query</name>
201
  <full_name>_execute_list_table_query</full_name>
202
- <docblock line="400">
203
  <description><![CDATA[Add filters, run query, remove filters]]></description>
204
  <long-description><![CDATA[]]></long-description>
205
- <tag line="400" name="since" description="0.30"/>
206
- <tag line="400" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
207
  <type by_reference="false">array</type>
208
  </tag>
209
- <tag line="400" name="return" description="WP_Query object with query results" type="object">
210
  <type by_reference="false">object</type>
211
  </tag>
212
  </docblock>
213
- <argument line="409">
214
  <name>$request</name>
215
  <default><![CDATA[]]></default>
216
  <type/>
217
  </argument>
218
  </method>
219
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="434" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
220
  <name>mla_query_posts_join_filter</name>
221
  <full_name>mla_query_posts_join_filter</full_name>
222
- <docblock line="423">
223
  <description><![CDATA[Adds a JOIN clause, if required]]></description>
224
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
225
- <tag line="423" name="since" description="0.30"/>
226
- <tag line="423" name="param" description="query clause before modification" type="string" variable="$join_clause">
227
  <type by_reference="false">string</type>
228
  </tag>
229
- <tag line="423" name="return" description="query clause after &quot;detached&quot; item modification" type="string">
230
  <type by_reference="false">string</type>
231
  </tag>
232
  </docblock>
233
- <argument line="434">
234
  <name>$join_clause</name>
235
  <default><![CDATA[]]></default>
236
  <type/>
237
  </argument>
238
  </method>
239
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="461" package="Media Library Assistant">
240
  <name>mla_query_posts_where_filter</name>
241
  <full_name>mla_query_posts_where_filter</full_name>
242
- <docblock line="449">
243
  <description><![CDATA[Adds a WHERE clause for detached items]]></description>
244
  <long-description><![CDATA[<p>Modeled after _edit_attachments_query_helper in wp-admin/post.php.
245
  Defined as public because it's a filter.</p>]]></long-description>
246
- <tag line="449" name="since" description="0.1"/>
247
- <tag line="449" name="param" description="query clause before modification" type="string" variable="$where_clause">
248
  <type by_reference="false">string</type>
249
  </tag>
250
- <tag line="449" name="return" description="query clause after &quot;detached&quot; item modification" type="string">
251
  <type by_reference="false">string</type>
252
  </tag>
253
  </docblock>
254
- <argument line="461">
255
  <name>$where_clause</name>
256
  <default><![CDATA[]]></default>
257
  <type/>
258
  </argument>
259
  </method>
260
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="482" package="Media Library Assistant">
261
  <name>mla_query_posts_orderby_filter</name>
262
  <full_name>mla_query_posts_orderby_filter</full_name>
263
- <docblock line="470">
264
  <description><![CDATA[Adds a ORDERBY clause, if required]]></description>
265
  <long-description><![CDATA[<p>Expands the range of sort options because the logic in WP_Query is limited.
266
  Defined as public because it's a filter.</p>]]></long-description>
267
- <tag line="470" name="since" description="0.30"/>
268
- <tag line="470" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
269
  <type by_reference="false">string</type>
270
  </tag>
271
- <tag line="470" name="return" description="updated query clause" type="string">
272
  <type by_reference="false">string</type>
273
  </tag>
274
  </docblock>
275
- <argument line="482">
276
  <name>$orderby_clause</name>
277
  <default><![CDATA[]]></default>
278
  <type/>
279
  </argument>
280
  </method>
281
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="531" package="Media Library Assistant">
282
  <name>mla_get_attachment_by_id</name>
283
  <full_name>mla_get_attachment_by_id</full_name>
284
- <docblock line="520">
285
  <description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
286
  <long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
287
  the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
288
- <tag line="520" name="since" description="0.1"/>
289
- <tag line="520" name="param" description="The ID of the attachment post" type="int" variable="$post_id">
290
  <type by_reference="false">int</type>
291
  </tag>
292
- <tag line="520" name="return" description="NULL on failure else associative array" type="NULL|array">
293
  <type by_reference="false">NULL</type>
294
  <type by_reference="false">array</type>
295
  </tag>
296
  </docblock>
297
- <argument line="531">
298
  <name>$post_id</name>
299
  <default><![CDATA[]]></default>
300
  <type/>
301
  </argument>
302
  </method>
303
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="580" package="Media Library Assistant">
304
  <name>mla_fetch_attachment_references</name>
305
  <full_name>mla_fetch_attachment_references</full_name>
306
- <docblock line="567">
307
  <description><![CDATA[Find Featured Image and inserted image/link references to an attachment]]></description>
308
  <long-description><![CDATA[<p>Searches all post and page content to see if the attachment is used
309
  as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
310
- <tag line="567" name="since" description="0.1"/>
311
- <tag line="567" name="param" description="post ID of attachment" type="int" variable="$ID">
312
  <type by_reference="false">int</type>
313
  </tag>
314
- <tag line="567" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent">
315
  <type by_reference="false">int</type>
316
  </tag>
317
- <tag line="567" name="return" description="Reference information; see $references array comments" type="array">
318
  <type by_reference="false">array</type>
319
  </tag>
320
  </docblock>
321
- <argument line="580">
322
  <name>$ID</name>
323
  <default><![CDATA[]]></default>
324
  <type/>
325
  </argument>
326
- <argument line="580">
327
  <name>$parent</name>
328
  <default><![CDATA[]]></default>
329
  <type/>
330
  </argument>
331
  </method>
332
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="727" package="Media Library Assistant">
333
  <name>_fetch_attachment_parent_data</name>
334
  <full_name>_fetch_attachment_parent_data</full_name>
335
- <docblock line="718">
336
  <description><![CDATA[Returns information about an attachment's parent, if found]]></description>
337
  <long-description><![CDATA[]]></long-description>
338
- <tag line="718" name="since" description="0.1"/>
339
- <tag line="718" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent_id">
340
  <type by_reference="false">int</type>
341
  </tag>
342
- <tag line="718" name="return" description="Parent information; post_date, post_title and post_type" type="array">
343
  <type by_reference="false">array</type>
344
  </tag>
345
  </docblock>
346
- <argument line="727">
347
  <name>$parent_id</name>
348
  <default><![CDATA[]]></default>
349
  <type/>
350
  </argument>
351
  </method>
352
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="755" package="Media Library Assistant">
353
  <name>_fetch_attachment_metadata</name>
354
  <full_name>_fetch_attachment_metadata</full_name>
355
- <docblock line="742">
356
  <description><![CDATA[Fetch and filter meta data for an attachment]]></description>
357
  <long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
358
  are stripped out or converted to an 'mla</em>' equivalent. Array data is replaced with
359
  a string containing the first array element.</p>]]></long-description>
360
- <tag line="742" name="since" description="0.1"/>
361
- <tag line="742" name="param" description="post ID of attachment" type="int" variable="$post_id">
362
  <type by_reference="false">int</type>
363
  </tag>
364
- <tag line="742" name="return" description="Meta data variables" type="array">
365
  <type by_reference="false">array</type>
366
  </tag>
367
  </docblock>
368
- <argument line="755">
369
  <name>$post_id</name>
370
  <default><![CDATA[]]></default>
371
  <type/>
@@ -373,7 +401,7 @@ a string containing the first array element.</p>]]></long-description>
373
  </method>
374
  </class>
375
  </file>
376
- <file path="includes\class-mla-list-table.php" hash="fe64fe40bb767f03cdde1bc7b8ead6e0" package="Media Library Assistant">
377
  <docblock line="2">
378
  <description><![CDATA[Media Library Assistant extended List Table class]]></description>
379
  <long-description><![CDATA[]]></long-description>
@@ -419,7 +447,7 @@ a string containing the first array element.</p>]]></long-description>
419
  </property>
420
  <property final="false" static="true" visibility="private" line="72" namespace="global" package="Media Library Assistant">
421
  <name>$default_columns</name>
422
- <default><![CDATA[array('cb' => '<input type="checkbox" />', 'icon' => '', 'ID_parent' => 'ID/Parent', 'title_name' => 'Title/Name', 'post_title' => 'Title', 'post_name' => 'Name', 'parent' => 'Parent ID', 'featured' => 'Featured in', 'inserted' => 'Inserted in', 'alt_text' => 'ALT Text', 'caption' => 'Caption', 'description' => 'Description', 'post_mime_type' => 'MIME Type', 'base_file' => 'Base File', 'date' => 'Date', 'modified' => 'Last Modified', 'author' => 'Author', 'attached_to' => 'Attached to')]]></default>
423
  <docblock line="55">
424
  <description><![CDATA[Table column definitions]]></description>
425
  <long-description><![CDATA[<p>This array defines table columns and titles where the key is the column slug (and class)
@@ -437,10 +465,10 @@ bulk actions or checkboxes, simply leave the 'cb' entry out of your array.</p>
437
  </tag>
438
  </docblock>
439
  </property>
440
- <property final="false" static="true" visibility="private" line="109" namespace="global" package="Media Library Assistant">
441
  <name>$default_hidden_columns</name>
442
- <default><![CDATA[array(0 => 'post_title', 1 => 'post_name', 2 => 'parent', 3 => 'alt_text', 4 => 'caption', 5 => 'description', 6 => 'post_mime_type', 7 => 'base_file', 8 => 'date', 9 => 'modified', 10 => 'author', 11 => 'attached_to')]]></default>
443
- <docblock line="94">
444
  <description><![CDATA[Default values for hidden columns]]></description>
445
  <long-description><![CDATA[<p>This array is used when the user-level option is not set, i.e.,
446
  the user has not altered the selection of hidden columns.</p>
@@ -449,16 +477,16 @@ the user has not altered the selection of hidden columns.</p>
449
  array(0 => 'ID_parent, 1 => 'title_name').</p>
450
 
451
  <p>Taxonomy columns are added to this array by mla_admin_init_action.</p>]]></long-description>
452
- <tag line="94" name="since" description="0.1"/>
453
- <tag line="94" name="var" description="" type="array">
454
  <type by_reference="false">array</type>
455
  </tag>
456
  </docblock>
457
  </property>
458
- <property final="false" static="true" visibility="private" line="144" namespace="global" package="Media Library Assistant">
459
  <name>$default_sortable_columns</name>
460
- <default><![CDATA[array('ID_parent' => array('ID', false), 'title_name' => array('title_name', false), 'post_title' => array('post_title', false), 'post_name' => array('post_name', false), 'parent' => array('post_parent', false), 'alt_text' => array('_wp_attachment_image_alt', false), 'caption' => array('post_excerpt', false), 'description' => array('post_content', false), 'post_mime_type' => array('post_mime_type', false), 'base_file' => array('_wp_attached_file', false), 'date' => array('post_date', false), 'modified' => array('post_modified', false), 'author' => array('post_author', false), 'attached_to' => array('post_parent', false))]]></default>
461
- <docblock line="129">
462
  <description><![CDATA[Sortable column definitions]]></description>
463
  <long-description><![CDATA[<p>This array defines the table columns that can be sorted. The array key
464
  is the column slug that needs to be sortable, and the value is database column
@@ -467,702 +495,722 @@ the case (as the value is a column name from the database, not the list table).<
467
 
468
  <p>The array value also contains a boolean which is 'true' if the data is currently
469
  sorted by that column. This is computed each time the table is displayed.</p>]]></long-description>
470
- <tag line="129" name="since" description="0.1"/>
471
- <tag line="129" name="var" description="" type="array">
472
  <type by_reference="false">array</type>
473
  </tag>
474
  </docblock>
475
  </property>
476
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="171" package="Media Library Assistant">
477
  <name>_default_hidden_columns</name>
478
  <full_name>_default_hidden_columns</full_name>
479
- <docblock line="164">
480
  <description><![CDATA[Access the default list of hidden columns]]></description>
481
  <long-description><![CDATA[]]></long-description>
482
- <tag line="164" name="since" description="0.1"/>
483
- <tag line="164" name="return" description="default list of hidden columns" type="array">
484
  <type by_reference="false">array</type>
485
  </tag>
486
  </docblock>
487
  </method>
488
- <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="188" package="Media Library Assistant">
489
  <name>_avail_mime_types</name>
490
  <full_name>_avail_mime_types</full_name>
491
- <docblock line="176">
492
  <description><![CDATA[Get mime types with one or more attachments for view preparation]]></description>
493
  <long-description><![CDATA[<p>Modeled after get_available_post_mime_types in wp-admin/includes/post.php,
494
  with additional entries.</p>]]></long-description>
495
- <tag line="176" name="since" description="0.1"/>
496
- <tag line="176" name="param" description="Number of posts for each mime type" type="array" variable="$num_posts">
497
  <type by_reference="false">array</type>
498
  </tag>
499
- <tag line="176" name="return" description="Mime type names" type="array">
500
  <type by_reference="false">array</type>
501
  </tag>
502
  </docblock>
503
- <argument line="188">
504
  <name>$num_posts</name>
505
  <default><![CDATA[]]></default>
506
  <type/>
507
  </argument>
508
  </method>
509
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="209" package="Media Library Assistant">
510
  <name>mla_get_attachment_mime_types</name>
511
  <full_name>mla_get_attachment_mime_types</full_name>
512
- <docblock line="199">
513
  <description><![CDATA[Get possible mime types for view preparation]]></description>
514
  <long-description><![CDATA[<p>Modeled after get_post_mime_types in wp-admin/includes/post.php,
515
  with additional entries.</p>]]></long-description>
516
- <tag line="199" name="since" description="0.1"/>
517
- <tag line="199" name="return" description="Mime type names and HTML markup for views" type="array">
518
  <type by_reference="false">array</type>
519
  </tag>
520
  </docblock>
521
  </method>
522
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="282" package="Media Library Assistant">
523
  <name>mla_get_sortable_columns</name>
524
  <full_name>mla_get_sortable_columns</full_name>
525
- <docblock line="275">
526
  <description><![CDATA[Return the names and display values of the sortable columns]]></description>
527
  <long-description><![CDATA[]]></long-description>
528
- <tag line="275" name="since" description="0.30"/>
529
- <tag line="275" name="return" description="name =&gt; array( orderby value, heading ) for sortable columns" type="array">
530
  <type by_reference="false">array</type>
531
  </tag>
532
  </docblock>
533
  </method>
534
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="309" package="Media Library Assistant">
535
  <name>mla_manage_hidden_columns_filter</name>
536
  <full_name>mla_manage_hidden_columns_filter</full_name>
537
- <docblock line="294">
538
  <description><![CDATA[Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden']]></description>
539
  <long-description><![CDATA[<p>Required because the screen.php get_hidden_columns function only uses
540
  the get_user_option result. Set when the file is loaded because the object
541
  is not created in time for the call from screen.php.</p>]]></long-description>
542
- <tag line="294" name="since" description="0.1"/>
543
- <tag line="294" name="param" description="current list of hidden columns, if any" type="string" variable="$result">
544
  <type by_reference="false">string</type>
545
  </tag>
546
- <tag line="294" name="param" description="'managemedia_page_mla-menucolumnshidden'" type="string" variable="$option">
547
  <type by_reference="false">string</type>
548
  </tag>
549
- <tag line="294" name="param" description="WP_User object, if logged in" type="object" variable="$user_data">
550
  <type by_reference="false">object</type>
551
  </tag>
552
- <tag line="294" name="return" description="updated list of hidden columns" type="array">
553
  <type by_reference="false">array</type>
554
  </tag>
555
  </docblock>
556
- <argument line="309">
557
  <name>$result</name>
558
  <default><![CDATA[]]></default>
559
  <type/>
560
  </argument>
561
- <argument line="309">
562
  <name>$option</name>
563
  <default><![CDATA[]]></default>
564
  <type/>
565
  </argument>
566
- <argument line="309">
567
  <name>$user_data</name>
568
  <default><![CDATA[]]></default>
569
  <type/>
570
  </argument>
571
  </method>
572
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="327" package="Media Library Assistant">
573
  <name>mla_manage_columns_filter</name>
574
  <full_name>mla_manage_columns_filter</full_name>
575
- <docblock line="316">
576
  <description><![CDATA[Handler for filter 'manage_media_page_mla-menu_columns']]></description>
577
  <long-description><![CDATA[<p>This required filter dictates the table's columns and titles. Set when the
578
  file is loaded because the list_table object isn't created in time
579
  to affect the "screen options" setup.</p>]]></long-description>
580
- <tag line="316" name="since" description="0.1"/>
581
- <tag line="316" name="return" description="list of table columns" type="array">
582
  <type by_reference="false">array</type>
583
  </tag>
584
  </docblock>
585
  </method>
586
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="342" package="Media Library Assistant">
587
  <name>mla_admin_init_action</name>
588
  <full_name>mla_admin_init_action</full_name>
589
- <docblock line="332">
590
  <description><![CDATA[Adds support for taxonomy columns]]></description>
591
  <long-description><![CDATA[<p>Called in the admin_init action because the list_table object isn't
592
  created in time to affect the "screen options" setup.</p>]]></long-description>
593
- <tag line="332" name="since" description="0.30"/>
594
- <tag line="332" name="return" description="" type="void">
595
  <type by_reference="false">void</type>
596
  </tag>
597
  </docblock>
598
  </method>
599
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="362" package="Media Library Assistant">
600
  <name>__construct</name>
601
  <full_name>__construct</full_name>
602
- <docblock line="354">
603
  <description><![CDATA[Initializes some properties from $_REQUEST vairables, then
604
  calls the parent constructor to set some default configs.]]></description>
605
  <long-description><![CDATA[]]></long-description>
606
- <tag line="354" name="since" description="0.1"/>
607
- <tag line="354" name="return" description="" type="void">
608
  <type by_reference="false">void</type>
609
  </tag>
610
  </docblock>
611
  </method>
612
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="394" package="Media Library Assistant">
613
  <name>column_default</name>
614
  <full_name>column_default</full_name>
615
- <docblock line="381">
616
  <description><![CDATA[Supply a column value if no column-specific function has been defined]]></description>
617
  <long-description><![CDATA[<p>Called when the parent class can't find a method specifically built for a
618
  given column. The taxonomy columns are handled here. All other columns should
619
  have a specific method, so this function returns a troubleshooting message.</p>]]></long-description>
620
- <tag line="381" name="since" description="0.1"/>
621
- <tag line="381" name="param" description="A singular item (one full row's worth of data)" type="array" variable="$item">
622
  <type by_reference="false">array</type>
623
  </tag>
624
- <tag line="381" name="param" description="The name/slug of the column to be processed" type="array" variable="$column_name">
625
  <type by_reference="false">array</type>
626
  </tag>
627
- <tag line="381" name="return" description="Text or HTML to be placed inside the column" type="string">
628
  <type by_reference="false">string</type>
629
  </tag>
630
  </docblock>
631
- <argument line="394">
632
  <name>$item</name>
633
  <default><![CDATA[]]></default>
634
  <type/>
635
  </argument>
636
- <argument line="394">
637
  <name>$column_name</name>
638
  <default><![CDATA[]]></default>
639
  <type/>
640
  </argument>
641
  </method>
642
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="436" package="Media Library Assistant">
643
  <name>column_cb</name>
644
  <full_name>column_cb</full_name>
645
- <docblock line="427">
646
  <description><![CDATA[Displays checkboxes for using bulk actions.]]></description>
647
  <long-description><![CDATA[<p>The 'cb' column
648
  is given special treatment when columns are processed.</p>]]></long-description>
649
- <tag line="427" name="since" description="0.1"/>
650
- <tag line="427" name="param" description="A singular attachment (post) object" type="array" variable="$item">
651
  <type by_reference="false">array</type>
652
  </tag>
653
- <tag line="427" name="return" description="HTML markup to be placed inside the column" type="string">
654
  <type by_reference="false">string</type>
655
  </tag>
656
  </docblock>
657
- <argument line="436">
658
  <name>$item</name>
659
  <default><![CDATA[]]></default>
660
  <type/>
661
  </argument>
662
  </method>
663
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="452" package="Media Library Assistant">
664
  <name>column_icon</name>
665
  <full_name>column_icon</full_name>
666
- <docblock line="444">
667
  <description><![CDATA[Supply the content for a custom column]]></description>
668
  <long-description><![CDATA[]]></long-description>
669
- <tag line="444" name="since" description="0.1"/>
670
- <tag line="444" name="param" description="A singular attachment (post) object" type="array" variable="$item">
671
  <type by_reference="false">array</type>
672
  </tag>
673
- <tag line="444" name="return" description="HTML markup to be placed inside the column" type="string">
674
  <type by_reference="false">string</type>
675
  </tag>
676
  </docblock>
677
- <argument line="452">
678
  <name>$item</name>
679
  <default><![CDATA[]]></default>
680
  <type/>
681
  </argument>
682
  </method>
683
- <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="468" package="Media Library Assistant">
684
  <name>_build_rollover_actions</name>
685
  <full_name>_build_rollover_actions</full_name>
686
- <docblock line="457">
687
  <description><![CDATA[Add rollover actions to exactly one of the following displayed columns:
688
  'ID_parent', 'title_name', 'post_title', 'post_name']]></description>
689
  <long-description><![CDATA[]]></long-description>
690
- <tag line="457" name="since" description="0.1"/>
691
- <tag line="457" name="param" description="A singular attachment (post) object" type="object" variable="$item">
692
  <type by_reference="false">object</type>
693
  </tag>
694
- <tag line="457" name="param" description="Current column name" type="string" variable="$column">
695
  <type by_reference="false">string</type>
696
  </tag>
697
- <tag line="457" name="return" description="Names and URLs of row-level actions" type="array">
698
  <type by_reference="false">array</type>
699
  </tag>
700
  </docblock>
701
- <argument line="468">
702
  <name>$item</name>
703
  <default><![CDATA[]]></default>
704
  <type/>
705
  </argument>
706
- <argument line="468">
707
  <name>$column</name>
708
  <default><![CDATA[]]></default>
709
  <type/>
710
  </argument>
711
  </method>
712
- <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="538" package="Media Library Assistant">
713
  <name>_build_inline_data</name>
714
  <full_name>_build_inline_data</full_name>
715
- <docblock line="529">
716
  <description><![CDATA[Add hidden fields with the data for use in the inline editor]]></description>
717
  <long-description><![CDATA[]]></long-description>
718
- <tag line="529" name="since" description="0.20"/>
719
- <tag line="529" name="param" description="A singular attachment (post) object" type="object" variable="$item">
720
  <type by_reference="false">object</type>
721
  </tag>
722
- <tag line="529" name="return" description="HTML &lt;div&gt; with row data" type="string">
723
  <type by_reference="false">string</type>
724
  </tag>
725
  </docblock>
726
- <argument line="538">
727
  <name>$item</name>
728
  <default><![CDATA[]]></default>
729
  <type/>
730
  </argument>
731
  </method>
732
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="577" package="Media Library Assistant">
733
  <name>column_ID_parent</name>
734
  <full_name>column_ID_parent</full_name>
735
- <docblock line="569">
736
  <description><![CDATA[Supply the content for a custom column]]></description>
737
  <long-description><![CDATA[]]></long-description>
738
- <tag line="569" name="since" description="0.1"/>
739
- <tag line="569" name="param" description="A singular attachment (post) object" type="array" variable="$item">
740
  <type by_reference="false">array</type>
741
  </tag>
742
- <tag line="569" name="return" description="HTML markup to be placed inside the column" type="string">
743
  <type by_reference="false">string</type>
744
  </tag>
745
  </docblock>
746
- <argument line="577">
747
  <name>$item</name>
748
  <default><![CDATA[]]></default>
749
  <type/>
750
  </argument>
751
  </method>
752
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="595" package="Media Library Assistant">
753
  <name>column_title_name</name>
754
  <full_name>column_title_name</full_name>
755
- <docblock line="587">
756
  <description><![CDATA[Supply the content for a custom column]]></description>
757
  <long-description><![CDATA[]]></long-description>
758
- <tag line="587" name="since" description="0.1"/>
759
- <tag line="587" name="param" description="A singular attachment (post) object" type="array" variable="$item">
760
  <type by_reference="false">array</type>
761
  </tag>
762
- <tag line="587" name="return" description="HTML markup to be placed inside the column" type="string">
763
  <type by_reference="false">string</type>
764
  </tag>
765
  </docblock>
766
- <argument line="595">
767
  <name>$item</name>
768
  <default><![CDATA[]]></default>
769
  <type/>
770
  </argument>
771
  </method>
772
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="626" package="Media Library Assistant">
773
  <name>column_post_title</name>
774
  <full_name>column_post_title</full_name>
775
- <docblock line="618">
776
  <description><![CDATA[Supply the content for a custom column]]></description>
777
  <long-description><![CDATA[]]></long-description>
778
- <tag line="618" name="since" description="0.1"/>
779
- <tag line="618" name="param" description="A singular attachment (post) object" type="array" variable="$item">
780
  <type by_reference="false">array</type>
781
  </tag>
782
- <tag line="618" name="return" description="HTML markup to be placed inside the column" type="string">
783
  <type by_reference="false">string</type>
784
  </tag>
785
  </docblock>
786
- <argument line="626">
787
  <name>$item</name>
788
  <default><![CDATA[]]></default>
789
  <type/>
790
  </argument>
791
  </method>
792
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="644" package="Media Library Assistant">
793
  <name>column_post_name</name>
794
  <full_name>column_post_name</full_name>
795
- <docblock line="636">
796
  <description><![CDATA[Supply the content for a custom column]]></description>
797
  <long-description><![CDATA[]]></long-description>
798
- <tag line="636" name="since" description="0.1"/>
799
- <tag line="636" name="param" description="A singular attachment (post) object" type="array" variable="$item">
800
  <type by_reference="false">array</type>
801
  </tag>
802
- <tag line="636" name="return" description="HTML markup to be placed inside the column" type="string">
803
  <type by_reference="false">string</type>
804
  </tag>
805
  </docblock>
806
- <argument line="644">
807
  <name>$item</name>
808
  <default><![CDATA[]]></default>
809
  <type/>
810
  </argument>
811
  </method>
812
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="662" package="Media Library Assistant">
813
  <name>column_parent</name>
814
  <full_name>column_parent</full_name>
815
- <docblock line="654">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
816
  <description><![CDATA[Supply the content for a custom column]]></description>
817
  <long-description><![CDATA[]]></long-description>
818
- <tag line="654" name="since" description="0.1"/>
819
- <tag line="654" name="param" description="A singular attachment (post) object" type="array" variable="$item">
820
  <type by_reference="false">array</type>
821
  </tag>
822
- <tag line="654" name="return" description="HTML markup to be placed inside the column" type="string">
823
  <type by_reference="false">string</type>
824
  </tag>
825
  </docblock>
826
- <argument line="662">
827
  <name>$item</name>
828
  <default><![CDATA[]]></default>
829
  <type/>
830
  </argument>
831
  </method>
832
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="674" package="Media Library Assistant">
833
  <name>column_featured</name>
834
  <full_name>column_featured</full_name>
835
- <docblock line="666">
836
  <description><![CDATA[Supply the content for a custom column]]></description>
837
  <long-description><![CDATA[]]></long-description>
838
- <tag line="666" name="since" description="0.1"/>
839
- <tag line="666" name="param" description="A singular attachment (post) object" type="array" variable="$item">
840
  <type by_reference="false">array</type>
841
  </tag>
842
- <tag line="666" name="return" description="HTML markup to be placed inside the column" type="string">
843
  <type by_reference="false">string</type>
844
  </tag>
845
  </docblock>
846
- <argument line="674">
847
  <name>$item</name>
848
  <default><![CDATA[]]></default>
849
  <type/>
850
  </argument>
851
  </method>
852
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="697" package="Media Library Assistant">
853
  <name>column_inserted</name>
854
  <full_name>column_inserted</full_name>
855
- <docblock line="689">
856
  <description><![CDATA[Supply the content for a custom column]]></description>
857
  <long-description><![CDATA[]]></long-description>
858
- <tag line="689" name="since" description="0.1"/>
859
- <tag line="689" name="param" description="A singular attachment (post) object" type="array" variable="$item">
860
  <type by_reference="false">array</type>
861
  </tag>
862
- <tag line="689" name="return" description="HTML markup to be placed inside the column" type="string">
863
  <type by_reference="false">string</type>
864
  </tag>
865
  </docblock>
866
- <argument line="697">
867
  <name>$item</name>
868
  <default><![CDATA[]]></default>
869
  <type/>
870
  </argument>
871
  </method>
872
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="724" package="Media Library Assistant">
873
  <name>column_alt_text</name>
874
  <full_name>column_alt_text</full_name>
875
- <docblock line="716">
876
  <description><![CDATA[Supply the content for a custom column]]></description>
877
  <long-description><![CDATA[]]></long-description>
878
- <tag line="716" name="since" description="0.1"/>
879
- <tag line="716" name="param" description="A singular attachment (post) object" type="array" variable="$item">
880
  <type by_reference="false">array</type>
881
  </tag>
882
- <tag line="716" name="return" description="HTML markup to be placed inside the column" type="string">
883
  <type by_reference="false">string</type>
884
  </tag>
885
  </docblock>
886
- <argument line="724">
887
  <name>$item</name>
888
  <default><![CDATA[]]></default>
889
  <type/>
890
  </argument>
891
  </method>
892
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="739" package="Media Library Assistant">
893
  <name>column_caption</name>
894
  <full_name>column_caption</full_name>
895
- <docblock line="731">
896
  <description><![CDATA[Supply the content for a custom column]]></description>
897
  <long-description><![CDATA[]]></long-description>
898
- <tag line="731" name="since" description="0.1"/>
899
- <tag line="731" name="param" description="A singular attachment (post) object" type="array" variable="$item">
900
  <type by_reference="false">array</type>
901
  </tag>
902
- <tag line="731" name="return" description="HTML markup to be placed inside the column" type="string">
903
  <type by_reference="false">string</type>
904
  </tag>
905
  </docblock>
906
- <argument line="739">
907
  <name>$item</name>
908
  <default><![CDATA[]]></default>
909
  <type/>
910
  </argument>
911
  </method>
912
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="751" package="Media Library Assistant">
913
  <name>column_description</name>
914
  <full_name>column_description</full_name>
915
- <docblock line="743">
916
  <description><![CDATA[Supply the content for a custom column]]></description>
917
  <long-description><![CDATA[]]></long-description>
918
- <tag line="743" name="since" description="0.1"/>
919
- <tag line="743" name="param" description="A singular attachment (post) object" type="array" variable="$item">
920
  <type by_reference="false">array</type>
921
  </tag>
922
- <tag line="743" name="return" description="HTML markup to be placed inside the column" type="string">
923
  <type by_reference="false">string</type>
924
  </tag>
925
  </docblock>
926
- <argument line="751">
927
  <name>$item</name>
928
  <default><![CDATA[]]></default>
929
  <type/>
930
  </argument>
931
  </method>
932
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="763" package="Media Library Assistant">
933
  <name>column_post_mime_type</name>
934
  <full_name>column_post_mime_type</full_name>
935
- <docblock line="755">
936
  <description><![CDATA[Supply the content for a custom column]]></description>
937
  <long-description><![CDATA[]]></long-description>
938
- <tag line="755" name="since" description="0.30"/>
939
- <tag line="755" name="param" description="A singular attachment (post) object" type="array" variable="$item">
940
  <type by_reference="false">array</type>
941
  </tag>
942
- <tag line="755" name="return" description="HTML markup to be placed inside the column" type="string">
943
  <type by_reference="false">string</type>
944
  </tag>
945
  </docblock>
946
- <argument line="763">
947
  <name>$item</name>
948
  <default><![CDATA[]]></default>
949
  <type/>
950
  </argument>
951
  </method>
952
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="775" package="Media Library Assistant">
953
  <name>column_base_file</name>
954
  <full_name>column_base_file</full_name>
955
- <docblock line="767">
956
  <description><![CDATA[Supply the content for a custom column]]></description>
957
  <long-description><![CDATA[]]></long-description>
958
- <tag line="767" name="since" description="0.1"/>
959
- <tag line="767" name="param" description="A singular attachment (post) object" type="array" variable="$item">
960
  <type by_reference="false">array</type>
961
  </tag>
962
- <tag line="767" name="return" description="HTML markup to be placed inside the column" type="string">
963
  <type by_reference="false">string</type>
964
  </tag>
965
  </docblock>
966
- <argument line="775">
967
  <name>$item</name>
968
  <default><![CDATA[]]></default>
969
  <type/>
970
  </argument>
971
  </method>
972
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="787" package="Media Library Assistant">
973
  <name>column_date</name>
974
  <full_name>column_date</full_name>
975
- <docblock line="779">
976
  <description><![CDATA[Supply the content for a custom column]]></description>
977
  <long-description><![CDATA[]]></long-description>
978
- <tag line="779" name="since" description="0.1"/>
979
- <tag line="779" name="param" description="A singular attachment (post) object" type="array" variable="$item">
980
  <type by_reference="false">array</type>
981
  </tag>
982
- <tag line="779" name="return" description="HTML markup to be placed inside the column" type="string">
983
  <type by_reference="false">string</type>
984
  </tag>
985
  </docblock>
986
- <argument line="787">
987
  <name>$item</name>
988
  <default><![CDATA[]]></default>
989
  <type/>
990
  </argument>
991
  </method>
992
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="816" package="Media Library Assistant">
993
  <name>column_modified</name>
994
  <full_name>column_modified</full_name>
995
- <docblock line="808">
996
  <description><![CDATA[Supply the content for a custom column]]></description>
997
  <long-description><![CDATA[]]></long-description>
998
- <tag line="808" name="since" description="0.30"/>
999
- <tag line="808" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1000
  <type by_reference="false">array</type>
1001
  </tag>
1002
- <tag line="808" name="return" description="HTML markup to be placed inside the column" type="string">
1003
  <type by_reference="false">string</type>
1004
  </tag>
1005
  </docblock>
1006
- <argument line="816">
1007
  <name>$item</name>
1008
  <default><![CDATA[]]></default>
1009
  <type/>
1010
  </argument>
1011
  </method>
1012
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="845" package="Media Library Assistant">
1013
  <name>column_author</name>
1014
  <full_name>column_author</full_name>
1015
- <docblock line="837">
1016
  <description><![CDATA[Supply the content for a custom column]]></description>
1017
  <long-description><![CDATA[]]></long-description>
1018
- <tag line="837" name="since" description="0.30"/>
1019
- <tag line="837" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1020
  <type by_reference="false">array</type>
1021
  </tag>
1022
- <tag line="837" name="return" description="HTML markup to be placed inside the column" type="string">
1023
  <type by_reference="false">string</type>
1024
  </tag>
1025
  </docblock>
1026
- <argument line="845">
1027
  <name>$item</name>
1028
  <default><![CDATA[]]></default>
1029
  <type/>
1030
  </argument>
1031
  </method>
1032
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="862" package="Media Library Assistant">
1033
  <name>column_attached_to</name>
1034
  <full_name>column_attached_to</full_name>
1035
- <docblock line="854">
1036
  <description><![CDATA[Supply the content for a custom column]]></description>
1037
  <long-description><![CDATA[]]></long-description>
1038
- <tag line="854" name="since" description="0.1"/>
1039
- <tag line="854" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1040
  <type by_reference="false">array</type>
1041
  </tag>
1042
- <tag line="854" name="return" description="HTML markup to be placed inside the column" type="string">
1043
  <type by_reference="false">string</type>
1044
  </tag>
1045
  </docblock>
1046
- <argument line="862">
1047
  <name>$item</name>
1048
  <default><![CDATA[]]></default>
1049
  <type/>
1050
  </argument>
1051
  </method>
1052
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="888" package="Media Library Assistant">
1053
  <name>get_columns</name>
1054
  <full_name>get_columns</full_name>
1055
- <docblock line="881">
1056
  <description><![CDATA[This method dictates the table's columns and titles]]></description>
1057
  <long-description><![CDATA[]]></long-description>
1058
- <tag line="881" name="since" description="0.1"/>
1059
- <tag line="881" name="return" description="Column information: 'slugs'=&gt;'Visible Titles'" type="array">
1060
  <type by_reference="false">array</type>
1061
  </tag>
1062
  </docblock>
1063
  </method>
1064
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="900" package="Media Library Assistant">
1065
  <name>get_hidden_columns</name>
1066
  <full_name>get_hidden_columns</full_name>
1067
- <docblock line="892">
1068
  <description><![CDATA[Returns the list of currently hidden columns from a user option or
1069
  from default values if the option is not set]]></description>
1070
  <long-description><![CDATA[]]></long-description>
1071
- <tag line="892" name="since" description="0.1"/>
1072
- <tag line="892" name="return" description="Column information,e.g., array(0 =&gt; 'ID_parent, 1 =&gt; 'title_name')" type="array">
1073
  <type by_reference="false">array</type>
1074
  </tag>
1075
  </docblock>
1076
  </method>
1077
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="920" package="Media Library Assistant">
1078
  <name>get_sortable_columns</name>
1079
  <full_name>get_sortable_columns</full_name>
1080
- <docblock line="910">
1081
  <description><![CDATA[Returns an array where the key is the column that needs to be sortable
1082
  and the value is db column to sort by.]]></description>
1083
  <long-description><![CDATA[<p>Also notes the current sort column,
1084
  if set.</p>]]></long-description>
1085
- <tag line="910" name="since" description="0.1"/>
1086
- <tag line="910" name="return" description="Sortable column information,e.g., 'slugs'=&gt;array('data_values',boolean)" type="array">
1087
  <type by_reference="false">array</type>
1088
  </tag>
1089
  </docblock>
1090
  </method>
1091
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="947" package="Media Library Assistant">
1092
  <name>get_views</name>
1093
  <full_name>get_views</full_name>
1094
- <docblock line="939">
1095
  <description><![CDATA[Returns an associative array listing all the views that can be used with this table.]]></description>
1096
  <long-description><![CDATA[<p>These are listed across the top of the page and managed by WordPress.</p>]]></long-description>
1097
- <tag line="939" name="since" description="0.1"/>
1098
- <tag line="939" name="return" description="View information,e.g., array ( id =&gt; link )" type="array">
1099
  <type by_reference="false">array</type>
1100
  </tag>
1101
  </docblock>
1102
  </method>
1103
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1024" package="Media Library Assistant">
1104
  <name>get_bulk_actions</name>
1105
  <full_name>get_bulk_actions</full_name>
1106
- <docblock line="1016">
1107
  <description><![CDATA[Get an associative array ( option_name => option_title ) with the list
1108
  of bulk actions available on this table.]]></description>
1109
  <long-description><![CDATA[]]></long-description>
1110
- <tag line="1016" name="since" description="0.1"/>
1111
- <tag line="1016" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
1112
  <type by_reference="false">array</type>
1113
  </tag>
1114
  </docblock>
1115
  </method>
1116
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1055" package="Media Library Assistant">
1117
  <name>extra_tablenav</name>
1118
  <full_name>extra_tablenav</full_name>
1119
- <docblock line="1044">
1120
  <description><![CDATA[Extra controls to be displayed between bulk actions and pagination]]></description>
1121
  <long-description><![CDATA[<p>Modeled after class-wp-posts-list-table.php in wp-admin/includes.</p>]]></long-description>
1122
- <tag line="1044" name="since" description="0.1"/>
1123
- <tag line="1044" name="param" description="'top' or 'bottom', i.e., above or below the table rows" type="string" variable="$which">
1124
  <type by_reference="false">string</type>
1125
  </tag>
1126
- <tag line="1044" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
1127
  <type by_reference="false">array</type>
1128
  </tag>
1129
  </docblock>
1130
- <argument line="1055">
1131
  <name>$which</name>
1132
  <default><![CDATA[]]></default>
1133
  <type/>
1134
  </argument>
1135
  </method>
1136
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1115" package="Media Library Assistant">
1137
  <name>prepare_items</name>
1138
  <full_name>prepare_items</full_name>
1139
- <docblock line="1103">
1140
  <description><![CDATA[Prepares the list of items for displaying]]></description>
1141
  <long-description><![CDATA[<p>This is where you prepare your data for display. This method will usually
1142
  be used to query the database, sort and filter the data, and generally
1143
  get it ready to be displayed. At a minimum, we should set $this->items and
1144
  $this->set_pagination_args().</p>]]></long-description>
1145
- <tag line="1103" name="since" description="0.1"/>
1146
- <tag line="1103" name="return" description="" type="void">
1147
  <type by_reference="false">void</type>
1148
  </tag>
1149
  </docblock>
1150
  </method>
1151
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1161" package="Media Library Assistant">
1152
  <name>single_row</name>
1153
  <full_name>single_row</full_name>
1154
- <docblock line="1152">
1155
  <description><![CDATA[Generates (echoes) content for a single row of the table]]></description>
1156
  <long-description><![CDATA[]]></long-description>
1157
- <tag line="1152" name="since" description=".20"/>
1158
- <tag line="1152" name="param" description="the current item" type="object" variable="$item">
1159
  <type by_reference="false">object</type>
1160
  </tag>
1161
- <tag line="1152" name="return" description="Echoes the row HTML" type="void">
1162
  <type by_reference="false">void</type>
1163
  </tag>
1164
  </docblock>
1165
- <argument line="1161">
1166
  <name>$item</name>
1167
  <default><![CDATA[]]></default>
1168
  <type/>
@@ -1170,7 +1218,7 @@ $this->set_pagination_args().</p>]]></long-description>
1170
  </method>
1171
  </class>
1172
  </file>
1173
- <file path="includes\class-mla-main.php" hash="2c8f9915bf1378a0a98232a27894e3a0" package="Media Library Assistant">
1174
  <docblock line="2">
1175
  <description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
1176
  <long-description><![CDATA[]]></long-description>
@@ -1207,7 +1255,7 @@ of images and files held in the WordPress Media Library.]]></description>
1207
  <constant namespace="global" line="41" package="Media Library Assistant">
1208
  <name>CURRENT_MLA_VERSION</name>
1209
  <full_name>CURRENT_MLA_VERSION</full_name>
1210
- <value><![CDATA['0.50']]></value>
1211
  <docblock line="34">
1212
  <description><![CDATA[Current version number]]></description>
1213
  <long-description><![CDATA[]]></long-description>
@@ -1411,441 +1459,473 @@ of images and files held in the WordPress Media Library.]]></description>
1411
  </tag>
1412
  </docblock>
1413
  </property>
1414
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="185" package="Media Library Assistant">
1415
  <name>initialize</name>
1416
  <full_name>initialize</full_name>
1417
  <docblock line="178">
1418
  <description><![CDATA[Initialization function, similar to __construct()]]></description>
1419
- <long-description><![CDATA[]]></long-description>
 
 
1420
  <tag line="178" name="since" description="0.1"/>
1421
  <tag line="178" name="return" description="" type="void">
1422
  <type by_reference="false">void</type>
1423
  </tag>
1424
  </docblock>
1425
  </method>
1426
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="204" package="Media Library Assistant">
1427
  <name>mla_admin_init_action</name>
1428
  <full_name>mla_admin_init_action</full_name>
1429
- <docblock line="197">
1430
  <description><![CDATA[Load the plugin's Ajax handler]]></description>
1431
  <long-description><![CDATA[]]></long-description>
1432
- <tag line="197" name="since" description="0.20"/>
1433
- <tag line="197" name="return" description="" type="void">
1434
  <type by_reference="false">void</type>
1435
  </tag>
1436
  </docblock>
1437
  </method>
1438
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="217" package="Media Library Assistant">
1439
  <name>mla_admin_enqueue_scripts_action</name>
1440
  <full_name>mla_admin_enqueue_scripts_action</full_name>
1441
- <docblock line="208">
1442
  <description><![CDATA[Load the plugin's Style Sheet and Javascript files]]></description>
1443
  <long-description><![CDATA[]]></long-description>
1444
- <tag line="208" name="since" description="0.1"/>
1445
- <tag line="208" name="param" description="Name of the page being loaded" type="string" variable="$page_hook">
1446
  <type by_reference="false">string</type>
1447
  </tag>
1448
- <tag line="208" name="return" description="" type="void">
1449
  <type by_reference="false">void</type>
1450
  </tag>
1451
  </docblock>
1452
- <argument line="217">
1453
  <name>$page_hook</name>
1454
  <default><![CDATA[]]></default>
1455
  <type/>
1456
  </argument>
1457
  </method>
1458
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="263" package="Media Library Assistant">
1459
  <name>mla_admin_menu_action</name>
1460
  <full_name>mla_admin_menu_action</full_name>
1461
- <docblock line="250">
1462
  <description><![CDATA[Add the submenu pages]]></description>
1463
  <long-description><![CDATA[<p>Add a submenu page in the "Media" section,
 
 
 
 
1464
  add submenu page(s) for attachment taxonomies,
1465
- add filter to clean up taxonomy submenu labels
1466
- add settings page in the "Settings" section,
1467
- add settings link in the Plugins section entry for MLA.</p>]]></long-description>
1468
- <tag line="250" name="since" description="0.1"/>
1469
- <tag line="250" name="return" description="" type="void">
1470
  <type by_reference="false">void</type>
1471
  </tag>
1472
  </docblock>
1473
  </method>
1474
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="294" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1475
  <name>mla_add_menu_options</name>
1476
  <full_name>mla_add_menu_options</full_name>
1477
- <docblock line="287">
1478
  <description><![CDATA[Add the "XX Entries per page" filter to the Screen Options tab]]></description>
1479
  <long-description><![CDATA[]]></long-description>
1480
- <tag line="287" name="since" description="0.1"/>
1481
- <tag line="287" name="return" description="" type="void">
1482
  <type by_reference="false">void</type>
1483
  </tag>
1484
  </docblock>
1485
  </method>
1486
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="316" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
1487
  <name>mla_screen_options_show_screen_filter</name>
1488
  <full_name>mla_screen_options_show_screen_filter</full_name>
1489
- <docblock line="306">
1490
  <description><![CDATA[Only show screen options on the table-list screen]]></description>
1491
  <long-description><![CDATA[]]></long-description>
1492
- <tag line="306" name="since" description="0.1"/>
1493
- <tag line="306" name="param" description="True to display &quot;Screen Options&quot;, false to suppress them" type="boolean" variable="$show_screen">
1494
  <type by_reference="false">boolean</type>
1495
  </tag>
1496
- <tag line="306" name="param" description="Name of the page being loaded" type="string" variable="$this_screen">
1497
  <type by_reference="false">string</type>
1498
  </tag>
1499
- <tag line="306" name="return" description="True to display &quot;Screen Options&quot;, false to suppress them" type="boolean">
1500
  <type by_reference="false">boolean</type>
1501
  </tag>
1502
  </docblock>
1503
- <argument line="316">
1504
  <name>$show_screen</name>
1505
  <default><![CDATA[]]></default>
1506
  <type/>
1507
  </argument>
1508
- <argument line="316">
1509
  <name>$this_screen</name>
1510
  <default><![CDATA[]]></default>
1511
  <type/>
1512
  </argument>
1513
  </method>
1514
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="334" package="Media Library Assistant">
1515
  <name>mla_set_screen_option_filter</name>
1516
  <full_name>mla_set_screen_option_filter</full_name>
1517
- <docblock line="323">
1518
  <description><![CDATA[Save the "Entries per page" option set by this user]]></description>
1519
  <long-description><![CDATA[]]></long-description>
1520
- <tag line="323" name="since" description="0.1"/>
1521
- <tag line="323" name="param" description="Unknown - always false?" type="boolean" variable="$status">
1522
  <type by_reference="false">boolean</type>
1523
  </tag>
1524
- <tag line="323" name="param" description="Name of the option being changed" type="string" variable="$option">
1525
  <type by_reference="false">string</type>
1526
  </tag>
1527
- <tag line="323" name="param" description="New value of the option" type="string" variable="$value">
1528
  <type by_reference="false">string</type>
1529
  </tag>
1530
- <tag line="323" name="return" description="New value if this is our option, otherwise nothing" type="string|void">
1531
  <type by_reference="false">string</type>
1532
  <type by_reference="false">void</type>
1533
  </tag>
1534
  </docblock>
1535
- <argument line="334">
1536
  <name>$status</name>
1537
  <default><![CDATA[]]></default>
1538
  <type/>
1539
  </argument>
1540
- <argument line="334">
1541
  <name>$option</name>
1542
  <default><![CDATA[]]></default>
1543
  <type/>
1544
  </argument>
1545
- <argument line="334">
1546
  <name>$value</name>
1547
  <default><![CDATA[]]></default>
1548
  <type/>
1549
  </argument>
1550
  </method>
1551
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="350" package="Media Library Assistant">
1552
  <name>mla_edit_tax_redirect</name>
1553
  <full_name>mla_edit_tax_redirect</full_name>
1554
- <docblock line="340">
1555
  <description><![CDATA[Redirect to the Edit Tags/Categories page]]></description>
1556
  <long-description><![CDATA[<p>The custom taxonomy add/edit submenu entries go to "upload.php" by default.
1557
- This filter is the only way to redirect them to the correct WordPress page.</p>]]></long-description>
1558
- <tag line="340" name="since" description="0.1"/>
1559
- <tag line="340" name="return" description="" type="void">
 
1560
  <type by_reference="false">void</type>
1561
  </tag>
1562
  </docblock>
1563
  </method>
1564
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="368" package="Media Library Assistant">
1565
- <name>mla_add_help_tab</name>
1566
- <full_name>mla_add_help_tab</full_name>
1567
- <docblock line="361">
1568
- <description><![CDATA[Add contextual help tabs to all the MLA pages]]></description>
1569
- <long-description><![CDATA[]]></long-description>
1570
- <tag line="361" name="since" description="0.1"/>
1571
- <tag line="361" name="return" description="" type="void">
1572
- <type by_reference="false">void</type>
1573
- </tag>
1574
- </docblock>
1575
- </method>
1576
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="460" package="Media Library Assistant">
1577
- <name>mla_modify_parent_menu</name>
1578
- <full_name>mla_modify_parent_menu</full_name>
1579
- <docblock line="447">
1580
  <description><![CDATA[Cleanup menus for Edit Tags/Categories page]]></description>
1581
- <long-description><![CDATA[<p>The submenu entries for custom taxonomies under the "Media" menu are not set up
1582
- correctly by WordPress, so this function cleans them up, redirecting the request
1583
- to the right WordPress page for editing/adding taxonomy terms.</p>]]></long-description>
1584
- <tag line="447" name="since" description="0.1"/>
1585
- <tag line="447" name="param" description="The top-level menu page" type="array" variable="$parent_file">
 
 
 
1586
  <type by_reference="false">array</type>
1587
  </tag>
1588
- <tag line="447" name="return" description="The updated top-level menu page" type="string">
1589
  <type by_reference="false">string</type>
1590
  </tag>
1591
  </docblock>
1592
- <argument line="460">
1593
  <name>$parent_file</name>
1594
  <default><![CDATA[]]></default>
1595
  <type/>
1596
  </argument>
1597
  </method>
1598
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="491" package="Media Library Assistant">
1599
  <name>mla_render_admin_page</name>
1600
  <full_name>mla_render_admin_page</full_name>
1601
- <docblock line="484">
1602
  <description><![CDATA[Render the "Assistant" subpage in the Media section, using the list_table package]]></description>
1603
  <long-description><![CDATA[]]></long-description>
1604
- <tag line="484" name="since" description="0.1"/>
1605
- <tag line="484" name="return" description="" type="void">
1606
  <type by_reference="false">void</type>
1607
  </tag>
1608
  </docblock>
1609
  </method>
1610
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="689" package="Media Library Assistant">
1611
  <name>mla_inline_edit_action</name>
1612
  <full_name>mla_inline_edit_action</full_name>
1613
- <docblock line="680">
1614
  <description><![CDATA[Ajax handler for inline editing (quick and bulk edit)]]></description>
1615
  <long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
1616
- <tag line="680" name="since" description="0.20"/>
1617
- <tag line="680" name="return" description="echo HTML &lt;tr&gt; markup for updated row or error message, then die()" type="void">
1618
  <type by_reference="false">void</type>
1619
  </tag>
1620
  </docblock>
1621
  </method>
1622
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="758" package="Media Library Assistant">
1623
  <name>_build_inline_edit_form</name>
1624
  <full_name>_build_inline_edit_form</full_name>
1625
- <docblock line="747">
1626
  <description><![CDATA[Build the hidden row templates for inline editing (quick and bulk edit)]]></description>
1627
  <long-description><![CDATA[<p>inspired by inline_edit() in wp-admin\includes\class-wp-posts-list-table.php.</p>]]></long-description>
1628
- <tag line="747" name="since" description="0.20"/>
1629
- <tag line="747" name="param" description="MLA List Table object" type="object" variable="$MLAListTable">
1630
  <type by_reference="false">object</type>
1631
  </tag>
1632
- <tag line="747" name="return" description="HTML &lt;form&gt; markup for hidden rows" type="string">
1633
  <type by_reference="false">string</type>
1634
  </tag>
1635
  </docblock>
1636
- <argument line="758">
1637
  <name>$MLAListTable</name>
1638
  <default><![CDATA[]]></default>
1639
  <type/>
1640
  </argument>
1641
  </method>
1642
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="885" package="Media Library Assistant">
1643
  <name>_authors_dropdown</name>
1644
  <full_name>_authors_dropdown</full_name>
1645
- <docblock line="874">
1646
  <description><![CDATA[Get the edit Authors dropdown box, if user has suitable permissions]]></description>
1647
  <long-description><![CDATA[]]></long-description>
1648
- <tag line="874" name="since" description="0.20"/>
1649
- <tag line="874" name="param" description="User ID of the current author" type="integer" variable="$author">
1650
  <type by_reference="false">integer</type>
1651
  </tag>
1652
- <tag line="874" name="param" description="HTML name attribute" type="string" variable="$name">
1653
  <type by_reference="false">string</type>
1654
  </tag>
1655
- <tag line="874" name="param" description="HTML class attribute" type="string" variable="$class">
1656
  <type by_reference="false">string</type>
1657
  </tag>
1658
- <tag line="874" name="return" description="HTML markup for the dropdown field or False" type="string|false">
1659
  <type by_reference="false">string</type>
1660
  <type by_reference="false">false</type>
1661
  </tag>
1662
  </docblock>
1663
- <argument line="885">
1664
  <name>$author</name>
1665
  <default><![CDATA[0]]></default>
1666
  <type/>
1667
  </argument>
1668
- <argument line="885">
1669
  <name>$name</name>
1670
  <default><![CDATA['post_author']]></default>
1671
  <type/>
1672
  </argument>
1673
- <argument line="885">
1674
  <name>$class</name>
1675
  <default><![CDATA['authors']]></default>
1676
  <type/>
1677
  </argument>
1678
  </method>
1679
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="917" package="Media Library Assistant">
1680
  <name>_current_bulk_action</name>
1681
  <full_name>_current_bulk_action</full_name>
1682
- <docblock line="910">
1683
  <description><![CDATA[Get the current action selected from the bulk actions dropdown]]></description>
1684
  <long-description><![CDATA[]]></long-description>
1685
- <tag line="910" name="since" description="0.1"/>
1686
- <tag line="910" name="return" description="The action name or False if no action was selected" type="string|false">
1687
  <type by_reference="false">string</type>
1688
  <type by_reference="false">false</type>
1689
  </tag>
1690
  </docblock>
1691
  </method>
1692
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="947" package="Media Library Assistant">
1693
  <name>_delete_single_item</name>
1694
  <full_name>_delete_single_item</full_name>
1695
- <docblock line="938">
1696
  <description><![CDATA[Delete a single item permanently]]></description>
1697
  <long-description><![CDATA[]]></long-description>
1698
- <tag line="938" name="since" description="0.1"/>
1699
- <tag line="938" name="param" description="The form POST data" type="array" variable="$post_id">
1700
  <type by_reference="false">array</type>
1701
  </tag>
1702
- <tag line="938" name="return" description="success/failure message and NULL content" type="array">
1703
  <type by_reference="false">array</type>
1704
  </tag>
1705
  </docblock>
1706
- <argument line="947">
1707
  <name>$post_id</name>
1708
  <default><![CDATA[]]></default>
1709
  <type/>
1710
  </argument>
1711
  </method>
1712
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="976" package="Media Library Assistant">
1713
  <name>_display_single_item</name>
1714
  <full_name>_display_single_item</full_name>
1715
- <docblock line="966">
1716
  <description><![CDATA[Display a single item sub page; prepare the form to
1717
  change the meta data for a single attachment.]]></description>
1718
  <long-description><![CDATA[]]></long-description>
1719
- <tag line="966" name="since" description="0.1"/>
1720
- <tag line="966" name="param" description="The WordPress Post ID of the attachment item" type="int" variable="$post_id">
1721
  <type by_reference="false">int</type>
1722
  </tag>
1723
- <tag line="966" name="return" description="message and/or HTML content" type="array">
1724
  <type by_reference="false">array</type>
1725
  </tag>
1726
  </docblock>
1727
- <argument line="976">
1728
  <name>$post_id</name>
1729
  <default><![CDATA[]]></default>
1730
  <type/>
1731
  </argument>
1732
  </method>
1733
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1190" package="Media Library Assistant">
1734
  <name>_update_single_item</name>
1735
  <full_name>_update_single_item</full_name>
1736
- <docblock line="1177">
1737
  <description><![CDATA[Update a single item; change the meta data
1738
  for a single attachment.]]></description>
1739
  <long-description><![CDATA[]]></long-description>
1740
- <tag line="1177" name="since" description="0.1"/>
1741
- <tag line="1177" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
1742
  <type by_reference="false">int</type>
1743
  </tag>
1744
- <tag line="1177" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_data">
1745
  <type by_reference="false">array</type>
1746
  </tag>
1747
- <tag line="1177" name="param" description="Taxonomy term values" type="array" variable="$tax_input">
1748
  <type by_reference="false">array</type>
1749
  </tag>
1750
- <tag line="1177" name="param" description="Taxonomy actions (add, remove, replace)" type="array" variable="$tax_actions">
1751
  <type by_reference="false">array</type>
1752
  </tag>
1753
- <tag line="1177" name="return" description="success/failure message and NULL content" type="array">
1754
  <type by_reference="false">array</type>
1755
  </tag>
1756
  </docblock>
1757
- <argument line="1190">
1758
  <name>$post_id</name>
1759
  <default><![CDATA[]]></default>
1760
  <type/>
1761
  </argument>
1762
- <argument line="1190">
1763
  <name>$new_data</name>
1764
  <default><![CDATA[]]></default>
1765
  <type/>
1766
  </argument>
1767
- <argument line="1190">
1768
  <name>$tax_input</name>
1769
  <default><![CDATA[NULL]]></default>
1770
  <type/>
1771
  </argument>
1772
- <argument line="1190">
1773
  <name>$tax_actions</name>
1774
  <default><![CDATA[NULL]]></default>
1775
  <type/>
1776
  </argument>
1777
  </method>
1778
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1373" package="Media Library Assistant">
1779
  <name>_remove_tags</name>
1780
  <full_name>_remove_tags</full_name>
1781
- <docblock line="1362">
1782
  <description><![CDATA[Remove tags from a term ids list]]></description>
1783
  <long-description><![CDATA[]]></long-description>
1784
- <tag line="1362" name="since" description="0.40"/>
1785
- <tag line="1362" name="param" description="The term ids currently assigned" type="array" variable="$terms_before">
1786
  <type by_reference="false">array</type>
1787
  </tag>
1788
- <tag line="1362" name="param" description="| string The term ids (array) or names (string) to remove" type="array" variable="$tags">
1789
  <type by_reference="false">array</type>
1790
  </tag>
1791
- <tag line="1362" name="param" description="The taxonomy object" type="object" variable="$taxonomy_obj">
1792
  <type by_reference="false">object</type>
1793
  </tag>
1794
- <tag line="1362" name="return" description="Term ids of the surviving tags" type="array">
1795
  <type by_reference="false">array</type>
1796
  </tag>
1797
  </docblock>
1798
- <argument line="1373">
1799
  <name>$terms_before</name>
1800
  <default><![CDATA[]]></default>
1801
  <type/>
1802
  </argument>
1803
- <argument line="1373">
1804
  <name>$tags</name>
1805
  <default><![CDATA[]]></default>
1806
  <type/>
1807
  </argument>
1808
- <argument line="1373">
1809
  <name>$taxonomy_obj</name>
1810
  <default><![CDATA[]]></default>
1811
  <type/>
1812
  </argument>
1813
  </method>
1814
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1415" package="Media Library Assistant">
1815
  <name>_restore_single_item</name>
1816
  <full_name>_restore_single_item</full_name>
1817
- <docblock line="1406">
1818
  <description><![CDATA[Restore a single item from the Trash]]></description>
1819
  <long-description><![CDATA[]]></long-description>
1820
- <tag line="1406" name="since" description="0.1"/>
1821
- <tag line="1406" name="param" description="The form POST data" type="array" variable="$post_id">
1822
  <type by_reference="false">array</type>
1823
  </tag>
1824
- <tag line="1406" name="return" description="success/failure message and NULL content" type="array">
1825
  <type by_reference="false">array</type>
1826
  </tag>
1827
  </docblock>
1828
- <argument line="1415">
1829
  <name>$post_id</name>
1830
  <default><![CDATA[]]></default>
1831
  <type/>
1832
  </argument>
1833
  </method>
1834
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1451" package="Media Library Assistant">
1835
  <name>_trash_single_item</name>
1836
  <full_name>_trash_single_item</full_name>
1837
- <docblock line="1442">
1838
  <description><![CDATA[Move a single item to Trash]]></description>
1839
  <long-description><![CDATA[]]></long-description>
1840
- <tag line="1442" name="since" description="0.1"/>
1841
- <tag line="1442" name="param" description="The form POST data" type="array" variable="$post_id">
1842
  <type by_reference="false">array</type>
1843
  </tag>
1844
- <tag line="1442" name="return" description="success/failure message and NULL content" type="array">
1845
  <type by_reference="false">array</type>
1846
  </tag>
1847
  </docblock>
1848
- <argument line="1451">
1849
  <name>$post_id</name>
1850
  <default><![CDATA[]]></default>
1851
  <type/>
@@ -1853,7 +1933,7 @@ for a single attachment.]]></description>
1853
  </method>
1854
  </class>
1855
  </file>
1856
- <file path="includes\class-mla-objects.php" hash="365a8f71e063969bed4a81d103c220a6" package="Media Library Assistant">
1857
  <docblock line="2">
1858
  <description><![CDATA[Media Library Assistant Custom Taxonomy and Post Type objects]]></description>
1859
  <long-description><![CDATA[]]></long-description>
@@ -1882,71 +1962,71 @@ for a single attachment.]]></description>
1882
  </tag>
1883
  </docblock>
1884
  </method>
1885
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="34" package="Media Library Assistant">
1886
  <name>_build_taxonomies</name>
1887
  <full_name>_build_taxonomies</full_name>
1888
- <docblock line="27">
1889
  <description><![CDATA[Registers Attachment Categories and Attachment Tags custom taxonomies, adds taxonomy-related filters]]></description>
1890
  <long-description><![CDATA[]]></long-description>
1891
- <tag line="27" name="since" description="0.1"/>
1892
- <tag line="27" name="return" description="" type="void">
1893
  <type by_reference="false">void</type>
1894
  </tag>
1895
  </docblock>
1896
  </method>
1897
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="114" package="Media Library Assistant">
1898
  <name>mla_taxonomy_get_columns_filter</name>
1899
  <full_name>mla_taxonomy_get_columns_filter</full_name>
1900
- <docblock line="104">
1901
  <description><![CDATA[WordPress Filter for edit taxonomy "Attachments" column,
1902
  which replaces the "Posts" column with an equivalent "Attachments" column.]]></description>
1903
  <long-description><![CDATA[]]></long-description>
1904
- <tag line="104" name="since" description="0.30"/>
1905
- <tag line="104" name="param" description="column definitions for the edit taxonomy list table" type="array" variable="$columns">
1906
  <type by_reference="false">array</type>
1907
  </tag>
1908
- <tag line="104" name="return" description="updated column definitions for the edit taxonomy list table" type="array">
1909
  <type by_reference="false">array</type>
1910
  </tag>
1911
  </docblock>
1912
- <argument line="114">
1913
  <name>$columns</name>
1914
  <default><![CDATA[]]></default>
1915
  <type/>
1916
  </argument>
1917
  </method>
1918
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="140" package="Media Library Assistant">
1919
  <name>mla_taxonomy_column_filter</name>
1920
  <full_name>mla_taxonomy_column_filter</full_name>
1921
- <docblock line="127">
1922
  <description><![CDATA[WordPress Filter for edit taxonomy "Attachments" column,
1923
  which returns a count of the attachments assigned a given term]]></description>
1924
  <long-description><![CDATA[]]></long-description>
1925
- <tag line="127" name="since" description="0.30"/>
1926
- <tag line="127" name="param" description="current column value; always ''" type="string" variable="$place_holder">
1927
  <type by_reference="false">string</type>
1928
  </tag>
1929
- <tag line="127" name="param" description="name of the column" type="array" variable="$column_name">
1930
  <type by_reference="false">array</type>
1931
  </tag>
1932
- <tag line="127" name="param" description="ID of the term for which the count is desired" type="array" variable="$term_id">
1933
  <type by_reference="false">array</type>
1934
  </tag>
1935
- <tag line="127" name="return" description="HTML markup for the column content; number of attachments in the category and alink to retrieve a list of them" type="array">
1936
  <type by_reference="false">array</type>
1937
  </tag>
1938
  </docblock>
1939
- <argument line="140">
1940
  <name>$place_holder</name>
1941
  <default><![CDATA[]]></default>
1942
  <type/>
1943
  </argument>
1944
- <argument line="140">
1945
  <name>$column_name</name>
1946
  <default><![CDATA[]]></default>
1947
  <type/>
1948
  </argument>
1949
- <argument line="140">
1950
  <name>$term_id</name>
1951
  <default><![CDATA[]]></default>
1952
  <type/>
@@ -1954,7 +2034,7 @@ which returns a count of the attachments assigned a given term]]></description>
1954
  </method>
1955
  </class>
1956
  </file>
1957
- <file path="includes\class-mla-settings.php" hash="0b5952919548fa0a7e29ad41d0f03940" package="Media Library Assistant">
1958
  <docblock line="2">
1959
  <description><![CDATA[Manages the plugin option settings and provides the settings page to edit them]]></description>
1960
  <long-description><![CDATA[]]></long-description>
@@ -2337,7 +2417,7 @@ settings are being updated or reset.]]></description>
2337
  </method>
2338
  </class>
2339
  </file>
2340
- <file path="includes\class-mla-shortcodes.php" hash="81880022f36a38665a25af8fc6e0734a" package="Media Library Assistant">
2341
  <docblock line="2">
2342
  <description><![CDATA[Media Library Assistant Shortcode handler(s)]]></description>
2343
  <long-description><![CDATA[]]></long-description>
@@ -2354,6 +2434,18 @@ settings are being updated or reset.]]></description>
2354
  <tag line="9" name="package" description="Media Library Assistant"/>
2355
  <tag line="9" name="since" description="0.20"/>
2356
  </docblock>
 
 
 
 
 
 
 
 
 
 
 
 
2357
  <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="23" package="Media Library Assistant">
2358
  <name>initialize</name>
2359
  <full_name>initialize</full_name>
@@ -2378,51 +2470,59 @@ settings are being updated or reset.]]></description>
2378
  </tag>
2379
  </docblock>
2380
  </method>
2381
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="138" package="Media Library Assistant">
2382
  <name>mla_gallery_shortcode</name>
2383
  <full_name>mla_gallery_shortcode</full_name>
2384
- <docblock line="125">
2385
  <description><![CDATA[The MLA Gallery shortcode.]]></description>
2386
  <long-description><![CDATA[<p>This is a superset of the WordPress Gallery shortcode for displaying images on a post,
2387
  page or custom post type. It is adapted from /wp-includes/media.php gallery_shortcode.
2388
  Enhancements include many additional selection parameters and full taxonomy support.</p>]]></long-description>
2389
- <tag line="125" name="since" description=".50"/>
2390
- <tag line="125" name="param" description="Attributes of the shortcode." type="array" variable="$attr">
2391
  <type by_reference="false">array</type>
2392
  </tag>
2393
- <tag line="125" name="return" description="HTML content to display gallery." type="string">
2394
  <type by_reference="false">string</type>
2395
  </tag>
2396
  </docblock>
2397
- <argument line="138">
2398
  <name>$attr</name>
2399
  <default><![CDATA[]]></default>
2400
  <type/>
2401
  </argument>
2402
  </method>
2403
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="514" package="Media Library Assistant">
2404
  <name>_get_attachments</name>
2405
  <full_name>_get_attachments</full_name>
2406
- <docblock line="505">
2407
  <description><![CDATA[Replaces /wp-includes/post.php function get_posts()]]></description>
2408
  <long-description><![CDATA[]]></long-description>
2409
- <tag line="505" name="since" description=".50"/>
2410
- <tag line="505" name="param" description="Attributes of the shortcode" type="array" variable="$args">
2411
  <type by_reference="false">array</type>
2412
  </tag>
2413
- <tag line="505" name="return" description="List of attachments returned from WP_Query" type="array">
 
 
 
2414
  <type by_reference="false">array</type>
2415
  </tag>
2416
  </docblock>
2417
- <argument line="514">
2418
  <name>$args</name>
2419
  <default><![CDATA[]]></default>
2420
  <type/>
2421
  </argument>
 
 
 
 
 
2422
  </method>
2423
  </class>
2424
  </file>
2425
- <file path="includes\mla-plugin-loader.php" hash="9abec375c6f7ae5efd70d593750132ef" package="Media Library Assistant">
2426
  <docblock line="2">
2427
  <description><![CDATA[Media Library Assistant Plugin Loader]]></description>
2428
  <long-description><![CDATA[<p>Defines constants and loads all of the classes and functions required to run the plugin.
@@ -2442,13 +2542,13 @@ This file is only loaded if the naming conflict tests in index.php are passed.</
2442
  <include line="42" type="Require Once" package="Media Library Assistant">
2443
  <name/>
2444
  </include>
2445
- <include line="47" type="Require Once" package="Media Library Assistant">
2446
  <name/>
2447
  </include>
2448
- <include line="54" type="Require Once" package="Media Library Assistant">
2449
  <name/>
2450
  </include>
2451
- <include line="59" type="Require Once" package="Media Library Assistant">
2452
  <name/>
2453
  </include>
2454
  <constant namespace="global" line="16" package="Media Library Assistant">
@@ -2461,13 +2561,13 @@ This file is only loaded if the naming conflict tests in index.php are passed.</
2461
  </docblock>
2462
  </constant>
2463
  </file>
2464
- <file path="index.php" hash="30c4fdc78cd5d1ecc4d04cd0212f3b9f" package="Media Library Assistant">
2465
  <docblock line="2">
2466
  <description><![CDATA[Provides several enhancements to the handling of images and files held in the WordPress Media Library]]></description>
2467
  <long-description><![CDATA[<p>This file contains several tests for name conflicts with other plugins. Only if the tests are passed
2468
  will the rest of the plugin be loaded and run.</p>]]></long-description>
2469
  <tag line="2" name="package" description="Media Library Assistant"/>
2470
- <tag line="2" name="version" description="0.50"/>
2471
  </docblock>
2472
  <include line="103" type="Require Once" package="Media Library Assistant">
2473
  <name>includes/mla-plugin-loader.php</name>
@@ -2500,7 +2600,7 @@ will the rest of the plugin be loaded and run.</p>]]></long-description>
2500
  </docblock>
2501
  </function>
2502
  </file>
2503
- <file path="tests\class-mla-tests.php" hash="629ae391dcbb21123ab0eaccc294e124" package="Media Library Assistant">
2504
  <docblock line="2">
2505
  <description><![CDATA[Provides basic run-time tests to ensure the plugin can run in the current WordPress envrionment]]></description>
2506
  <long-description><![CDATA[]]></long-description>
@@ -2518,57 +2618,81 @@ to ensure the plugin can run in the current WordPress envrionment.]]></descripti
2518
  <tag line="9" name="package" description="Media Library Assistant"/>
2519
  <tag line="9" name="since" description="0.1"/>
2520
  </docblock>
2521
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="27" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2522
  <name>min_php_version</name>
2523
  <full_name>min_php_version</full_name>
2524
- <docblock line="17">
2525
  <description><![CDATA[Test that your PHP version is at least that of the $min_php_version]]></description>
2526
  <long-description><![CDATA[]]></long-description>
2527
- <tag line="17" name="since" description="0.1"/>
2528
- <tag line="17" name="param" description="representing the minimum required version of PHP, e.g. '5.3.2'" type="string" variable="$min_version">
2529
  <type by_reference="false">string</type>
2530
  </tag>
2531
- <tag line="17" name="param" description="Name of the plugin for messaging purposes" type="string" variable="$plugin_name">
2532
  <type by_reference="false">string</type>
2533
  </tag>
2534
- <tag line="17" name="return" description="Exit with messaging if PHP version is too old" type="void">
2535
  <type by_reference="false">void</type>
2536
  </tag>
2537
  </docblock>
2538
- <argument line="27">
2539
  <name>$min_version</name>
2540
  <default><![CDATA[]]></default>
2541
  <type/>
2542
  </argument>
2543
- <argument line="27">
2544
  <name>$plugin_name</name>
2545
  <default><![CDATA[]]></default>
2546
  <type/>
2547
  </argument>
2548
  </method>
2549
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="47" package="Media Library Assistant">
2550
  <name>min_WordPress_version</name>
2551
  <full_name>min_WordPress_version</full_name>
2552
- <docblock line="37">
2553
  <description><![CDATA[Test that your WordPress version is at least that of the $min_version]]></description>
2554
  <long-description><![CDATA[]]></long-description>
2555
- <tag line="37" name="since" description="0.1"/>
2556
- <tag line="37" name="param" description="representing the minimum required version of WordPress, e.g. '3.3.0'" type="string" variable="$min_version">
2557
  <type by_reference="false">string</type>
2558
  </tag>
2559
- <tag line="37" name="param" description="Name of the plugin for messaging purposes" type="string" variable="$plugin_name">
2560
  <type by_reference="false">string</type>
2561
  </tag>
2562
- <tag line="37" name="return" description="Exit with messaging if version is too old" type="void">
2563
  <type by_reference="false">void</type>
2564
  </tag>
2565
  </docblock>
2566
- <argument line="47">
2567
  <name>$min_version</name>
2568
  <default><![CDATA[]]></default>
2569
  <type/>
2570
  </argument>
2571
- <argument line="47">
2572
  <name>$plugin_name</name>
2573
  <default><![CDATA[]]></default>
2574
  <type/>
1
  <?xml version="1.0" encoding="utf-8"?>
2
  <project version="2.0.0a8" title="Media Library Assistant">
3
+ <file path="includes\class-mla-data.php" hash="9993e42c2ccdfa78e83b3079c647dff6" package="Media Library Assistant">
4
  <docblock line="2">
5
  <description><![CDATA[Database and template file access for MLA needs]]></description>
6
  <long-description><![CDATA[]]></long-description>
196
  <type/>
197
  </argument>
198
  </method>
199
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="453" package="Media Library Assistant">
200
  <name>_execute_list_table_query</name>
201
  <full_name>_execute_list_table_query</full_name>
202
+ <docblock line="444">
203
  <description><![CDATA[Add filters, run query, remove filters]]></description>
204
  <long-description><![CDATA[]]></long-description>
205
+ <tag line="444" name="since" description="0.30"/>
206
+ <tag line="444" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
207
  <type by_reference="false">array</type>
208
  </tag>
209
+ <tag line="444" name="return" description="WP_Query object with query results" type="object">
210
  <type by_reference="false">object</type>
211
  </tag>
212
  </docblock>
213
+ <argument line="453">
214
  <name>$request</name>
215
  <default><![CDATA[]]></default>
216
  <type/>
217
  </argument>
218
  </method>
219
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="481" package="Media Library Assistant">
220
+ <name>mla_query_posts_search_filter</name>
221
+ <full_name>mla_query_posts_search_filter</full_name>
222
+ <docblock line="469">
223
+ <description><![CDATA[Adds a keyword search to the WHERE clause, if required]]></description>
224
+ <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
225
+ <tag line="469" name="since" description="0.60"/>
226
+ <tag line="469" name="param" description="query clause before modification" type="string" variable="$search_string">
227
+ <type by_reference="false">string</type>
228
+ </tag>
229
+ <tag line="469" name="param" description="WP_Query object" type="object" variable="$query_object">
230
+ <type by_reference="false">object</type>
231
+ </tag>
232
+ <tag line="469" name="return" description="query clause after keyword search addition" type="string">
233
+ <type by_reference="false">string</type>
234
+ </tag>
235
+ </docblock>
236
+ <argument line="481">
237
+ <name>$search_string</name>
238
+ <default><![CDATA[]]></default>
239
+ <type/>
240
+ </argument>
241
+ <argument line="481">
242
+ <name>$query_object</name>
243
+ <default><![CDATA[]]></default>
244
+ <type/>
245
+ </argument>
246
+ </method>
247
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="554" package="Media Library Assistant">
248
  <name>mla_query_posts_join_filter</name>
249
  <full_name>mla_query_posts_join_filter</full_name>
250
+ <docblock line="543">
251
  <description><![CDATA[Adds a JOIN clause, if required]]></description>
252
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
253
+ <tag line="543" name="since" description="0.30"/>
254
+ <tag line="543" name="param" description="query clause before modification" type="string" variable="$join_clause">
255
  <type by_reference="false">string</type>
256
  </tag>
257
+ <tag line="543" name="return" description="query clause after &quot;detached&quot; item modification" type="string">
258
  <type by_reference="false">string</type>
259
  </tag>
260
  </docblock>
261
+ <argument line="554">
262
  <name>$join_clause</name>
263
  <default><![CDATA[]]></default>
264
  <type/>
265
  </argument>
266
  </method>
267
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="583" package="Media Library Assistant">
268
  <name>mla_query_posts_where_filter</name>
269
  <full_name>mla_query_posts_where_filter</full_name>
270
+ <docblock line="571">
271
  <description><![CDATA[Adds a WHERE clause for detached items]]></description>
272
  <long-description><![CDATA[<p>Modeled after _edit_attachments_query_helper in wp-admin/post.php.
273
  Defined as public because it's a filter.</p>]]></long-description>
274
+ <tag line="571" name="since" description="0.1"/>
275
+ <tag line="571" name="param" description="query clause before modification" type="string" variable="$where_clause">
276
  <type by_reference="false">string</type>
277
  </tag>
278
+ <tag line="571" name="return" description="query clause after &quot;detached&quot; item modification" type="string">
279
  <type by_reference="false">string</type>
280
  </tag>
281
  </docblock>
282
+ <argument line="583">
283
  <name>$where_clause</name>
284
  <default><![CDATA[]]></default>
285
  <type/>
286
  </argument>
287
  </method>
288
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="604" package="Media Library Assistant">
289
  <name>mla_query_posts_orderby_filter</name>
290
  <full_name>mla_query_posts_orderby_filter</full_name>
291
+ <docblock line="592">
292
  <description><![CDATA[Adds a ORDERBY clause, if required]]></description>
293
  <long-description><![CDATA[<p>Expands the range of sort options because the logic in WP_Query is limited.
294
  Defined as public because it's a filter.</p>]]></long-description>
295
+ <tag line="592" name="since" description="0.30"/>
296
+ <tag line="592" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
297
  <type by_reference="false">string</type>
298
  </tag>
299
+ <tag line="592" name="return" description="updated query clause" type="string">
300
  <type by_reference="false">string</type>
301
  </tag>
302
  </docblock>
303
+ <argument line="604">
304
  <name>$orderby_clause</name>
305
  <default><![CDATA[]]></default>
306
  <type/>
307
  </argument>
308
  </method>
309
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="653" package="Media Library Assistant">
310
  <name>mla_get_attachment_by_id</name>
311
  <full_name>mla_get_attachment_by_id</full_name>
312
+ <docblock line="642">
313
  <description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
314
  <long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
315
  the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
316
+ <tag line="642" name="since" description="0.1"/>
317
+ <tag line="642" name="param" description="The ID of the attachment post" type="int" variable="$post_id">
318
  <type by_reference="false">int</type>
319
  </tag>
320
+ <tag line="642" name="return" description="NULL on failure else associative array" type="NULL|array">
321
  <type by_reference="false">NULL</type>
322
  <type by_reference="false">array</type>
323
  </tag>
324
  </docblock>
325
+ <argument line="653">
326
  <name>$post_id</name>
327
  <default><![CDATA[]]></default>
328
  <type/>
329
  </argument>
330
  </method>
331
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="702" package="Media Library Assistant">
332
  <name>mla_fetch_attachment_references</name>
333
  <full_name>mla_fetch_attachment_references</full_name>
334
+ <docblock line="689">
335
  <description><![CDATA[Find Featured Image and inserted image/link references to an attachment]]></description>
336
  <long-description><![CDATA[<p>Searches all post and page content to see if the attachment is used
337
  as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
338
+ <tag line="689" name="since" description="0.1"/>
339
+ <tag line="689" name="param" description="post ID of attachment" type="int" variable="$ID">
340
  <type by_reference="false">int</type>
341
  </tag>
342
+ <tag line="689" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent">
343
  <type by_reference="false">int</type>
344
  </tag>
345
+ <tag line="689" name="return" description="Reference information; see $references array comments" type="array">
346
  <type by_reference="false">array</type>
347
  </tag>
348
  </docblock>
349
+ <argument line="702">
350
  <name>$ID</name>
351
  <default><![CDATA[]]></default>
352
  <type/>
353
  </argument>
354
+ <argument line="702">
355
  <name>$parent</name>
356
  <default><![CDATA[]]></default>
357
  <type/>
358
  </argument>
359
  </method>
360
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="849" package="Media Library Assistant">
361
  <name>_fetch_attachment_parent_data</name>
362
  <full_name>_fetch_attachment_parent_data</full_name>
363
+ <docblock line="840">
364
  <description><![CDATA[Returns information about an attachment's parent, if found]]></description>
365
  <long-description><![CDATA[]]></long-description>
366
+ <tag line="840" name="since" description="0.1"/>
367
+ <tag line="840" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent_id">
368
  <type by_reference="false">int</type>
369
  </tag>
370
+ <tag line="840" name="return" description="Parent information; post_date, post_title and post_type" type="array">
371
  <type by_reference="false">array</type>
372
  </tag>
373
  </docblock>
374
+ <argument line="849">
375
  <name>$parent_id</name>
376
  <default><![CDATA[]]></default>
377
  <type/>
378
  </argument>
379
  </method>
380
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="877" package="Media Library Assistant">
381
  <name>_fetch_attachment_metadata</name>
382
  <full_name>_fetch_attachment_metadata</full_name>
383
+ <docblock line="864">
384
  <description><![CDATA[Fetch and filter meta data for an attachment]]></description>
385
  <long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
386
  are stripped out or converted to an 'mla</em>' equivalent. Array data is replaced with
387
  a string containing the first array element.</p>]]></long-description>
388
+ <tag line="864" name="since" description="0.1"/>
389
+ <tag line="864" name="param" description="post ID of attachment" type="int" variable="$post_id">
390
  <type by_reference="false">int</type>
391
  </tag>
392
+ <tag line="864" name="return" description="Meta data variables" type="array">
393
  <type by_reference="false">array</type>
394
  </tag>
395
  </docblock>
396
+ <argument line="877">
397
  <name>$post_id</name>
398
  <default><![CDATA[]]></default>
399
  <type/>
401
  </method>
402
  </class>
403
  </file>
404
+ <file path="includes\class-mla-list-table.php" hash="6c917e5889f4ae52810230bff5b9258b" package="Media Library Assistant">
405
  <docblock line="2">
406
  <description><![CDATA[Media Library Assistant extended List Table class]]></description>
407
  <long-description><![CDATA[]]></long-description>
447
  </property>
448
  <property final="false" static="true" visibility="private" line="72" namespace="global" package="Media Library Assistant">
449
  <name>$default_columns</name>
450
+ <default><![CDATA[array('cb' => '<input type="checkbox" />', 'icon' => '', 'ID_parent' => 'ID/Parent', 'title_name' => 'Title/Name', 'post_title' => 'Title', 'post_name' => 'Name', 'parent' => 'Parent ID', 'menu_order' => 'Menu Order', 'featured' => 'Featured in', 'inserted' => 'Inserted in', 'alt_text' => 'ALT Text', 'caption' => 'Caption', 'description' => 'Description', 'post_mime_type' => 'MIME Type', 'base_file' => 'Base File', 'date' => 'Date', 'modified' => 'Last Modified', 'author' => 'Author', 'attached_to' => 'Attached to')]]></default>
451
  <docblock line="55">
452
  <description><![CDATA[Table column definitions]]></description>
453
  <long-description><![CDATA[<p>This array defines table columns and titles where the key is the column slug (and class)
465
  </tag>
466
  </docblock>
467
  </property>
468
+ <property final="false" static="true" visibility="private" line="110" namespace="global" package="Media Library Assistant">
469
  <name>$default_hidden_columns</name>
470
+ <default><![CDATA[array(0 => 'post_title', 1 => 'post_name', 2 => 'parent', 3 => 'menu_order', 4 => 'alt_text', 5 => 'caption', 6 => 'description', 7 => 'post_mime_type', 8 => 'base_file', 9 => 'date', 10 => 'modified', 11 => 'author', 12 => 'attached_to')]]></default>
471
+ <docblock line="95">
472
  <description><![CDATA[Default values for hidden columns]]></description>
473
  <long-description><![CDATA[<p>This array is used when the user-level option is not set, i.e.,
474
  the user has not altered the selection of hidden columns.</p>
477
  array(0 => 'ID_parent, 1 => 'title_name').</p>
478
 
479
  <p>Taxonomy columns are added to this array by mla_admin_init_action.</p>]]></long-description>
480
+ <tag line="95" name="since" description="0.1"/>
481
+ <tag line="95" name="var" description="" type="array">
482
  <type by_reference="false">array</type>
483
  </tag>
484
  </docblock>
485
  </property>
486
+ <property final="false" static="true" visibility="private" line="146" namespace="global" package="Media Library Assistant">
487
  <name>$default_sortable_columns</name>
488
+ <default><![CDATA[array('ID_parent' => array('ID', false), 'title_name' => array('title_name', false), 'post_title' => array('post_title', false), 'post_name' => array('post_name', false), 'parent' => array('post_parent', false), 'menu_order' => array('menu_order', false), 'alt_text' => array('_wp_attachment_image_alt', false), 'caption' => array('post_excerpt', false), 'description' => array('post_content', false), 'post_mime_type' => array('post_mime_type', false), 'base_file' => array('_wp_attached_file', false), 'date' => array('post_date', false), 'modified' => array('post_modified', false), 'author' => array('post_author', false), 'attached_to' => array('post_parent', false))]]></default>
489
+ <docblock line="131">
490
  <description><![CDATA[Sortable column definitions]]></description>
491
  <long-description><![CDATA[<p>This array defines the table columns that can be sorted. The array key
492
  is the column slug that needs to be sortable, and the value is database column
495
 
496
  <p>The array value also contains a boolean which is 'true' if the data is currently
497
  sorted by that column. This is computed each time the table is displayed.</p>]]></long-description>
498
+ <tag line="131" name="since" description="0.1"/>
499
+ <tag line="131" name="var" description="" type="array">
500
  <type by_reference="false">array</type>
501
  </tag>
502
  </docblock>
503
  </property>
504
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="174" package="Media Library Assistant">
505
  <name>_default_hidden_columns</name>
506
  <full_name>_default_hidden_columns</full_name>
507
+ <docblock line="167">
508
  <description><![CDATA[Access the default list of hidden columns]]></description>
509
  <long-description><![CDATA[]]></long-description>
510
+ <tag line="167" name="since" description="0.1"/>
511
+ <tag line="167" name="return" description="default list of hidden columns" type="array">
512
  <type by_reference="false">array</type>
513
  </tag>
514
  </docblock>
515
  </method>
516
+ <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="191" package="Media Library Assistant">
517
  <name>_avail_mime_types</name>
518
  <full_name>_avail_mime_types</full_name>
519
+ <docblock line="179">
520
  <description><![CDATA[Get mime types with one or more attachments for view preparation]]></description>
521
  <long-description><![CDATA[<p>Modeled after get_available_post_mime_types in wp-admin/includes/post.php,
522
  with additional entries.</p>]]></long-description>
523
+ <tag line="179" name="since" description="0.1"/>
524
+ <tag line="179" name="param" description="Number of posts for each mime type" type="array" variable="$num_posts">
525
  <type by_reference="false">array</type>
526
  </tag>
527
+ <tag line="179" name="return" description="Mime type names" type="array">
528
  <type by_reference="false">array</type>
529
  </tag>
530
  </docblock>
531
+ <argument line="191">
532
  <name>$num_posts</name>
533
  <default><![CDATA[]]></default>
534
  <type/>
535
  </argument>
536
  </method>
537
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="212" package="Media Library Assistant">
538
  <name>mla_get_attachment_mime_types</name>
539
  <full_name>mla_get_attachment_mime_types</full_name>
540
+ <docblock line="202">
541
  <description><![CDATA[Get possible mime types for view preparation]]></description>
542
  <long-description><![CDATA[<p>Modeled after get_post_mime_types in wp-admin/includes/post.php,
543
  with additional entries.</p>]]></long-description>
544
+ <tag line="202" name="since" description="0.1"/>
545
+ <tag line="202" name="return" description="Mime type names and HTML markup for views" type="array">
546
  <type by_reference="false">array</type>
547
  </tag>
548
  </docblock>
549
  </method>
550
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="285" package="Media Library Assistant">
551
  <name>mla_get_sortable_columns</name>
552
  <full_name>mla_get_sortable_columns</full_name>
553
+ <docblock line="278">
554
  <description><![CDATA[Return the names and display values of the sortable columns]]></description>
555
  <long-description><![CDATA[]]></long-description>
556
+ <tag line="278" name="since" description="0.30"/>
557
+ <tag line="278" name="return" description="name =&gt; array( orderby value, heading ) for sortable columns" type="array">
558
  <type by_reference="false">array</type>
559
  </tag>
560
  </docblock>
561
  </method>
562
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="312" package="Media Library Assistant">
563
  <name>mla_manage_hidden_columns_filter</name>
564
  <full_name>mla_manage_hidden_columns_filter</full_name>
565
+ <docblock line="297">
566
  <description><![CDATA[Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden']]></description>
567
  <long-description><![CDATA[<p>Required because the screen.php get_hidden_columns function only uses
568
  the get_user_option result. Set when the file is loaded because the object
569
  is not created in time for the call from screen.php.</p>]]></long-description>
570
+ <tag line="297" name="since" description="0.1"/>
571
+ <tag line="297" name="param" description="current list of hidden columns, if any" type="string" variable="$result">
572
  <type by_reference="false">string</type>
573
  </tag>
574
+ <tag line="297" name="param" description="'managemedia_page_mla-menucolumnshidden'" type="string" variable="$option">
575
  <type by_reference="false">string</type>
576
  </tag>
577
+ <tag line="297" name="param" description="WP_User object, if logged in" type="object" variable="$user_data">
578
  <type by_reference="false">object</type>
579
  </tag>
580
+ <tag line="297" name="return" description="updated list of hidden columns" type="array">
581
  <type by_reference="false">array</type>
582
  </tag>
583
  </docblock>
584
+ <argument line="312">
585
  <name>$result</name>
586
  <default><![CDATA[]]></default>
587
  <type/>
588
  </argument>
589
+ <argument line="312">
590
  <name>$option</name>
591
  <default><![CDATA[]]></default>
592
  <type/>
593
  </argument>
594
+ <argument line="312">
595
  <name>$user_data</name>
596
  <default><![CDATA[]]></default>
597
  <type/>
598
  </argument>
599
  </method>
600
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="330" package="Media Library Assistant">
601
  <name>mla_manage_columns_filter</name>
602
  <full_name>mla_manage_columns_filter</full_name>
603
+ <docblock line="319">
604
  <description><![CDATA[Handler for filter 'manage_media_page_mla-menu_columns']]></description>
605
  <long-description><![CDATA[<p>This required filter dictates the table's columns and titles. Set when the
606
  file is loaded because the list_table object isn't created in time
607
  to affect the "screen options" setup.</p>]]></long-description>
608
+ <tag line="319" name="since" description="0.1"/>
609
+ <tag line="319" name="return" description="list of table columns" type="array">
610
  <type by_reference="false">array</type>
611
  </tag>
612
  </docblock>
613
  </method>
614
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="345" package="Media Library Assistant">
615
  <name>mla_admin_init_action</name>
616
  <full_name>mla_admin_init_action</full_name>
617
+ <docblock line="335">
618
  <description><![CDATA[Adds support for taxonomy columns]]></description>
619
  <long-description><![CDATA[<p>Called in the admin_init action because the list_table object isn't
620
  created in time to affect the "screen options" setup.</p>]]></long-description>
621
+ <tag line="335" name="since" description="0.30"/>
622
+ <tag line="335" name="return" description="" type="void">
623
  <type by_reference="false">void</type>
624
  </tag>
625
  </docblock>
626
  </method>
627
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="365" package="Media Library Assistant">
628
  <name>__construct</name>
629
  <full_name>__construct</full_name>
630
+ <docblock line="357">
631
  <description><![CDATA[Initializes some properties from $_REQUEST vairables, then
632
  calls the parent constructor to set some default configs.]]></description>
633
  <long-description><![CDATA[]]></long-description>
634
+ <tag line="357" name="since" description="0.1"/>
635
+ <tag line="357" name="return" description="" type="void">
636
  <type by_reference="false">void</type>
637
  </tag>
638
  </docblock>
639
  </method>
640
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="397" package="Media Library Assistant">
641
  <name>column_default</name>
642
  <full_name>column_default</full_name>
643
+ <docblock line="384">
644
  <description><![CDATA[Supply a column value if no column-specific function has been defined]]></description>
645
  <long-description><![CDATA[<p>Called when the parent class can't find a method specifically built for a
646
  given column. The taxonomy columns are handled here. All other columns should
647
  have a specific method, so this function returns a troubleshooting message.</p>]]></long-description>
648
+ <tag line="384" name="since" description="0.1"/>
649
+ <tag line="384" name="param" description="A singular item (one full row's worth of data)" type="array" variable="$item">
650
  <type by_reference="false">array</type>
651
  </tag>
652
+ <tag line="384" name="param" description="The name/slug of the column to be processed" type="array" variable="$column_name">
653
  <type by_reference="false">array</type>
654
  </tag>
655
+ <tag line="384" name="return" description="Text or HTML to be placed inside the column" type="string">
656
  <type by_reference="false">string</type>
657
  </tag>
658
  </docblock>
659
+ <argument line="397">
660
  <name>$item</name>
661
  <default><![CDATA[]]></default>
662
  <type/>
663
  </argument>
664
+ <argument line="397">
665
  <name>$column_name</name>
666
  <default><![CDATA[]]></default>
667
  <type/>
668
  </argument>
669
  </method>
670
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="439" package="Media Library Assistant">
671
  <name>column_cb</name>
672
  <full_name>column_cb</full_name>
673
+ <docblock line="430">
674
  <description><![CDATA[Displays checkboxes for using bulk actions.]]></description>
675
  <long-description><![CDATA[<p>The 'cb' column
676
  is given special treatment when columns are processed.</p>]]></long-description>
677
+ <tag line="430" name="since" description="0.1"/>
678
+ <tag line="430" name="param" description="A singular attachment (post) object" type="array" variable="$item">
679
  <type by_reference="false">array</type>
680
  </tag>
681
+ <tag line="430" name="return" description="HTML markup to be placed inside the column" type="string">
682
  <type by_reference="false">string</type>
683
  </tag>
684
  </docblock>
685
+ <argument line="439">
686
  <name>$item</name>
687
  <default><![CDATA[]]></default>
688
  <type/>
689
  </argument>
690
  </method>
691
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="455" package="Media Library Assistant">
692
  <name>column_icon</name>
693
  <full_name>column_icon</full_name>
694
+ <docblock line="447">
695
  <description><![CDATA[Supply the content for a custom column]]></description>
696
  <long-description><![CDATA[]]></long-description>
697
+ <tag line="447" name="since" description="0.1"/>
698
+ <tag line="447" name="param" description="A singular attachment (post) object" type="array" variable="$item">
699
  <type by_reference="false">array</type>
700
  </tag>
701
+ <tag line="447" name="return" description="HTML markup to be placed inside the column" type="string">
702
  <type by_reference="false">string</type>
703
  </tag>
704
  </docblock>
705
+ <argument line="455">
706
  <name>$item</name>
707
  <default><![CDATA[]]></default>
708
  <type/>
709
  </argument>
710
  </method>
711
+ <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="471" package="Media Library Assistant">
712
  <name>_build_rollover_actions</name>
713
  <full_name>_build_rollover_actions</full_name>
714
+ <docblock line="460">
715
  <description><![CDATA[Add rollover actions to exactly one of the following displayed columns:
716
  'ID_parent', 'title_name', 'post_title', 'post_name']]></description>
717
  <long-description><![CDATA[]]></long-description>
718
+ <tag line="460" name="since" description="0.1"/>
719
+ <tag line="460" name="param" description="A singular attachment (post) object" type="object" variable="$item">
720
  <type by_reference="false">object</type>
721
  </tag>
722
+ <tag line="460" name="param" description="Current column name" type="string" variable="$column">
723
  <type by_reference="false">string</type>
724
  </tag>
725
+ <tag line="460" name="return" description="Names and URLs of row-level actions" type="array">
726
  <type by_reference="false">array</type>
727
  </tag>
728
  </docblock>
729
+ <argument line="471">
730
  <name>$item</name>
731
  <default><![CDATA[]]></default>
732
  <type/>
733
  </argument>
734
+ <argument line="471">
735
  <name>$column</name>
736
  <default><![CDATA[]]></default>
737
  <type/>
738
  </argument>
739
  </method>
740
+ <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="549" package="Media Library Assistant">
741
  <name>_build_inline_data</name>
742
  <full_name>_build_inline_data</full_name>
743
+ <docblock line="540">
744
  <description><![CDATA[Add hidden fields with the data for use in the inline editor]]></description>
745
  <long-description><![CDATA[]]></long-description>
746
+ <tag line="540" name="since" description="0.20"/>
747
+ <tag line="540" name="param" description="A singular attachment (post) object" type="object" variable="$item">
748
  <type by_reference="false">object</type>
749
  </tag>
750
+ <tag line="540" name="return" description="HTML &lt;div&gt; with row data" type="string">
751
  <type by_reference="false">string</type>
752
  </tag>
753
  </docblock>
754
+ <argument line="549">
755
  <name>$item</name>
756
  <default><![CDATA[]]></default>
757
  <type/>
758
  </argument>
759
  </method>
760
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="589" package="Media Library Assistant">
761
  <name>column_ID_parent</name>
762
  <full_name>column_ID_parent</full_name>
763
+ <docblock line="581">
764
  <description><![CDATA[Supply the content for a custom column]]></description>
765
  <long-description><![CDATA[]]></long-description>
766
+ <tag line="581" name="since" description="0.1"/>
767
+ <tag line="581" name="param" description="A singular attachment (post) object" type="array" variable="$item">
768
  <type by_reference="false">array</type>
769
  </tag>
770
+ <tag line="581" name="return" description="HTML markup to be placed inside the column" type="string">
771
  <type by_reference="false">string</type>
772
  </tag>
773
  </docblock>
774
+ <argument line="589">
775
  <name>$item</name>
776
  <default><![CDATA[]]></default>
777
  <type/>
778
  </argument>
779
  </method>
780
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="615" package="Media Library Assistant">
781
  <name>column_title_name</name>
782
  <full_name>column_title_name</full_name>
783
+ <docblock line="607">
784
  <description><![CDATA[Supply the content for a custom column]]></description>
785
  <long-description><![CDATA[]]></long-description>
786
+ <tag line="607" name="since" description="0.1"/>
787
+ <tag line="607" name="param" description="A singular attachment (post) object" type="array" variable="$item">
788
  <type by_reference="false">array</type>
789
  </tag>
790
+ <tag line="607" name="return" description="HTML markup to be placed inside the column" type="string">
791
  <type by_reference="false">string</type>
792
  </tag>
793
  </docblock>
794
+ <argument line="615">
795
  <name>$item</name>
796
  <default><![CDATA[]]></default>
797
  <type/>
798
  </argument>
799
  </method>
800
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="646" package="Media Library Assistant">
801
  <name>column_post_title</name>
802
  <full_name>column_post_title</full_name>
803
+ <docblock line="638">
804
  <description><![CDATA[Supply the content for a custom column]]></description>
805
  <long-description><![CDATA[]]></long-description>
806
+ <tag line="638" name="since" description="0.1"/>
807
+ <tag line="638" name="param" description="A singular attachment (post) object" type="array" variable="$item">
808
  <type by_reference="false">array</type>
809
  </tag>
810
+ <tag line="638" name="return" description="HTML markup to be placed inside the column" type="string">
811
  <type by_reference="false">string</type>
812
  </tag>
813
  </docblock>
814
+ <argument line="646">
815
  <name>$item</name>
816
  <default><![CDATA[]]></default>
817
  <type/>
818
  </argument>
819
  </method>
820
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="664" package="Media Library Assistant">
821
  <name>column_post_name</name>
822
  <full_name>column_post_name</full_name>
823
+ <docblock line="656">
824
  <description><![CDATA[Supply the content for a custom column]]></description>
825
  <long-description><![CDATA[]]></long-description>
826
+ <tag line="656" name="since" description="0.1"/>
827
+ <tag line="656" name="param" description="A singular attachment (post) object" type="array" variable="$item">
828
  <type by_reference="false">array</type>
829
  </tag>
830
+ <tag line="656" name="return" description="HTML markup to be placed inside the column" type="string">
831
  <type by_reference="false">string</type>
832
  </tag>
833
  </docblock>
834
+ <argument line="664">
835
  <name>$item</name>
836
  <default><![CDATA[]]></default>
837
  <type/>
838
  </argument>
839
  </method>
840
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="682" package="Media Library Assistant">
841
  <name>column_parent</name>
842
  <full_name>column_parent</full_name>
843
+ <docblock line="674">
844
+ <description><![CDATA[Supply the content for a custom column]]></description>
845
+ <long-description><![CDATA[]]></long-description>
846
+ <tag line="674" name="since" description="0.1"/>
847
+ <tag line="674" name="param" description="A singular attachment (post) object" type="array" variable="$item">
848
+ <type by_reference="false">array</type>
849
+ </tag>
850
+ <tag line="674" name="return" description="HTML markup to be placed inside the column" type="string">
851
+ <type by_reference="false">string</type>
852
+ </tag>
853
+ </docblock>
854
+ <argument line="682">
855
+ <name>$item</name>
856
+ <default><![CDATA[]]></default>
857
+ <type/>
858
+ </argument>
859
+ </method>
860
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="702" package="Media Library Assistant">
861
+ <name>column_menu_order</name>
862
+ <full_name>column_menu_order</full_name>
863
+ <docblock line="694">
864
  <description><![CDATA[Supply the content for a custom column]]></description>
865
  <long-description><![CDATA[]]></long-description>
866
+ <tag line="694" name="since" description="0.60"/>
867
+ <tag line="694" name="param" description="A singular attachment (post) object" type="array" variable="$item">
868
  <type by_reference="false">array</type>
869
  </tag>
870
+ <tag line="694" name="return" description="HTML markup to be placed inside the column" type="string">
871
  <type by_reference="false">string</type>
872
  </tag>
873
  </docblock>
874
+ <argument line="702">
875
  <name>$item</name>
876
  <default><![CDATA[]]></default>
877
  <type/>
878
  </argument>
879
  </method>
880
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="714" package="Media Library Assistant">
881
  <name>column_featured</name>
882
  <full_name>column_featured</full_name>
883
+ <docblock line="706">
884
  <description><![CDATA[Supply the content for a custom column]]></description>
885
  <long-description><![CDATA[]]></long-description>
886
+ <tag line="706" name="since" description="0.1"/>
887
+ <tag line="706" name="param" description="A singular attachment (post) object" type="array" variable="$item">
888
  <type by_reference="false">array</type>
889
  </tag>
890
+ <tag line="706" name="return" description="HTML markup to be placed inside the column" type="string">
891
  <type by_reference="false">string</type>
892
  </tag>
893
  </docblock>
894
+ <argument line="714">
895
  <name>$item</name>
896
  <default><![CDATA[]]></default>
897
  <type/>
898
  </argument>
899
  </method>
900
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="737" package="Media Library Assistant">
901
  <name>column_inserted</name>
902
  <full_name>column_inserted</full_name>
903
+ <docblock line="729">
904
  <description><![CDATA[Supply the content for a custom column]]></description>
905
  <long-description><![CDATA[]]></long-description>
906
+ <tag line="729" name="since" description="0.1"/>
907
+ <tag line="729" name="param" description="A singular attachment (post) object" type="array" variable="$item">
908
  <type by_reference="false">array</type>
909
  </tag>
910
+ <tag line="729" name="return" description="HTML markup to be placed inside the column" type="string">
911
  <type by_reference="false">string</type>
912
  </tag>
913
  </docblock>
914
+ <argument line="737">
915
  <name>$item</name>
916
  <default><![CDATA[]]></default>
917
  <type/>
918
  </argument>
919
  </method>
920
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="764" package="Media Library Assistant">
921
  <name>column_alt_text</name>
922
  <full_name>column_alt_text</full_name>
923
+ <docblock line="756">
924
  <description><![CDATA[Supply the content for a custom column]]></description>
925
  <long-description><![CDATA[]]></long-description>
926
+ <tag line="756" name="since" description="0.1"/>
927
+ <tag line="756" name="param" description="A singular attachment (post) object" type="array" variable="$item">
928
  <type by_reference="false">array</type>
929
  </tag>
930
+ <tag line="756" name="return" description="HTML markup to be placed inside the column" type="string">
931
  <type by_reference="false">string</type>
932
  </tag>
933
  </docblock>
934
+ <argument line="764">
935
  <name>$item</name>
936
  <default><![CDATA[]]></default>
937
  <type/>
938
  </argument>
939
  </method>
940
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="779" package="Media Library Assistant">
941
  <name>column_caption</name>
942
  <full_name>column_caption</full_name>
943
+ <docblock line="771">
944
  <description><![CDATA[Supply the content for a custom column]]></description>
945
  <long-description><![CDATA[]]></long-description>
946
+ <tag line="771" name="since" description="0.1"/>
947
+ <tag line="771" name="param" description="A singular attachment (post) object" type="array" variable="$item">
948
  <type by_reference="false">array</type>
949
  </tag>
950
+ <tag line="771" name="return" description="HTML markup to be placed inside the column" type="string">
951
  <type by_reference="false">string</type>
952
  </tag>
953
  </docblock>
954
+ <argument line="779">
955
  <name>$item</name>
956
  <default><![CDATA[]]></default>
957
  <type/>
958
  </argument>
959
  </method>
960
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="791" package="Media Library Assistant">
961
  <name>column_description</name>
962
  <full_name>column_description</full_name>
963
+ <docblock line="783">
964
  <description><![CDATA[Supply the content for a custom column]]></description>
965
  <long-description><![CDATA[]]></long-description>
966
+ <tag line="783" name="since" description="0.1"/>
967
+ <tag line="783" name="param" description="A singular attachment (post) object" type="array" variable="$item">
968
  <type by_reference="false">array</type>
969
  </tag>
970
+ <tag line="783" name="return" description="HTML markup to be placed inside the column" type="string">
971
  <type by_reference="false">string</type>
972
  </tag>
973
  </docblock>
974
+ <argument line="791">
975
  <name>$item</name>
976
  <default><![CDATA[]]></default>
977
  <type/>
978
  </argument>
979
  </method>
980
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="803" package="Media Library Assistant">
981
  <name>column_post_mime_type</name>
982
  <full_name>column_post_mime_type</full_name>
983
+ <docblock line="795">
984
  <description><![CDATA[Supply the content for a custom column]]></description>
985
  <long-description><![CDATA[]]></long-description>
986
+ <tag line="795" name="since" description="0.30"/>
987
+ <tag line="795" name="param" description="A singular attachment (post) object" type="array" variable="$item">
988
  <type by_reference="false">array</type>
989
  </tag>
990
+ <tag line="795" name="return" description="HTML markup to be placed inside the column" type="string">
991
  <type by_reference="false">string</type>
992
  </tag>
993
  </docblock>
994
+ <argument line="803">
995
  <name>$item</name>
996
  <default><![CDATA[]]></default>
997
  <type/>
998
  </argument>
999
  </method>
1000
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="815" package="Media Library Assistant">
1001
  <name>column_base_file</name>
1002
  <full_name>column_base_file</full_name>
1003
+ <docblock line="807">
1004
  <description><![CDATA[Supply the content for a custom column]]></description>
1005
  <long-description><![CDATA[]]></long-description>
1006
+ <tag line="807" name="since" description="0.1"/>
1007
+ <tag line="807" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1008
  <type by_reference="false">array</type>
1009
  </tag>
1010
+ <tag line="807" name="return" description="HTML markup to be placed inside the column" type="string">
1011
  <type by_reference="false">string</type>
1012
  </tag>
1013
  </docblock>
1014
+ <argument line="815">
1015
  <name>$item</name>
1016
  <default><![CDATA[]]></default>
1017
  <type/>
1018
  </argument>
1019
  </method>
1020
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="827" package="Media Library Assistant">
1021
  <name>column_date</name>
1022
  <full_name>column_date</full_name>
1023
+ <docblock line="819">
1024
  <description><![CDATA[Supply the content for a custom column]]></description>
1025
  <long-description><![CDATA[]]></long-description>
1026
+ <tag line="819" name="since" description="0.1"/>
1027
+ <tag line="819" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1028
  <type by_reference="false">array</type>
1029
  </tag>
1030
+ <tag line="819" name="return" description="HTML markup to be placed inside the column" type="string">
1031
  <type by_reference="false">string</type>
1032
  </tag>
1033
  </docblock>
1034
+ <argument line="827">
1035
  <name>$item</name>
1036
  <default><![CDATA[]]></default>
1037
  <type/>
1038
  </argument>
1039
  </method>
1040
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="856" package="Media Library Assistant">
1041
  <name>column_modified</name>
1042
  <full_name>column_modified</full_name>
1043
+ <docblock line="848">
1044
  <description><![CDATA[Supply the content for a custom column]]></description>
1045
  <long-description><![CDATA[]]></long-description>
1046
+ <tag line="848" name="since" description="0.30"/>
1047
+ <tag line="848" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1048
  <type by_reference="false">array</type>
1049
  </tag>
1050
+ <tag line="848" name="return" description="HTML markup to be placed inside the column" type="string">
1051
  <type by_reference="false">string</type>
1052
  </tag>
1053
  </docblock>
1054
+ <argument line="856">
1055
  <name>$item</name>
1056
  <default><![CDATA[]]></default>
1057
  <type/>
1058
  </argument>
1059
  </method>
1060
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="885" package="Media Library Assistant">
1061
  <name>column_author</name>
1062
  <full_name>column_author</full_name>
1063
+ <docblock line="877">
1064
  <description><![CDATA[Supply the content for a custom column]]></description>
1065
  <long-description><![CDATA[]]></long-description>
1066
+ <tag line="877" name="since" description="0.30"/>
1067
+ <tag line="877" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1068
  <type by_reference="false">array</type>
1069
  </tag>
1070
+ <tag line="877" name="return" description="HTML markup to be placed inside the column" type="string">
1071
  <type by_reference="false">string</type>
1072
  </tag>
1073
  </docblock>
1074
+ <argument line="885">
1075
  <name>$item</name>
1076
  <default><![CDATA[]]></default>
1077
  <type/>
1078
  </argument>
1079
  </method>
1080
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="906" package="Media Library Assistant">
1081
  <name>column_attached_to</name>
1082
  <full_name>column_attached_to</full_name>
1083
+ <docblock line="898">
1084
  <description><![CDATA[Supply the content for a custom column]]></description>
1085
  <long-description><![CDATA[]]></long-description>
1086
+ <tag line="898" name="since" description="0.1"/>
1087
+ <tag line="898" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1088
  <type by_reference="false">array</type>
1089
  </tag>
1090
+ <tag line="898" name="return" description="HTML markup to be placed inside the column" type="string">
1091
  <type by_reference="false">string</type>
1092
  </tag>
1093
  </docblock>
1094
+ <argument line="906">
1095
  <name>$item</name>
1096
  <default><![CDATA[]]></default>
1097
  <type/>
1098
  </argument>
1099
  </method>
1100
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="936" package="Media Library Assistant">
1101
  <name>get_columns</name>
1102
  <full_name>get_columns</full_name>
1103
+ <docblock line="929">
1104
  <description><![CDATA[This method dictates the table's columns and titles]]></description>
1105
  <long-description><![CDATA[]]></long-description>
1106
+ <tag line="929" name="since" description="0.1"/>
1107
+ <tag line="929" name="return" description="Column information: 'slugs'=&gt;'Visible Titles'" type="array">
1108
  <type by_reference="false">array</type>
1109
  </tag>
1110
  </docblock>
1111
  </method>
1112
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="948" package="Media Library Assistant">
1113
  <name>get_hidden_columns</name>
1114
  <full_name>get_hidden_columns</full_name>
1115
+ <docblock line="940">
1116
  <description><![CDATA[Returns the list of currently hidden columns from a user option or
1117
  from default values if the option is not set]]></description>
1118
  <long-description><![CDATA[]]></long-description>
1119
+ <tag line="940" name="since" description="0.1"/>
1120
+ <tag line="940" name="return" description="Column information,e.g., array(0 =&gt; 'ID_parent, 1 =&gt; 'title_name')" type="array">
1121
  <type by_reference="false">array</type>
1122
  </tag>
1123
  </docblock>
1124
  </method>
1125
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="968" package="Media Library Assistant">
1126
  <name>get_sortable_columns</name>
1127
  <full_name>get_sortable_columns</full_name>
1128
+ <docblock line="958">
1129
  <description><![CDATA[Returns an array where the key is the column that needs to be sortable
1130
  and the value is db column to sort by.]]></description>
1131
  <long-description><![CDATA[<p>Also notes the current sort column,
1132
  if set.</p>]]></long-description>
1133
+ <tag line="958" name="since" description="0.1"/>
1134
+ <tag line="958" name="return" description="Sortable column information,e.g., 'slugs'=&gt;array('data_values',boolean)" type="array">
1135
  <type by_reference="false">array</type>
1136
  </tag>
1137
  </docblock>
1138
  </method>
1139
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="995" package="Media Library Assistant">
1140
  <name>get_views</name>
1141
  <full_name>get_views</full_name>
1142
+ <docblock line="987">
1143
  <description><![CDATA[Returns an associative array listing all the views that can be used with this table.]]></description>
1144
  <long-description><![CDATA[<p>These are listed across the top of the page and managed by WordPress.</p>]]></long-description>
1145
+ <tag line="987" name="since" description="0.1"/>
1146
+ <tag line="987" name="return" description="View information,e.g., array ( id =&gt; link )" type="array">
1147
  <type by_reference="false">array</type>
1148
  </tag>
1149
  </docblock>
1150
  </method>
1151
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1072" package="Media Library Assistant">
1152
  <name>get_bulk_actions</name>
1153
  <full_name>get_bulk_actions</full_name>
1154
+ <docblock line="1064">
1155
  <description><![CDATA[Get an associative array ( option_name => option_title ) with the list
1156
  of bulk actions available on this table.]]></description>
1157
  <long-description><![CDATA[]]></long-description>
1158
+ <tag line="1064" name="since" description="0.1"/>
1159
+ <tag line="1064" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
1160
  <type by_reference="false">array</type>
1161
  </tag>
1162
  </docblock>
1163
  </method>
1164
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1103" package="Media Library Assistant">
1165
  <name>extra_tablenav</name>
1166
  <full_name>extra_tablenav</full_name>
1167
+ <docblock line="1092">
1168
  <description><![CDATA[Extra controls to be displayed between bulk actions and pagination]]></description>
1169
  <long-description><![CDATA[<p>Modeled after class-wp-posts-list-table.php in wp-admin/includes.</p>]]></long-description>
1170
+ <tag line="1092" name="since" description="0.1"/>
1171
+ <tag line="1092" name="param" description="'top' or 'bottom', i.e., above or below the table rows" type="string" variable="$which">
1172
  <type by_reference="false">string</type>
1173
  </tag>
1174
+ <tag line="1092" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
1175
  <type by_reference="false">array</type>
1176
  </tag>
1177
  </docblock>
1178
+ <argument line="1103">
1179
  <name>$which</name>
1180
  <default><![CDATA[]]></default>
1181
  <type/>
1182
  </argument>
1183
  </method>
1184
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1163" package="Media Library Assistant">
1185
  <name>prepare_items</name>
1186
  <full_name>prepare_items</full_name>
1187
+ <docblock line="1151">
1188
  <description><![CDATA[Prepares the list of items for displaying]]></description>
1189
  <long-description><![CDATA[<p>This is where you prepare your data for display. This method will usually
1190
  be used to query the database, sort and filter the data, and generally
1191
  get it ready to be displayed. At a minimum, we should set $this->items and
1192
  $this->set_pagination_args().</p>]]></long-description>
1193
+ <tag line="1151" name="since" description="0.1"/>
1194
+ <tag line="1151" name="return" description="" type="void">
1195
  <type by_reference="false">void</type>
1196
  </tag>
1197
  </docblock>
1198
  </method>
1199
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1209" package="Media Library Assistant">
1200
  <name>single_row</name>
1201
  <full_name>single_row</full_name>
1202
+ <docblock line="1200">
1203
  <description><![CDATA[Generates (echoes) content for a single row of the table]]></description>
1204
  <long-description><![CDATA[]]></long-description>
1205
+ <tag line="1200" name="since" description=".20"/>
1206
+ <tag line="1200" name="param" description="the current item" type="object" variable="$item">
1207
  <type by_reference="false">object</type>
1208
  </tag>
1209
+ <tag line="1200" name="return" description="Echoes the row HTML" type="void">
1210
  <type by_reference="false">void</type>
1211
  </tag>
1212
  </docblock>
1213
+ <argument line="1209">
1214
  <name>$item</name>
1215
  <default><![CDATA[]]></default>
1216
  <type/>
1218
  </method>
1219
  </class>
1220
  </file>
1221
+ <file path="includes\class-mla-main.php" hash="9daa700175d395aedcd332969d2849c1" package="Media Library Assistant">
1222
  <docblock line="2">
1223
  <description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
1224
  <long-description><![CDATA[]]></long-description>
1255
  <constant namespace="global" line="41" package="Media Library Assistant">
1256
  <name>CURRENT_MLA_VERSION</name>
1257
  <full_name>CURRENT_MLA_VERSION</full_name>
1258
+ <value><![CDATA['0.60']]></value>
1259
  <docblock line="34">
1260
  <description><![CDATA[Current version number]]></description>
1261
  <long-description><![CDATA[]]></long-description>
1459
  </tag>
1460
  </docblock>
1461
  </property>
1462
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="189" package="Media Library Assistant">
1463
  <name>initialize</name>
1464
  <full_name>initialize</full_name>
1465
  <docblock line="178">
1466
  <description><![CDATA[Initialization function, similar to __construct()]]></description>
1467
+ <long-description><![CDATA[<p>This function contains add_action and add_filter calls
1468
+ to set up the Ajax handlers, enqueue JavaScript and CSS files, and
1469
+ set up the Assistant submenu.</p>]]></long-description>
1470
  <tag line="178" name="since" description="0.1"/>
1471
  <tag line="178" name="return" description="" type="void">
1472
  <type by_reference="false">void</type>
1473
  </tag>
1474
  </docblock>
1475
  </method>
1476
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="208" package="Media Library Assistant">
1477
  <name>mla_admin_init_action</name>
1478
  <full_name>mla_admin_init_action</full_name>
1479
+ <docblock line="201">
1480
  <description><![CDATA[Load the plugin's Ajax handler]]></description>
1481
  <long-description><![CDATA[]]></long-description>
1482
+ <tag line="201" name="since" description="0.20"/>
1483
+ <tag line="201" name="return" description="" type="void">
1484
  <type by_reference="false">void</type>
1485
  </tag>
1486
  </docblock>
1487
  </method>
1488
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="221" package="Media Library Assistant">
1489
  <name>mla_admin_enqueue_scripts_action</name>
1490
  <full_name>mla_admin_enqueue_scripts_action</full_name>
1491
+ <docblock line="212">
1492
  <description><![CDATA[Load the plugin's Style Sheet and Javascript files]]></description>
1493
  <long-description><![CDATA[]]></long-description>
1494
+ <tag line="212" name="since" description="0.1"/>
1495
+ <tag line="212" name="param" description="Name of the page being loaded" type="string" variable="$page_hook">
1496
  <type by_reference="false">string</type>
1497
  </tag>
1498
+ <tag line="212" name="return" description="" type="void">
1499
  <type by_reference="false">void</type>
1500
  </tag>
1501
  </docblock>
1502
+ <argument line="221">
1503
  <name>$page_hook</name>
1504
  <default><![CDATA[]]></default>
1505
  <type/>
1506
  </argument>
1507
  </method>
1508
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="269" package="Media Library Assistant">
1509
  <name>mla_admin_menu_action</name>
1510
  <full_name>mla_admin_menu_action</full_name>
1511
+ <docblock line="254">
1512
  <description><![CDATA[Add the submenu pages]]></description>
1513
  <long-description><![CDATA[<p>Add a submenu page in the "Media" section,
1514
+ add settings page in the "Settings" section.
1515
+ add settings link in the Plugins section entry for MLA.</p>
1516
+
1517
+ <p>For WordPress versions before 3.5,
1518
  add submenu page(s) for attachment taxonomies,
1519
+ add filter to clean up taxonomy submenu labels.</p>]]></long-description>
1520
+ <tag line="254" name="since" description="0.1"/>
1521
+ <tag line="254" name="return" description="" type="void">
 
 
1522
  <type by_reference="false">void</type>
1523
  </tag>
1524
  </docblock>
1525
  </method>
1526
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="315" package="Media Library Assistant">
1527
+ <name>mla_load_upload_php_action</name>
1528
+ <full_name>mla_load_upload_php_action</full_name>
1529
+ <docblock line="308">
1530
+ <description><![CDATA[Intercept return from Edit Media screen]]></description>
1531
+ <long-description><![CDATA[]]></long-description>
1532
+ <tag line="308" name="since" description="0.60"/>
1533
+ <tag line="308" name="return" description="" type="void">
1534
+ <type by_reference="false">void</type>
1535
+ </tag>
1536
+ </docblock>
1537
+ </method>
1538
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="328" package="Media Library Assistant">
1539
+ <name>mla_load_post_php_action</name>
1540
+ <full_name>mla_load_post_php_action</full_name>
1541
+ <docblock line="321">
1542
+ <description><![CDATA[Intercept call to Edit Media screen]]></description>
1543
+ <long-description><![CDATA[]]></long-description>
1544
+ <tag line="321" name="since" description="0.60"/>
1545
+ <tag line="321" name="return" description="" type="void">
1546
+ <type by_reference="false">void</type>
1547
+ </tag>
1548
+ </docblock>
1549
+ </method>
1550
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="341" package="Media Library Assistant">
1551
  <name>mla_add_menu_options</name>
1552
  <full_name>mla_add_menu_options</full_name>
1553
+ <docblock line="334">
1554
  <description><![CDATA[Add the "XX Entries per page" filter to the Screen Options tab]]></description>
1555
  <long-description><![CDATA[]]></long-description>
1556
+ <tag line="334" name="since" description="0.1"/>
1557
+ <tag line="334" name="return" description="" type="void">
1558
  <type by_reference="false">void</type>
1559
  </tag>
1560
  </docblock>
1561
  </method>
1562
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="360" package="Media Library Assistant">
1563
+ <name>mla_add_help_tab</name>
1564
+ <full_name>mla_add_help_tab</full_name>
1565
+ <docblock line="353">
1566
+ <description><![CDATA[Add contextual help tabs to all the MLA pages]]></description>
1567
+ <long-description><![CDATA[]]></long-description>
1568
+ <tag line="353" name="since" description="0.1"/>
1569
+ <tag line="353" name="return" description="" type="void">
1570
+ <type by_reference="false">void</type>
1571
+ </tag>
1572
+ </docblock>
1573
+ </method>
1574
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="449" package="Media Library Assistant">
1575
  <name>mla_screen_options_show_screen_filter</name>
1576
  <full_name>mla_screen_options_show_screen_filter</full_name>
1577
+ <docblock line="439">
1578
  <description><![CDATA[Only show screen options on the table-list screen]]></description>
1579
  <long-description><![CDATA[]]></long-description>
1580
+ <tag line="439" name="since" description="0.1"/>
1581
+ <tag line="439" name="param" description="True to display &quot;Screen Options&quot;, false to suppress them" type="boolean" variable="$show_screen">
1582
  <type by_reference="false">boolean</type>
1583
  </tag>
1584
+ <tag line="439" name="param" description="Name of the page being loaded" type="string" variable="$this_screen">
1585
  <type by_reference="false">string</type>
1586
  </tag>
1587
+ <tag line="439" name="return" description="True to display &quot;Screen Options&quot;, false to suppress them" type="boolean">
1588
  <type by_reference="false">boolean</type>
1589
  </tag>
1590
  </docblock>
1591
+ <argument line="449">
1592
  <name>$show_screen</name>
1593
  <default><![CDATA[]]></default>
1594
  <type/>
1595
  </argument>
1596
+ <argument line="449">
1597
  <name>$this_screen</name>
1598
  <default><![CDATA[]]></default>
1599
  <type/>
1600
  </argument>
1601
  </method>
1602
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="467" package="Media Library Assistant">
1603
  <name>mla_set_screen_option_filter</name>
1604
  <full_name>mla_set_screen_option_filter</full_name>
1605
+ <docblock line="456">
1606
  <description><![CDATA[Save the "Entries per page" option set by this user]]></description>
1607
  <long-description><![CDATA[]]></long-description>
1608
+ <tag line="456" name="since" description="0.1"/>
1609
+ <tag line="456" name="param" description="Unknown - always false?" type="boolean" variable="$status">
1610
  <type by_reference="false">boolean</type>
1611
  </tag>
1612
+ <tag line="456" name="param" description="Name of the option being changed" type="string" variable="$option">
1613
  <type by_reference="false">string</type>
1614
  </tag>
1615
+ <tag line="456" name="param" description="New value of the option" type="string" variable="$value">
1616
  <type by_reference="false">string</type>
1617
  </tag>
1618
+ <tag line="456" name="return" description="New value if this is our option, otherwise nothing" type="string|void">
1619
  <type by_reference="false">string</type>
1620
  <type by_reference="false">void</type>
1621
  </tag>
1622
  </docblock>
1623
+ <argument line="467">
1624
  <name>$status</name>
1625
  <default><![CDATA[]]></default>
1626
  <type/>
1627
  </argument>
1628
+ <argument line="467">
1629
  <name>$option</name>
1630
  <default><![CDATA[]]></default>
1631
  <type/>
1632
  </argument>
1633
+ <argument line="467">
1634
  <name>$value</name>
1635
  <default><![CDATA[]]></default>
1636
  <type/>
1637
  </argument>
1638
  </method>
1639
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="484" package="Media Library Assistant">
1640
  <name>mla_edit_tax_redirect</name>
1641
  <full_name>mla_edit_tax_redirect</full_name>
1642
+ <docblock line="473">
1643
  <description><![CDATA[Redirect to the Edit Tags/Categories page]]></description>
1644
  <long-description><![CDATA[<p>The custom taxonomy add/edit submenu entries go to "upload.php" by default.
1645
+ This filter is the only way to redirect them to the correct WordPress page.
1646
+ The filter is not required for WordPress 3.5 and later.</p>]]></long-description>
1647
+ <tag line="473" name="since" description="0.1"/>
1648
+ <tag line="473" name="return" description="" type="void">
1649
  <type by_reference="false">void</type>
1650
  </tag>
1651
  </docblock>
1652
  </method>
1653
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="517" package="Media Library Assistant">
1654
+ <name>mla_parent_file_filter</name>
1655
+ <full_name>mla_parent_file_filter</full_name>
1656
+ <docblock line="501">
 
 
 
 
 
 
 
 
 
 
 
 
1657
  <description><![CDATA[Cleanup menus for Edit Tags/Categories page]]></description>
1658
+ <long-description><![CDATA[<p>For WordPress before 3.5, the submenu entries for custom taxonomies
1659
+ under the "Media" menu are not set up correctly by WordPress, so this
1660
+ function cleans them up, redirecting the request to the right WordPress
1661
+ page for editing/adding taxonomy terms.
1662
+ For WordPress 3.5 and later, the function fixes the submenu bolding when
1663
+ going to the Edit Media screen.</p>]]></long-description>
1664
+ <tag line="501" name="since" description="0.1"/>
1665
+ <tag line="501" name="param" description="The top-level menu page" type="array" variable="$parent_file">
1666
  <type by_reference="false">array</type>
1667
  </tag>
1668
+ <tag line="501" name="return" description="The updated top-level menu page" type="string">
1669
  <type by_reference="false">string</type>
1670
  </tag>
1671
  </docblock>
1672
+ <argument line="517">
1673
  <name>$parent_file</name>
1674
  <default><![CDATA[]]></default>
1675
  <type/>
1676
  </argument>
1677
  </method>
1678
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="560" package="Media Library Assistant">
1679
  <name>mla_render_admin_page</name>
1680
  <full_name>mla_render_admin_page</full_name>
1681
+ <docblock line="553">
1682
  <description><![CDATA[Render the "Assistant" subpage in the Media section, using the list_table package]]></description>
1683
  <long-description><![CDATA[]]></long-description>
1684
+ <tag line="553" name="since" description="0.1"/>
1685
+ <tag line="553" name="return" description="" type="void">
1686
  <type by_reference="false">void</type>
1687
  </tag>
1688
  </docblock>
1689
  </method>
1690
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="811" package="Media Library Assistant">
1691
  <name>mla_inline_edit_action</name>
1692
  <full_name>mla_inline_edit_action</full_name>
1693
+ <docblock line="802">
1694
  <description><![CDATA[Ajax handler for inline editing (quick and bulk edit)]]></description>
1695
  <long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
1696
+ <tag line="802" name="since" description="0.20"/>
1697
+ <tag line="802" name="return" description="echo HTML &lt;tr&gt; markup for updated row or error message, then die()" type="void">
1698
  <type by_reference="false">void</type>
1699
  </tag>
1700
  </docblock>
1701
  </method>
1702
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="880" package="Media Library Assistant">
1703
  <name>_build_inline_edit_form</name>
1704
  <full_name>_build_inline_edit_form</full_name>
1705
+ <docblock line="869">
1706
  <description><![CDATA[Build the hidden row templates for inline editing (quick and bulk edit)]]></description>
1707
  <long-description><![CDATA[<p>inspired by inline_edit() in wp-admin\includes\class-wp-posts-list-table.php.</p>]]></long-description>
1708
+ <tag line="869" name="since" description="0.20"/>
1709
+ <tag line="869" name="param" description="MLA List Table object" type="object" variable="$MLAListTable">
1710
  <type by_reference="false">object</type>
1711
  </tag>
1712
+ <tag line="869" name="return" description="HTML &lt;form&gt; markup for hidden rows" type="string">
1713
  <type by_reference="false">string</type>
1714
  </tag>
1715
  </docblock>
1716
+ <argument line="880">
1717
  <name>$MLAListTable</name>
1718
  <default><![CDATA[]]></default>
1719
  <type/>
1720
  </argument>
1721
  </method>
1722
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1007" package="Media Library Assistant">
1723
  <name>_authors_dropdown</name>
1724
  <full_name>_authors_dropdown</full_name>
1725
+ <docblock line="996">
1726
  <description><![CDATA[Get the edit Authors dropdown box, if user has suitable permissions]]></description>
1727
  <long-description><![CDATA[]]></long-description>
1728
+ <tag line="996" name="since" description="0.20"/>
1729
+ <tag line="996" name="param" description="User ID of the current author" type="integer" variable="$author">
1730
  <type by_reference="false">integer</type>
1731
  </tag>
1732
+ <tag line="996" name="param" description="HTML name attribute" type="string" variable="$name">
1733
  <type by_reference="false">string</type>
1734
  </tag>
1735
+ <tag line="996" name="param" description="HTML class attribute" type="string" variable="$class">
1736
  <type by_reference="false">string</type>
1737
  </tag>
1738
+ <tag line="996" name="return" description="HTML markup for the dropdown field or False" type="string|false">
1739
  <type by_reference="false">string</type>
1740
  <type by_reference="false">false</type>
1741
  </tag>
1742
  </docblock>
1743
+ <argument line="1007">
1744
  <name>$author</name>
1745
  <default><![CDATA[0]]></default>
1746
  <type/>
1747
  </argument>
1748
+ <argument line="1007">
1749
  <name>$name</name>
1750
  <default><![CDATA['post_author']]></default>
1751
  <type/>
1752
  </argument>
1753
+ <argument line="1007">
1754
  <name>$class</name>
1755
  <default><![CDATA['authors']]></default>
1756
  <type/>
1757
  </argument>
1758
  </method>
1759
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1039" package="Media Library Assistant">
1760
  <name>_current_bulk_action</name>
1761
  <full_name>_current_bulk_action</full_name>
1762
+ <docblock line="1032">
1763
  <description><![CDATA[Get the current action selected from the bulk actions dropdown]]></description>
1764
  <long-description><![CDATA[]]></long-description>
1765
+ <tag line="1032" name="since" description="0.1"/>
1766
+ <tag line="1032" name="return" description="The action name or False if no action was selected" type="string|false">
1767
  <type by_reference="false">string</type>
1768
  <type by_reference="false">false</type>
1769
  </tag>
1770
  </docblock>
1771
  </method>
1772
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1069" package="Media Library Assistant">
1773
  <name>_delete_single_item</name>
1774
  <full_name>_delete_single_item</full_name>
1775
+ <docblock line="1060">
1776
  <description><![CDATA[Delete a single item permanently]]></description>
1777
  <long-description><![CDATA[]]></long-description>
1778
+ <tag line="1060" name="since" description="0.1"/>
1779
+ <tag line="1060" name="param" description="The form POST data" type="array" variable="$post_id">
1780
  <type by_reference="false">array</type>
1781
  </tag>
1782
+ <tag line="1060" name="return" description="success/failure message and NULL content" type="array">
1783
  <type by_reference="false">array</type>
1784
  </tag>
1785
  </docblock>
1786
+ <argument line="1069">
1787
  <name>$post_id</name>
1788
  <default><![CDATA[]]></default>
1789
  <type/>
1790
  </argument>
1791
  </method>
1792
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1098" package="Media Library Assistant">
1793
  <name>_display_single_item</name>
1794
  <full_name>_display_single_item</full_name>
1795
+ <docblock line="1088">
1796
  <description><![CDATA[Display a single item sub page; prepare the form to
1797
  change the meta data for a single attachment.]]></description>
1798
  <long-description><![CDATA[]]></long-description>
1799
+ <tag line="1088" name="since" description="0.1"/>
1800
+ <tag line="1088" name="param" description="The WordPress Post ID of the attachment item" type="int" variable="$post_id">
1801
  <type by_reference="false">int</type>
1802
  </tag>
1803
+ <tag line="1088" name="return" description="message and/or HTML content" type="array">
1804
  <type by_reference="false">array</type>
1805
  </tag>
1806
  </docblock>
1807
+ <argument line="1098">
1808
  <name>$post_id</name>
1809
  <default><![CDATA[]]></default>
1810
  <type/>
1811
  </argument>
1812
  </method>
1813
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1313" package="Media Library Assistant">
1814
  <name>_update_single_item</name>
1815
  <full_name>_update_single_item</full_name>
1816
+ <docblock line="1300">
1817
  <description><![CDATA[Update a single item; change the meta data
1818
  for a single attachment.]]></description>
1819
  <long-description><![CDATA[]]></long-description>
1820
+ <tag line="1300" name="since" description="0.1"/>
1821
+ <tag line="1300" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
1822
  <type by_reference="false">int</type>
1823
  </tag>
1824
+ <tag line="1300" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_data">
1825
  <type by_reference="false">array</type>
1826
  </tag>
1827
+ <tag line="1300" name="param" description="Taxonomy term values" type="array" variable="$tax_input">
1828
  <type by_reference="false">array</type>
1829
  </tag>
1830
+ <tag line="1300" name="param" description="Taxonomy actions (add, remove, replace)" type="array" variable="$tax_actions">
1831
  <type by_reference="false">array</type>
1832
  </tag>
1833
+ <tag line="1300" name="return" description="success/failure message and NULL content" type="array">
1834
  <type by_reference="false">array</type>
1835
  </tag>
1836
  </docblock>
1837
+ <argument line="1313">
1838
  <name>$post_id</name>
1839
  <default><![CDATA[]]></default>
1840
  <type/>
1841
  </argument>
1842
+ <argument line="1313">
1843
  <name>$new_data</name>
1844
  <default><![CDATA[]]></default>
1845
  <type/>
1846
  </argument>
1847
+ <argument line="1313">
1848
  <name>$tax_input</name>
1849
  <default><![CDATA[NULL]]></default>
1850
  <type/>
1851
  </argument>
1852
+ <argument line="1313">
1853
  <name>$tax_actions</name>
1854
  <default><![CDATA[NULL]]></default>
1855
  <type/>
1856
  </argument>
1857
  </method>
1858
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1505" package="Media Library Assistant">
1859
  <name>_remove_tags</name>
1860
  <full_name>_remove_tags</full_name>
1861
+ <docblock line="1494">
1862
  <description><![CDATA[Remove tags from a term ids list]]></description>
1863
  <long-description><![CDATA[]]></long-description>
1864
+ <tag line="1494" name="since" description="0.40"/>
1865
+ <tag line="1494" name="param" description="The term ids currently assigned" type="array" variable="$terms_before">
1866
  <type by_reference="false">array</type>
1867
  </tag>
1868
+ <tag line="1494" name="param" description="| string The term ids (array) or names (string) to remove" type="array" variable="$tags">
1869
  <type by_reference="false">array</type>
1870
  </tag>
1871
+ <tag line="1494" name="param" description="The taxonomy object" type="object" variable="$taxonomy_obj">
1872
  <type by_reference="false">object</type>
1873
  </tag>
1874
+ <tag line="1494" name="return" description="Term ids of the surviving tags" type="array">
1875
  <type by_reference="false">array</type>
1876
  </tag>
1877
  </docblock>
1878
+ <argument line="1505">
1879
  <name>$terms_before</name>
1880
  <default><![CDATA[]]></default>
1881
  <type/>
1882
  </argument>
1883
+ <argument line="1505">
1884
  <name>$tags</name>
1885
  <default><![CDATA[]]></default>
1886
  <type/>
1887
  </argument>
1888
+ <argument line="1505">
1889
  <name>$taxonomy_obj</name>
1890
  <default><![CDATA[]]></default>
1891
  <type/>
1892
  </argument>
1893
  </method>
1894
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1547" package="Media Library Assistant">
1895
  <name>_restore_single_item</name>
1896
  <full_name>_restore_single_item</full_name>
1897
+ <docblock line="1538">
1898
  <description><![CDATA[Restore a single item from the Trash]]></description>
1899
  <long-description><![CDATA[]]></long-description>
1900
+ <tag line="1538" name="since" description="0.1"/>
1901
+ <tag line="1538" name="param" description="The form POST data" type="array" variable="$post_id">
1902
  <type by_reference="false">array</type>
1903
  </tag>
1904
+ <tag line="1538" name="return" description="success/failure message and NULL content" type="array">
1905
  <type by_reference="false">array</type>
1906
  </tag>
1907
  </docblock>
1908
+ <argument line="1547">
1909
  <name>$post_id</name>
1910
  <default><![CDATA[]]></default>
1911
  <type/>
1912
  </argument>
1913
  </method>
1914
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1583" package="Media Library Assistant">
1915
  <name>_trash_single_item</name>
1916
  <full_name>_trash_single_item</full_name>
1917
+ <docblock line="1574">
1918
  <description><![CDATA[Move a single item to Trash]]></description>
1919
  <long-description><![CDATA[]]></long-description>
1920
+ <tag line="1574" name="since" description="0.1"/>
1921
+ <tag line="1574" name="param" description="The form POST data" type="array" variable="$post_id">
1922
  <type by_reference="false">array</type>
1923
  </tag>
1924
+ <tag line="1574" name="return" description="success/failure message and NULL content" type="array">
1925
  <type by_reference="false">array</type>
1926
  </tag>
1927
  </docblock>
1928
+ <argument line="1583">
1929
  <name>$post_id</name>
1930
  <default><![CDATA[]]></default>
1931
  <type/>
1933
  </method>
1934
  </class>
1935
  </file>
1936
+ <file path="includes\class-mla-objects.php" hash="e829b63334fcd4617993caf68d75e16a" package="Media Library Assistant">
1937
  <docblock line="2">
1938
  <description><![CDATA[Media Library Assistant Custom Taxonomy and Post Type objects]]></description>
1939
  <long-description><![CDATA[]]></long-description>
1962
  </tag>
1963
  </docblock>
1964
  </method>
1965
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="41" package="Media Library Assistant">
1966
  <name>_build_taxonomies</name>
1967
  <full_name>_build_taxonomies</full_name>
1968
+ <docblock line="34">
1969
  <description><![CDATA[Registers Attachment Categories and Attachment Tags custom taxonomies, adds taxonomy-related filters]]></description>
1970
  <long-description><![CDATA[]]></long-description>
1971
+ <tag line="34" name="since" description="0.1"/>
1972
+ <tag line="34" name="return" description="" type="void">
1973
  <type by_reference="false">void</type>
1974
  </tag>
1975
  </docblock>
1976
  </method>
1977
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="121" package="Media Library Assistant">
1978
  <name>mla_taxonomy_get_columns_filter</name>
1979
  <full_name>mla_taxonomy_get_columns_filter</full_name>
1980
+ <docblock line="111">
1981
  <description><![CDATA[WordPress Filter for edit taxonomy "Attachments" column,
1982
  which replaces the "Posts" column with an equivalent "Attachments" column.]]></description>
1983
  <long-description><![CDATA[]]></long-description>
1984
+ <tag line="111" name="since" description="0.30"/>
1985
+ <tag line="111" name="param" description="column definitions for the edit taxonomy list table" type="array" variable="$columns">
1986
  <type by_reference="false">array</type>
1987
  </tag>
1988
+ <tag line="111" name="return" description="updated column definitions for the edit taxonomy list table" type="array">
1989
  <type by_reference="false">array</type>
1990
  </tag>
1991
  </docblock>
1992
+ <argument line="121">
1993
  <name>$columns</name>
1994
  <default><![CDATA[]]></default>
1995
  <type/>
1996
  </argument>
1997
  </method>
1998
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="147" package="Media Library Assistant">
1999
  <name>mla_taxonomy_column_filter</name>
2000
  <full_name>mla_taxonomy_column_filter</full_name>
2001
+ <docblock line="134">
2002
  <description><![CDATA[WordPress Filter for edit taxonomy "Attachments" column,
2003
  which returns a count of the attachments assigned a given term]]></description>
2004
  <long-description><![CDATA[]]></long-description>
2005
+ <tag line="134" name="since" description="0.30"/>
2006
+ <tag line="134" name="param" description="current column value; always ''" type="string" variable="$place_holder">
2007
  <type by_reference="false">string</type>
2008
  </tag>
2009
+ <tag line="134" name="param" description="name of the column" type="array" variable="$column_name">
2010
  <type by_reference="false">array</type>
2011
  </tag>
2012
+ <tag line="134" name="param" description="ID of the term for which the count is desired" type="array" variable="$term_id">
2013
  <type by_reference="false">array</type>
2014
  </tag>
2015
+ <tag line="134" name="return" description="HTML markup for the column content; number of attachments in the category and alink to retrieve a list of them" type="array">
2016
  <type by_reference="false">array</type>
2017
  </tag>
2018
  </docblock>
2019
+ <argument line="147">
2020
  <name>$place_holder</name>
2021
  <default><![CDATA[]]></default>
2022
  <type/>
2023
  </argument>
2024
+ <argument line="147">
2025
  <name>$column_name</name>
2026
  <default><![CDATA[]]></default>
2027
  <type/>
2028
  </argument>
2029
+ <argument line="147">
2030
  <name>$term_id</name>
2031
  <default><![CDATA[]]></default>
2032
  <type/>
2034
  </method>
2035
  </class>
2036
  </file>
2037
+ <file path="includes\class-mla-settings.php" hash="1680e112c3fa28e997da057f3a7d3951" package="Media Library Assistant">
2038
  <docblock line="2">
2039
  <description><![CDATA[Manages the plugin option settings and provides the settings page to edit them]]></description>
2040
  <long-description><![CDATA[]]></long-description>
2417
  </method>
2418
  </class>
2419
  </file>
2420
+ <file path="includes\class-mla-shortcodes.php" hash="73b30e9db1a74d33ab0cf000e80f93c3" package="Media Library Assistant">
2421
  <docblock line="2">
2422
  <description><![CDATA[Media Library Assistant Shortcode handler(s)]]></description>
2423
  <long-description><![CDATA[]]></long-description>
2434
  <tag line="9" name="package" description="Media Library Assistant"/>
2435
  <tag line="9" name="since" description="0.20"/>
2436
  </docblock>
2437
+ <property final="false" static="true" visibility="private" line="132" namespace="global" package="Media Library Assistant">
2438
+ <name>$mla_debug_messages</name>
2439
+ <default><![CDATA['']]></default>
2440
+ <docblock line="125">
2441
+ <description><![CDATA[Accumulates debug messages]]></description>
2442
+ <long-description><![CDATA[]]></long-description>
2443
+ <tag line="125" name="since" description="0.60"/>
2444
+ <tag line="125" name="var" description="" type="string">
2445
+ <type by_reference="false">string</type>
2446
+ </tag>
2447
+ </docblock>
2448
+ </property>
2449
  <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="23" package="Media Library Assistant">
2450
  <name>initialize</name>
2451
  <full_name>initialize</full_name>
2470
  </tag>
2471
  </docblock>
2472
  </method>
2473
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="147" package="Media Library Assistant">
2474
  <name>mla_gallery_shortcode</name>
2475
  <full_name>mla_gallery_shortcode</full_name>
2476
+ <docblock line="134">
2477
  <description><![CDATA[The MLA Gallery shortcode.]]></description>
2478
  <long-description><![CDATA[<p>This is a superset of the WordPress Gallery shortcode for displaying images on a post,
2479
  page or custom post type. It is adapted from /wp-includes/media.php gallery_shortcode.
2480
  Enhancements include many additional selection parameters and full taxonomy support.</p>]]></long-description>
2481
+ <tag line="134" name="since" description=".50"/>
2482
+ <tag line="134" name="param" description="Attributes of the shortcode." type="array" variable="$attr">
2483
  <type by_reference="false">array</type>
2484
  </tag>
2485
+ <tag line="134" name="return" description="HTML content to display gallery." type="string">
2486
  <type by_reference="false">string</type>
2487
  </tag>
2488
  </docblock>
2489
+ <argument line="147">
2490
  <name>$attr</name>
2491
  <default><![CDATA[]]></default>
2492
  <type/>
2493
  </argument>
2494
  </method>
2495
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="545" package="Media Library Assistant">
2496
  <name>_get_attachments</name>
2497
  <full_name>_get_attachments</full_name>
2498
+ <docblock line="535">
2499
  <description><![CDATA[Replaces /wp-includes/post.php function get_posts()]]></description>
2500
  <long-description><![CDATA[]]></long-description>
2501
+ <tag line="535" name="since" description=".50"/>
2502
+ <tag line="535" name="param" description="Attributes of the shortcode" type="array" variable="$args">
2503
  <type by_reference="false">array</type>
2504
  </tag>
2505
+ <tag line="535" name="param" description="True to add debug information to self::$mla_debug_messages" type="boolean" variable="$mla_debug">
2506
+ <type by_reference="false">boolean</type>
2507
+ </tag>
2508
+ <tag line="535" name="return" description="List of attachments returned from WP_Query" type="array">
2509
  <type by_reference="false">array</type>
2510
  </tag>
2511
  </docblock>
2512
+ <argument line="545">
2513
  <name>$args</name>
2514
  <default><![CDATA[]]></default>
2515
  <type/>
2516
  </argument>
2517
+ <argument line="545">
2518
+ <name>$mla_debug</name>
2519
+ <default><![CDATA[false]]></default>
2520
+ <type/>
2521
+ </argument>
2522
  </method>
2523
  </class>
2524
  </file>
2525
+ <file path="includes\mla-plugin-loader.php" hash="a9524964c779b4fd40d40dad431cf4d1" package="Media Library Assistant">
2526
  <docblock line="2">
2527
  <description><![CDATA[Media Library Assistant Plugin Loader]]></description>
2528
  <long-description><![CDATA[<p>Defines constants and loads all of the classes and functions required to run the plugin.
2542
  <include line="42" type="Require Once" package="Media Library Assistant">
2543
  <name/>
2544
  </include>
2545
+ <include line="49" type="Require Once" package="Media Library Assistant">
2546
  <name/>
2547
  </include>
2548
+ <include line="56" type="Require Once" package="Media Library Assistant">
2549
  <name/>
2550
  </include>
2551
+ <include line="61" type="Require Once" package="Media Library Assistant">
2552
  <name/>
2553
  </include>
2554
  <constant namespace="global" line="16" package="Media Library Assistant">
2561
  </docblock>
2562
  </constant>
2563
  </file>
2564
+ <file path="index.php" hash="a1ac5c0f88e56c887fbbb0bf66bff8c6" package="Media Library Assistant">
2565
  <docblock line="2">
2566
  <description><![CDATA[Provides several enhancements to the handling of images and files held in the WordPress Media Library]]></description>
2567
  <long-description><![CDATA[<p>This file contains several tests for name conflicts with other plugins. Only if the tests are passed
2568
  will the rest of the plugin be loaded and run.</p>]]></long-description>
2569
  <tag line="2" name="package" description="Media Library Assistant"/>
2570
+ <tag line="2" name="version" description="0.60"/>
2571
  </docblock>
2572
  <include line="103" type="Require Once" package="Media Library Assistant">
2573
  <name>includes/mla-plugin-loader.php</name>
2600
  </docblock>
2601
  </function>
2602
  </file>
2603
+ <file path="tests\class-mla-tests.php" hash="86b5bb13f31a596214ee5a938e686e0a" package="Media Library Assistant">
2604
  <docblock line="2">
2605
  <description><![CDATA[Provides basic run-time tests to ensure the plugin can run in the current WordPress envrionment]]></description>
2606
  <long-description><![CDATA[]]></long-description>
2618
  <tag line="9" name="package" description="Media Library Assistant"/>
2619
  <tag line="9" name="since" description="0.1"/>
2620
  </docblock>
2621
+ <property final="false" static="true" visibility="public" line="24" namespace="global" package="Media Library Assistant">
2622
+ <name>$wordpress_3point5_plus</name>
2623
+ <default><![CDATA[null]]></default>
2624
+ <docblock line="17">
2625
+ <description><![CDATA[True if WordPress version is 3.5 or newer]]></description>
2626
+ <long-description><![CDATA[]]></long-description>
2627
+ <tag line="17" name="since" description="0.60"/>
2628
+ <tag line="17" name="var" description="" type="boolean">
2629
+ <type by_reference="false">boolean</type>
2630
+ </tag>
2631
+ </docblock>
2632
+ </property>
2633
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="33" package="Media Library Assistant">
2634
+ <name>initialize</name>
2635
+ <full_name>initialize</full_name>
2636
+ <docblock line="26">
2637
+ <description><![CDATA[Initialization function, similar to __construct()]]></description>
2638
+ <long-description><![CDATA[]]></long-description>
2639
+ <tag line="26" name="since" description="0.60"/>
2640
+ <tag line="26" name="return" description="" type="void">
2641
+ <type by_reference="false">void</type>
2642
+ </tag>
2643
+ </docblock>
2644
+ </method>
2645
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="47" package="Media Library Assistant">
2646
  <name>min_php_version</name>
2647
  <full_name>min_php_version</full_name>
2648
+ <docblock line="37">
2649
  <description><![CDATA[Test that your PHP version is at least that of the $min_php_version]]></description>
2650
  <long-description><![CDATA[]]></long-description>
2651
+ <tag line="37" name="since" description="0.1"/>
2652
+ <tag line="37" name="param" description="representing the minimum required version of PHP, e.g. '5.3.2'" type="string" variable="$min_version">
2653
  <type by_reference="false">string</type>
2654
  </tag>
2655
+ <tag line="37" name="param" description="Name of the plugin for messaging purposes" type="string" variable="$plugin_name">
2656
  <type by_reference="false">string</type>
2657
  </tag>
2658
+ <tag line="37" name="return" description="Exit with messaging if PHP version is too old" type="void">
2659
  <type by_reference="false">void</type>
2660
  </tag>
2661
  </docblock>
2662
+ <argument line="47">
2663
  <name>$min_version</name>
2664
  <default><![CDATA[]]></default>
2665
  <type/>
2666
  </argument>
2667
+ <argument line="47">
2668
  <name>$plugin_name</name>
2669
  <default><![CDATA[]]></default>
2670
  <type/>
2671
  </argument>
2672
  </method>
2673
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="67" package="Media Library Assistant">
2674
  <name>min_WordPress_version</name>
2675
  <full_name>min_WordPress_version</full_name>
2676
+ <docblock line="57">
2677
  <description><![CDATA[Test that your WordPress version is at least that of the $min_version]]></description>
2678
  <long-description><![CDATA[]]></long-description>
2679
+ <tag line="57" name="since" description="0.1"/>
2680
+ <tag line="57" name="param" description="representing the minimum required version of WordPress, e.g. '3.3.0'" type="string" variable="$min_version">
2681
  <type by_reference="false">string</type>
2682
  </tag>
2683
+ <tag line="57" name="param" description="Name of the plugin for messaging purposes" type="string" variable="$plugin_name">
2684
  <type by_reference="false">string</type>
2685
  </tag>
2686
+ <tag line="57" name="return" description="Exit with messaging if version is too old" type="void">
2687
  <type by_reference="false">void</type>
2688
  </tag>
2689
  </docblock>
2690
+ <argument line="67">
2691
  <name>$min_version</name>
2692
  <default><![CDATA[]]></default>
2693
  <type/>
2694
  </argument>
2695
+ <argument line="67">
2696
  <name>$plugin_name</name>
2697
  <default><![CDATA[]]></default>
2698
  <type/>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://fairtradejudaica.org/make-a-difference/donate/
4
  Tags: attachments, documents, gallery, image, images, media, library, media library, media-tags, media tags, tags, media categories, categories
5
  Requires at least: 3.3
6
  Tested up to: 3.4.2
7
- Stable tag: 0.50
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -16,6 +16,7 @@ The Media Library Assistant provides several enhancements for managing the Media
16
 
17
  * The **[mla_gallery] shortcode**, used in a post, page or custom post type to add a gallery of images and/or other Media Library items (such as PDF documents). [MLA Gallery](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Complete Documentation") is a superset of the [gallery] shortcode in the WordPress core; it is compatible with [gallery] and provides many enhancements. These include: 1) full support for WordPress categories, tags and custom taxonomies, 2) support for all post_mime_type values, not just images 3) media Library items need not be "attached" to the post.
18
 
 
19
  * An inline "Bulk Edit" area; update author or parent, add, remove or replace taxonomy terms for several attachments at once.
20
  * An inline "Quick Edit" action for many common fields.
21
  * Complete support for ALL taxonomies, including the standard Categories and Tags, your custom taxonomies and the Assistant's pre-defined Att. Categories and Att. Tags. You can add taxonomy columns to the Assistant listing, filter on any taxonomy, assign terms and list the attachments for a term.
@@ -48,7 +49,7 @@ The powerful [mla_gallery] shortcode supports almost all of the query flexibilit
48
 
49
  = Can I use [mla_gallery] for attachments other than images? =
50
 
51
- Yes! The [mla_gallery] shortcode supports all MIME types. You can build a gallery of your PDF documents, plain text files and other attachments. You can mix images and other MIME types in the same gallery, too; check out [the documentation](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Complete Documentation").
52
 
53
  = Can I attach an image to more than one post or page? =
54
 
@@ -97,6 +98,16 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
97
 
98
  == Changelog ==
99
 
 
 
 
 
 
 
 
 
 
 
100
  = 0.50 =
101
  * New: [mla_gallery] shortcode, a superset of the [gallery] shortcode that provides many enhancements. These include taxonomy support and all post_mime_type values (not just images). Media Library items need not be "attached" to the post.
102
  * New: [mla_gallery] shortcode documentation added to Settings page
@@ -146,6 +157,9 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
146
 
147
  == Upgrade Notice ==
148
 
 
 
 
149
  = 0.50 =
150
  Upgrade for the new [mla_gallery] shortcode, a superset of the [gallery] shortcode that provides many enhancements. These include taxonomy support and all post_mime_type values (not just images).
151
 
@@ -167,6 +181,16 @@ You should upgrade to this version if you are getting "404 Not Found" errors whe
167
  = 0.1 =
168
  Initial release.
169
 
 
 
 
 
 
 
 
 
 
 
170
  ==MLA Gallery Shortcode==
171
 
172
  The [mla_gallery] shortcode is used in a post, page or custom post type to add a gallery of images and/or other Media Library items (such as PDF documents). MLA Gallery is a superset of the [gallery] shortcode in the WordPress core; it is compatible with [gallery] and provides many enhancements. These include:
@@ -261,6 +285,7 @@ Remember to use "post_parent=current" if you want to restrict your query to item
261
  The search parameter ("s=keyword") will perform a keyword search. A cursory inspection of the code in /wp-includes/query.php reveals that the search includes the "post_title" and "post_content" (Description) fields but not the "post_excerpt" (Caption) field. An SQL "LIKE" clause is composed and added to the search criteria. I haven't done much testing of this parameter.
262
 
263
  == Help Summary ==
 
264
  <p><strong><em>Assistant Submenu - Attachment List Table</em></strong></p>
265
  <p><strong>Overview</strong></p>
266
  <p>All the files you&#8217;ve uploaded are listed in the Media Library Assistant table, ordered by the Title field. You can change the sort order by clicking on one of the blue column names. You can change the default sort order on the Settings screen.</p>
@@ -276,6 +301,9 @@ The search parameter ("s=keyword") will perform a keyword search. A cursory insp
276
  <p>The Media Library Assistant provides two pre-defined taxonomies, &#8220;Att. Categories&#8221; and &#8220;Att. Tags&#8221; which are enabled by default. You can add or remove support for any registered taxonomy on the Settings screen. The standard WordPress Categories and Tags as well as any custom taxonomies can be supported.</p>
277
  <p>When you add support for a taxonomy it is visible on the main screen. If you want to hide the column simply use the Screen Options to uncheck the Show on screen box.</p>
278
  <p>Supported taxonomies also appear as submenus below the Media menu at the left of the screen. You can edit the taxonomy terms by clicking these submenus. The taxonomy edit screens include an &#8220;Attachments&#8221; column which displays the number of attachment objects for each term. You can display a filtered list of the attachments by clicking on the number in this column.</p>
 
 
 
279
  <p><strong>Bulk Actions</strong></p>
280
  <p>The &#8220;Bulk Actions&#8221; dropdown list works with the check box column to let you make changes to many items at once. Click the check box in the column title row to select all items on the page, or click the check box in a row to select items individually.</p>
281
  <p>Once you&#8217;ve selected the items you want, pick an action from the dropdown list and click Apply to perform the action on the selected items. The available actions will vary depending on the file type/status view you have picked.</p>
@@ -325,13 +353,4 @@ The search parameter ("s=keyword") will perform a keyword search. A cursory insp
325
  <li><strong>Description</strong> - The description is not prominent by default; however, some themes may display it.</li>
326
  </ul>
327
  <p><strong>Attachments Column</strong></p>
328
- <p>The &#8220;Attachments&#8221; colunm at the right of the table gives you the number of attachments associated with each tag. You can click on the number to get a list of all the attachments with that tag. The heading on the list page(s) will display the tag value you&#8217;ve selected.</p>
329
-
330
- == Acknowledgements ==
331
-
332
- I have used and learned much from the following books (among many):
333
-
334
- * Professional WordPress; Design and Development, by Hal Stern, David Damstra and Brad Williams (Apr 5, 2010) ISBN-13: 978-0470560549
335
- * Professional WordPress Plugin Development, by Brad Williams, Ozh Richard and Justin Tadlock (Mar 15, 2011) ISBN-13: 978-0470916223
336
- * WordPress 3 Plugin Development Essentials, by Brian Bondari and Everett Griffiths (Mar 24, 2011) ISBN-13: 978-1849513524
337
- * WordPress and Ajax, by Ronald Huereca (Jan 13, 2011) ISBN-13: 978-1451598650
4
  Tags: attachments, documents, gallery, image, images, media, library, media library, media-tags, media tags, tags, media categories, categories
5
  Requires at least: 3.3
6
  Tested up to: 3.4.2
7
+ Stable tag: 0.60
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
16
 
17
  * The **[mla_gallery] shortcode**, used in a post, page or custom post type to add a gallery of images and/or other Media Library items (such as PDF documents). [MLA Gallery](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Complete Documentation") is a superset of the [gallery] shortcode in the WordPress core; it is compatible with [gallery] and provides many enhancements. These include: 1) full support for WordPress categories, tags and custom taxonomies, 2) support for all post_mime_type values, not just images 3) media Library items need not be "attached" to the post.
18
 
19
+ * **Enhanced Search Media box**. Search can be extended to the name/slug, ALT text and caption fields. The connector between search terms can be "and" or "or".
20
  * An inline "Bulk Edit" area; update author or parent, add, remove or replace taxonomy terms for several attachments at once.
21
  * An inline "Quick Edit" action for many common fields.
22
  * Complete support for ALL taxonomies, including the standard Categories and Tags, your custom taxonomies and the Assistant's pre-defined Att. Categories and Att. Tags. You can add taxonomy columns to the Assistant listing, filter on any taxonomy, assign terms and list the attachments for a term.
49
 
50
  = Can I use [mla_gallery] for attachments other than images? =
51
 
52
+ Yes! The [mla_gallery] shortcode supports all MIME types when you add the post_mime_type parameter to your query. You can build a gallery of your PDF documents, plain text files and other attachments. You can mix images and other MIME types in the same gallery, too; check out [the documentation](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Complete Documentation").
53
 
54
  = Can I attach an image to more than one post or page? =
55
 
98
 
99
  == Changelog ==
100
 
101
+ = 0.60 =
102
+ * New: Enhanced Search Media box. Search can be extended to the name/slug, ALT text and caption fields. The connector between search terms can be "and" or "or".
103
+ * New: The ID/Parent and Parent ID columns now contain a link to a parent-specific search of the Media Library.
104
+ * New: Menu Order added as sortable column, to Edit Single Item and to Quick Edit area.
105
+ * New: The Author column now contains a link to an author-specific search of the Media Library.
106
+ * New: The Attached to column now contains a link to the Edit Post/Page screen for the parent.
107
+ * New: For WordPress version 3.5, the WordPress standard Edit Media screen replaces the MLA Edit Single Item screen.
108
+ * Fix: HTML markup is no longer escaped in [mla_gallery] captions; caption processing now matches the WordPress [gallery] shortcode.
109
+ * Fix: For WordPress version 3.5, duplicate "edit taxonomy" submenu entries will not appear.
110
+
111
  = 0.50 =
112
  * New: [mla_gallery] shortcode, a superset of the [gallery] shortcode that provides many enhancements. These include taxonomy support and all post_mime_type values (not just images). Media Library items need not be "attached" to the post.
113
  * New: [mla_gallery] shortcode documentation added to Settings page
157
 
158
  == Upgrade Notice ==
159
 
160
+ = 0.60 =
161
+ Get the enhanced Search Media box. Extend search to the name/slug, ALT text and caption fields. Connect search terms with "and" or "or". Five other enhancements and two fixes.
162
+
163
  = 0.50 =
164
  Upgrade for the new [mla_gallery] shortcode, a superset of the [gallery] shortcode that provides many enhancements. These include taxonomy support and all post_mime_type values (not just images).
165
 
181
  = 0.1 =
182
  Initial release.
183
 
184
+
185
+ == Acknowledgements ==
186
+
187
+ I have used and learned much from the following books (among many):
188
+
189
+ * Professional WordPress; Design and Development, by Hal Stern, David Damstra and Brad Williams (Apr 5, 2010) ISBN-13: 978-0470560549
190
+ * Professional WordPress Plugin Development, by Brad Williams, Ozh Richard and Justin Tadlock (Mar 15, 2011) ISBN-13: 978-0470916223
191
+ * WordPress 3 Plugin Development Essentials, by Brian Bondari and Everett Griffiths (Mar 24, 2011) ISBN-13: 978-1849513524
192
+ * WordPress and Ajax, by Ronald Huereca (Jan 13, 2011) ISBN-13: 978-1451598650
193
+
194
  ==MLA Gallery Shortcode==
195
 
196
  The [mla_gallery] shortcode is used in a post, page or custom post type to add a gallery of images and/or other Media Library items (such as PDF documents). MLA Gallery is a superset of the [gallery] shortcode in the WordPress core; it is compatible with [gallery] and provides many enhancements. These include:
285
  The search parameter ("s=keyword") will perform a keyword search. A cursory inspection of the code in /wp-includes/query.php reveals that the search includes the "post_title" and "post_content" (Description) fields but not the "post_excerpt" (Caption) field. An SQL "LIKE" clause is composed and added to the search criteria. I haven't done much testing of this parameter.
286
 
287
  == Help Summary ==
288
+
289
  <p><strong><em>Assistant Submenu - Attachment List Table</em></strong></p>
290
  <p><strong>Overview</strong></p>
291
  <p>All the files you&#8217;ve uploaded are listed in the Media Library Assistant table, ordered by the Title field. You can change the sort order by clicking on one of the blue column names. You can change the default sort order on the Settings screen.</p>
301
  <p>The Media Library Assistant provides two pre-defined taxonomies, &#8220;Att. Categories&#8221; and &#8220;Att. Tags&#8221; which are enabled by default. You can add or remove support for any registered taxonomy on the Settings screen. The standard WordPress Categories and Tags as well as any custom taxonomies can be supported.</p>
302
  <p>When you add support for a taxonomy it is visible on the main screen. If you want to hide the column simply use the Screen Options to uncheck the Show on screen box.</p>
303
  <p>Supported taxonomies also appear as submenus below the Media menu at the left of the screen. You can edit the taxonomy terms by clicking these submenus. The taxonomy edit screens include an &#8220;Attachments&#8221; column which displays the number of attachment objects for each term. You can display a filtered list of the attachments by clicking on the number in this column.</p>
304
+ <p><strong>Search Media</strong></p>
305
+ <p>The &#8220;Search Media&#8221; box supports a keyword search of several attachment fields; enter words and/or phrases in the box, separated by spaces. Click the Search Media button for a case-insensitive "SQL LIKE" search. Each keyword in the search phrase is matched independently, so the order of search words does not have to match the order in the text. For example, searching on "friend" and "best" will match "Best Friend". If you put quotes around a search phrase then word order is required for a match (and spaces between words must match as well). You can also match on partial words, e.g., "rien" will match "friend".
306
+ <p>Once you&#8217;ve entered the terms you want, use the options below the box to tailor your search. You can pick the connector used between search terms; "or" means any of the terms will match, "and" means all of the terms must match. Use the checkboxes to extend your search to more fields in the database.</p>
307
  <p><strong>Bulk Actions</strong></p>
308
  <p>The &#8220;Bulk Actions&#8221; dropdown list works with the check box column to let you make changes to many items at once. Click the check box in the column title row to select all items on the page, or click the check box in a row to select items individually.</p>
309
  <p>Once you&#8217;ve selected the items you want, pick an action from the dropdown list and click Apply to perform the action on the selected items. The available actions will vary depending on the file type/status view you have picked.</p>
353
  <li><strong>Description</strong> - The description is not prominent by default; however, some themes may display it.</li>
354
  </ul>
355
  <p><strong>Attachments Column</strong></p>
356
+ <p>The &#8220;Attachments&#8221; colunm at the right of the table gives you the number of attachments associated with each tag. You can click on the number to get a list of all the attachments with that tag. The heading on the list page(s) will display the tag value you&#8217;ve selected.</p>
 
 
 
 
 
 
 
 
 
tests/class-mla-tests.php CHANGED
@@ -14,6 +14,26 @@
14
  * @since 0.1
15
  */
16
  class MLATest {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  /**
18
  * Test that your PHP version is at least that of the $min_php_version
19
  *
14
  * @since 0.1
15
  */
16
  class MLATest {
17
+ /**
18
+ * True if WordPress version is 3.5 or newer
19
+ *
20
+ * @since 0.60
21
+ *
22
+ * @var boolean
23
+ */
24
+ public static $wordpress_3point5_plus = null;
25
+
26
+ /**
27
+ * Initialization function, similar to __construct()
28
+ *
29
+ * @since 0.60
30
+ *
31
+ * @return void
32
+ */
33
+ public static function initialize() {
34
+ MLATest::$wordpress_3point5_plus = version_compare( get_bloginfo( 'version' ), '3.5', '>=' );
35
+ }
36
+
37
  /**
38
  * Test that your PHP version is at least that of the $min_php_version
39
  *
tpls/admin-display-single-document.tpl CHANGED
@@ -60,6 +60,10 @@
60
  <th valign='top' scope='row' class='label'><label for='attachments[[+ID+]][parent_info]'><span class='alignleft'>Parent Info</span><br class='clear' /></label></th>
61
  <td class='field'><table><tr><td style="width: 50px; vertical-align:top" ><input type='text' class='text' name='attachments[[+ID+]][post_parent]' value='[+post_parent+]' /></td><td><input type='text' class='text' readonly='readonly' name='attachments[[+ID+]][parent_info]' value='[+parent_info+]' /></td></tr><tr><td colspan="2"><p class='help'>ID, type and title of parent, if any.</p></td></tr></table></td>
62
  </tr>
 
 
 
 
63
  [+authors+]
64
  <tr class='image_url'>
65
  <th valign='top' scope='row' class='label'><label for='attachments[[+ID+]][image_url]'><span class='alignleft'>File URL</span><br class='clear' /></label></th>
60
  <th valign='top' scope='row' class='label'><label for='attachments[[+ID+]][parent_info]'><span class='alignleft'>Parent Info</span><br class='clear' /></label></th>
61
  <td class='field'><table><tr><td style="width: 50px; vertical-align:top" ><input type='text' class='text' name='attachments[[+ID+]][post_parent]' value='[+post_parent+]' /></td><td><input type='text' class='text' readonly='readonly' name='attachments[[+ID+]][parent_info]' value='[+parent_info+]' /></td></tr><tr><td colspan="2"><p class='help'>ID, type and title of parent, if any.</p></td></tr></table></td>
62
  </tr>
63
+ <tr class='menu_order'>
64
+ <th valign='top' scope='row' class='label'><label for='attachments[[+ID+]][menu_order]'><span class='alignleft'>Menu Order</span><br class='clear' /></label></th>
65
+ <td class='field'><table style="width: 50px; vertical-align:top"><tr><td><input type='text' class='text' id='attachments[[+ID+]][menu_order]' name='attachments[[+ID+]][menu_order]' value='[+menu_order+]' /></td></tr></table></td>
66
+ </tr>
67
  [+authors+]
68
  <tr class='image_url'>
69
  <th valign='top' scope='row' class='label'><label for='attachments[[+ID+]][image_url]'><span class='alignleft'>File URL</span><br class='clear' /></label></th>
tpls/admin-display-single-image.tpl CHANGED
@@ -65,6 +65,10 @@
65
  <th valign='top' scope='row' class='label'><label for='attachments[[+ID+]][parent_info]'><span class='alignleft'>Parent Info</span><br class='clear' /></label></th>
66
  <td class='field'><table><tr><td style="width: 50px; vertical-align:top" ><input type='text' class='text' name='attachments[[+ID+]][post_parent]' value='[+post_parent+]' /></td><td><input type='text' class='text' readonly='readonly' name='attachments[[+ID+]][parent_info]' value='[+parent_info+]' /></td></tr><tr><td colspan="2"><p class='help'>ID, type and title of parent, if any.</p></td></tr></table></td>
67
  </tr>
 
 
 
 
68
  [+authors+]
69
  <tr class='image_url'>
70
  <th valign='top' scope='row' class='label'><label for='attachments[[+ID+]][image_url]'><span class='alignleft'>File URL</span><br class='clear' /></label></th>
65
  <th valign='top' scope='row' class='label'><label for='attachments[[+ID+]][parent_info]'><span class='alignleft'>Parent Info</span><br class='clear' /></label></th>
66
  <td class='field'><table><tr><td style="width: 50px; vertical-align:top" ><input type='text' class='text' name='attachments[[+ID+]][post_parent]' value='[+post_parent+]' /></td><td><input type='text' class='text' readonly='readonly' name='attachments[[+ID+]][parent_info]' value='[+parent_info+]' /></td></tr><tr><td colspan="2"><p class='help'>ID, type and title of parent, if any.</p></td></tr></table></td>
67
  </tr>
68
+ <tr class='menu_order'>
69
+ <th valign='top' scope='row' class='label'><label for='attachments[[+ID+]][menu_order]'><span class='alignleft'>Menu Order</span><br class='clear' /></label></th>
70
+ <td class='field'><table style="width: 50px; vertical-align:top"><tr><td><input type='text' class='text' id='attachments[[+ID+]][menu_order]' name='attachments[[+ID+]][menu_order]' value='[+menu_order+]' /></td></tr></table></td>
71
+ </tr>
72
  [+authors+]
73
  <tr class='image_url'>
74
  <th valign='top' scope='row' class='label'><label for='attachments[[+ID+]][image_url]'><span class='alignleft'>File URL</span><br class='clear' /></label></th>
tpls/admin-inline-edit-form.tpl CHANGED
@@ -47,6 +47,9 @@
47
  <label class="inline-edit-post-parent"> <span class="title">Parent ID</span> <span class="input-text-wrap">
48
  <input type="text" name="post_parent" value="" />
49
  </span> </label>
 
 
 
50
  [+authors+]
51
  </div>
52
  </fieldset>
47
  <label class="inline-edit-post-parent"> <span class="title">Parent ID</span> <span class="input-text-wrap">
48
  <input type="text" name="post_parent" value="" />
49
  </span> </label>
50
+ <label class="inline-edit-menu-order"> <span class="title">Menu Order</span> <span class="input-text-wrap">
51
+ <input type="text" name="menu_order" value="" />
52
+ </span> </label>
53
  [+authors+]
54
  </div>
55
  </fieldset>
tpls/help-for-media_page_mla-menu.tpl CHANGED
@@ -15,8 +15,12 @@
15
  <p>The Media Library Assistant provides two pre-defined taxonomies, &#8220;Att. Categories&#8221; and &#8220;Att. Tags&#8221; which are enabled by default. You can add or remove support for any registered taxonomy on the Settings screen. The standard WordPress Categories and Tags as well as any custom taxonomies can be supported.</p>
16
  <p>When you add support for a taxonomy it is visible on the main screen. If you want to hide the column simply use the Screen Options to uncheck the Show on screen box.</p>
17
  <p>Supported taxonomies also appear as submenus below the Media menu at the left of the screen. You can edit the taxonomy terms by clicking these submenus. The taxonomy edit screens include an &#8220;Attachments&#8221; column which displays the number of attachment objects for each term. You can display a filtered list of the attachments by clicking on the number in this column.</p>
 
 
 
 
18
  <!-- template="mla-bulk-actions" -->
19
- <!-- title="Bulk Actions" order="4" -->
20
  <p>The &#8220;Bulk Actions&#8221; dropdown list works with the check box column to let you make changes to many items at once. Click the check box in the column title row to select all items on the page, or click the check box in a row to select items individually.</p>
21
  <p>Once you&#8217;ve selected the items you want, pick an action from the dropdown list and click Apply to perform the action on the selected items. The available actions will vary depending on the file type/status view you have picked.</p>
22
  <p>If you have enabled Trash support (define MEDIA_TRASH in wp-config.php) you can use bulk actions to move items to and from the Trash or delete them permamently.</p>
@@ -24,11 +28,11 @@
24
  <p>Bulk Edit support for taxonomy terms allows you to <strong>add, remove or completely replace</strong> terms for the selected attachments. Below each taxonomy edit box are three radio buttons that let you select the action you&#8217;d like to perform.</p>
25
  <p>The taxonomies that appear in the Bulk Edit area can be a subset of the taxonomies supported on the single item edit screen. You can select which taxonomies appear by entering your choice(s) on the Media Libray Assistant Settings screen.</p>
26
  <!-- template="mla-available-actions" -->
27
- <!-- title="Available Actions" order="5" -->
28
  <p>Hovering over a row reveals action links such as Edit, Quick Edit, Move to Trash and Delete Permanently. Clicking Edit displays a simple screen to edit that individual file&#8217;s metadata. Clicking Move to Trash will assign the file to the Trash pile but will not affect pages or posts to which it is attached. Clicking Delete Permanently will delete the file from the media library (as well as from any posts to which it is currently attached). Clicking Quick Edit displays an inline form to edit the file's metadata without leaving the menu screen.</p>
29
  <p>The taxonomies that appear in the Quick Edit area can be a subset of the taxonomies supported on the single item edit screen. You can select which taxonomies appear by entering your choice(s) on the Media Libray Assistant Settings screen.</p>
30
  <!-- template="mla-attaching-files" -->
31
- <!-- title="Attaching Files" order="6" -->
32
  <p>If a media file has not been attached to any post, you will see (unattached) in the Attached To column. You can click on the Edit or Quick Edit action to attach the file by assigning a value to the Parent ID field.</p>
33
  <!-- template="sidebar" -->
34
  <p><strong>For more information:</strong></p>
15
  <p>The Media Library Assistant provides two pre-defined taxonomies, &#8220;Att. Categories&#8221; and &#8220;Att. Tags&#8221; which are enabled by default. You can add or remove support for any registered taxonomy on the Settings screen. The standard WordPress Categories and Tags as well as any custom taxonomies can be supported.</p>
16
  <p>When you add support for a taxonomy it is visible on the main screen. If you want to hide the column simply use the Screen Options to uncheck the Show on screen box.</p>
17
  <p>Supported taxonomies also appear as submenus below the Media menu at the left of the screen. You can edit the taxonomy terms by clicking these submenus. The taxonomy edit screens include an &#8220;Attachments&#8221; column which displays the number of attachment objects for each term. You can display a filtered list of the attachments by clicking on the number in this column.</p>
18
+ <!-- template="mla-search-media" -->
19
+ <!-- title="Search Media" order="4" -->
20
+ <p>The &#8220;Search Media&#8221; box supports a keyword search of several attachment fields; enter words and/or phrases in the box, separated by spaces. Click the Search Media button for a case-insensitive "SQL LIKE" search. Each keyword in the search phrase is matched independently, so the order of search words does not have to match the order in the text. For example, searching on "friend" and "best" will match "Best Friend". If you put quotes around a search phrase then word order is required for a match (and spaces between words must match as well). You can also match on partial words, e.g., "rien" will match "friend".
21
+ <p>Once you&#8217;ve entered the terms you want, use the options below the box to tailor your search. You can pick the connector used between search terms; "or" means any of the terms will match, "and" means all of the terms must match. Use the checkboxes to extend your search to more fields in the database.</p>
22
  <!-- template="mla-bulk-actions" -->
23
+ <!-- title="Bulk Actions" order="5" -->
24
  <p>The &#8220;Bulk Actions&#8221; dropdown list works with the check box column to let you make changes to many items at once. Click the check box in the column title row to select all items on the page, or click the check box in a row to select items individually.</p>
25
  <p>Once you&#8217;ve selected the items you want, pick an action from the dropdown list and click Apply to perform the action on the selected items. The available actions will vary depending on the file type/status view you have picked.</p>
26
  <p>If you have enabled Trash support (define MEDIA_TRASH in wp-config.php) you can use bulk actions to move items to and from the Trash or delete them permamently.</p>
28
  <p>Bulk Edit support for taxonomy terms allows you to <strong>add, remove or completely replace</strong> terms for the selected attachments. Below each taxonomy edit box are three radio buttons that let you select the action you&#8217;d like to perform.</p>
29
  <p>The taxonomies that appear in the Bulk Edit area can be a subset of the taxonomies supported on the single item edit screen. You can select which taxonomies appear by entering your choice(s) on the Media Libray Assistant Settings screen.</p>
30
  <!-- template="mla-available-actions" -->
31
+ <!-- title="Available Actions" order="6" -->
32
  <p>Hovering over a row reveals action links such as Edit, Quick Edit, Move to Trash and Delete Permanently. Clicking Edit displays a simple screen to edit that individual file&#8217;s metadata. Clicking Move to Trash will assign the file to the Trash pile but will not affect pages or posts to which it is attached. Clicking Delete Permanently will delete the file from the media library (as well as from any posts to which it is currently attached). Clicking Quick Edit displays an inline form to edit the file's metadata without leaving the menu screen.</p>
33
  <p>The taxonomies that appear in the Quick Edit area can be a subset of the taxonomies supported on the single item edit screen. You can select which taxonomies appear by entering your choice(s) on the Media Libray Assistant Settings screen.</p>
34
  <!-- template="mla-attaching-files" -->
35
+ <!-- title="Attaching Files" order="7" -->
36
  <p>If a media file has not been attached to any post, you will see (unattached) in the Attached To column. You can click on the Edit or Quick Edit action to attach the file by assigning a value to the Parent ID field.</p>
37
  <!-- template="sidebar" -->
38
  <p><strong>For more information:</strong></p>