Media Library Assistant - Version 0.40

Version Description

  • New: Bulk Edit area; update author or parent, add, remove or replace taxonomy terms for several attachments at once
  • New: ALT Text is now a sortable column, and shows attachments with no ALT Text value
  • New: Activate and deactivate hooks added to create and drop an SQL View supporting ALT Text sorting
  • New: Revisions are excluded from the where-used columns; a settings option lets you include them if you wish
  • Fix: Better validation/sanitization of data fields on input and display
  • Fix: Database query validation/sanitization with wpdb_prepare()
  • Fix: check_admin_referer added to settings page
  • Fix: Inline CSS styles for message DIV moved to style sheet
Download this release

Release Info

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

Code changes from version 0.30 to 0.40

css/mla-style.css CHANGED
@@ -6,6 +6,19 @@
6
  * to avoid conflicts.
7
  */
8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  /*
10
  * MLA List Table ID_parent column
11
  */
@@ -65,30 +78,41 @@ textarea[readonly] {
65
  /*
66
  * MLA Inline editing - adapted from load-styles.php
67
  */
68
- #wpbody-content .quick-edit-row-attachment .inline-edit-col-left {
 
 
 
 
 
69
  width: 40%
70
  }
71
 
72
- #wpbody-content .quick-edit-row-attachment .inline-edit-col-center {
 
73
  width: 20%
74
  }
75
 
76
- #wpbody-content .quick-edit-row-attachment .inline-edit-col-right {
 
77
  width: 39%
78
  }
79
 
80
- .inline-edit-row fieldset.inline-edit-col-left label span.title{
 
81
  width: 6em
82
  }
83
 
84
- .inline-edit-row fieldset.inline-edit-col-left label span.input-text-wrap{
 
85
  margin-left: 6em
86
  }
87
 
88
- .inline-edit-row fieldset.inline-edit-col-left label.inline-edit-post-parent span.input-text-wrap{
 
89
  width: 5em
90
  }
91
 
92
- .inline-edit-row fieldset.inline-edit-col-right label span.title{
 
93
  width: 99%
94
  }
6
  * to avoid conflicts.
7
  */
8
 
9
+ /*
10
+ * MLA List Table, single edit and settings page message DIV
11
+ */
12
+ div.mla_messages {
13
+ background:#FFFFE0;
14
+ border:1px solid #CCC;
15
+ padding:0 10px;
16
+ margin-top:5px;
17
+ border-radius:5px;
18
+ -moz-border-radius:5px;
19
+ -webkit-border-radius:5px;
20
+ }
21
+
22
  /*
23
  * MLA List Table ID_parent column
24
  */
78
  /*
79
  * MLA Inline editing - adapted from load-styles.php
80
  */
81
+ .mla_bulk_taxonomy_options {
82
+ margin-bottom: 10px
83
+ }
84
+
85
+ #wpbody-content .quick-edit-row-attachment .inline-edit-col-left,
86
+ #wpbody-content .bulk-edit-row-attachment .inline-edit-col-left {
87
  width: 40%
88
  }
89
 
90
+ #wpbody-content .quick-edit-row-attachment .inline-edit-col-center,
91
+ #wpbody-content .bulk-edit-row-attachment .inline-edit-col-center {
92
  width: 20%
93
  }
94
 
95
+ #wpbody-content .quick-edit-row-attachment .inline-edit-col-right,
96
+ #wpbody-content .bulk-edit-row-attachment .inline-edit-col-right {
97
  width: 39%
98
  }
99
 
100
+ .quick-edit-row-attachment fieldset.inline-edit-col-left label span.title,
101
+ .bulk-edit-row-attachment fieldset.inline-edit-col-right label span.title {
102
  width: 6em
103
  }
104
 
105
+ .quick-edit-row-attachment fieldset.inline-edit-col-left label span.input-text-wrap,
106
+ .bulk-edit-row-attachment fieldset.inline-edit-col-right label span.input-text-wrap {
107
  margin-left: 6em
108
  }
109
 
110
+ .quick-edit-row-attachment fieldset.inline-edit-col-left label.inline-edit-post-parent span.input-text-wrap,
111
+ .bulk-edit-row-attachment fieldset.inline-edit-col-right label.inline-edit-post-parent span.input-text-wrap {
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%
118
  }
includes/class-mla-data.php CHANGED
@@ -158,30 +158,7 @@ class MLAData {
158
  * @return array attachment objects (posts) including parent data, meta data and references
159
  */
160
  public static function mla_query_list_table_items( $request, $offset, $count ) {
161
- $request = self::_prepare_list_table_query( $request );
162
-
163
- /*
164
- * We have to handle custom field/post_meta values here
165
- * because they need a JOIN clause supplied by WP_Query
166
- */
167
- switch ( self::$query_parameters['orderby'] ) {
168
- case '_wp_attachment_image_alt':
169
- $request['meta_key'] = '_wp_attachment_image_alt';
170
- $request['orderby'] = 'meta_value';
171
- $request['order'] = self::$query_parameters['order'];
172
- break;
173
- case '_wp_attached_file':
174
- $request['meta_key'] = '_wp_attached_file';
175
- $request['orderby'] = 'meta_value';
176
- $request['order'] = self::$query_parameters['order'];
177
- break;
178
- } // $orderby
179
-
180
- if ( ( (int) $count ) > 0 ) {
181
- $request['offset'] = $offset;
182
- $request['posts_per_page'] = $count;
183
- }
184
-
185
  $results = self::_execute_list_table_query( $request );
186
  $attachments = $results->posts;
187
 
@@ -233,27 +210,116 @@ class MLAData {
233
  * @since 0.1
234
  *
235
  * @param array query parameters from web page, usually found in $_REQUEST
 
 
236
  *
237
  * @return array revised arguments suitable for WP_Query
238
  */
239
- private static function _prepare_list_table_query( $request ) {
240
- // error_log('_prepare_list_table_query $request = ' . var_export($request, true), 0);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
241
 
242
  self::$query_parameters = array( );
243
- self::$query_parameters['detached'] = isset( $_REQUEST['detached'] );
244
- self::$query_parameters['orderby'] = ( !empty( $request['orderby'] ) ) ? $request['orderby'] : MLASettings::mla_get_option( 'default_orderby' ); //If no sort, default from settings option
245
- self::$query_parameters['order'] = ( !empty( $request['order'] ) ) ? strtoupper( $request['order'] ) : MLASettings::mla_get_option( 'default_order' ); //If no order, default from settings option
246
 
247
  /*
248
- * Ignore incoming paged value; use offset and count instead
 
249
  */
250
- if (isset($request['paged']))
251
- unset($request['paged']);
252
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
253
  /*
254
- * ['m'] - filter by year and month of post, e.g., 201204
255
  */
256
- $request['m'] = isset( $request['m'] ) ? (int) $request['m'] : 0;
 
 
 
257
 
258
  /*
259
  * ['mla_filter_term'] - filter by taxonomy
@@ -261,52 +327,54 @@ class MLAData {
261
  * cat = '0' is "All Categories", i.e., no filtering
262
  * cat = '-1' is "No Categories"
263
  */
264
- if ( isset( $request['mla_filter_term'] ) && ( $request['mla_filter_term'] != '0' ) ) {
265
- $tax_filter = MLASettings::mla_taxonomy_support('', 'filter');
266
- if ( $request['mla_filter_term'] == '-1' ) {
267
- $term_list = get_terms( $tax_filter, array(
268
- 'fields' => 'ids',
269
- 'hide_empty' => true
270
- ) );
271
- $request['tax_query'] = array(
272
- array(
273
- 'taxonomy' => $tax_filter,
274
- 'field' => 'id',
275
- 'terms' => $term_list,
276
- 'operator' => 'NOT IN'
277
- )
278
- );
279
- } else {
280
- $request['tax_query'] = array(
281
- array(
282
- 'taxonomy' => $tax_filter,
283
- 'field' => 'id',
284
- 'terms' => array(
285
- (int) $request['mla_filter_term']
286
  )
287
- )
288
- );
289
- }
290
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
291
 
292
- if ( isset( $request['mla-tax'] ) ) {
293
- $request['tax_query'] = array(
294
  array(
295
- 'taxonomy' => $request['mla-tax'],
296
  'field' => 'slug',
297
- 'terms' => $request['mla-term'],
298
  'include_children' => false
299
  )
300
  );
301
- }
302
-
303
- $request['post_type'] = 'attachment';
304
- $states = 'inherit';
305
- if ( current_user_can( 'read_private_posts' ) )
306
- $states .= ',private';
307
 
308
- $request['post_status'] = isset( $request['status'] ) && 'trash' == $request['status'] ? 'trash' : $states;
309
- return $request;
310
  }
311
 
312
  /**
@@ -322,13 +390,13 @@ class MLAData {
322
  add_filter( 'posts_join', 'MLAData::mla_query_posts_join_filter' );
323
  add_filter( 'posts_where', 'MLAData::mla_query_posts_where_filter' );
324
  add_filter( 'posts_orderby', 'MLAData::mla_query_posts_orderby_filter' );
 
325
  $results = new WP_Query( $request );
 
326
  remove_filter( 'posts_orderby', 'MLAData::mla_query_posts_orderby_filter' );
327
  remove_filter( 'posts_where', 'MLAData::mla_query_posts_where_filter' );
328
  remove_filter( 'posts_join', 'MLAData::mla_query_posts_join_filter' );
329
 
330
- // error_log( '_execute_list_table_query SQL ' . var_export( $results->request, true ), 0 );
331
- // error_log( '_execute_list_table_query results ' . var_export( $results, true ), 0 );
332
  return $results;
333
  }
334
 
@@ -345,9 +413,16 @@ class MLAData {
345
  */
346
  public static function mla_query_posts_join_filter( $join_clause ) {
347
  global $table_prefix;
348
- // error_log( 'mla_query_posts_join_filter original ' . var_export( $join_clause, true ), 0 );
349
-
350
- // return ' LEFT JOIN mladev_postmeta ON (mladev_posts.ID = mladev_postmeta.post_id)';
 
 
 
 
 
 
 
351
  return $join_clause;
352
  }
353
 
@@ -365,12 +440,10 @@ class MLAData {
365
  */
366
  public static function mla_query_posts_where_filter( $where_clause ) {
367
  global $table_prefix;
368
- // error_log( 'mla_query_posts_where_filter original ' . var_export( $where_clause, true ), 0 );
369
 
370
  if ( self::$query_parameters['detached'] )
371
  $where_clause .= " AND {$table_prefix}posts.post_parent < 1";
372
 
373
- // error_log( 'mla_query_posts_where_filter UPDATED ' . var_export( $where_clause, true ), 0 );
374
  return $where_clause;
375
  }
376
 
@@ -388,7 +461,6 @@ class MLAData {
388
  */
389
  public static function mla_query_posts_orderby_filter( $orderby_clause ) {
390
  global $table_prefix;
391
- // error_log( 'mla_query_posts_orderby_filter original ' . var_export( $orderby_clause, true ), 0 );
392
 
393
  if ( isset( self::$query_parameters['orderby'] ) ) {
394
  switch ( self::$query_parameters['orderby'] ) {
@@ -400,10 +472,20 @@ class MLAData {
400
  case 'title_name':
401
  $orderby = "{$table_prefix}posts.post_title";
402
  break;
 
 
 
 
403
  case '_wp_attached_file':
404
- case '_wp_attachment_image_alt':
405
  $orderby = '';
406
  break;
 
 
 
 
 
 
 
407
  default:
408
  $orderby = "{$table_prefix}posts." . self::$query_parameters['orderby'];
409
  } // $query_parameters['orderby']
@@ -412,7 +494,6 @@ class MLAData {
412
  $orderby_clause = $orderby . ' ' . self::$query_parameters['order'];
413
  } // isset
414
 
415
- // error_log( 'mla_query_posts_orderby_filter UPDATED ' . var_export( $orderby_clause, true ), 0 );
416
  return $orderby_clause;
417
  }
418
 
@@ -428,7 +509,7 @@ class MLAData {
428
  * @return NULL|array NULL on failure else associative array
429
  */
430
  function mla_get_attachment_by_id( $post_id ) {
431
- global $wpdb, $post;
432
 
433
  $item = get_post( $post_id );
434
  if ( empty( $item ) ) {
@@ -441,7 +522,6 @@ class MLAData {
441
  return NULL;
442
  }
443
 
444
- // error_log('mla_get_attachment_by_id item ' . var_export($item, true), 0);
445
  $post_data = (array) $item;
446
  $post = $item;
447
  setup_postdata( $item );
@@ -461,7 +541,6 @@ class MLAData {
461
  */
462
  $post_data['mla_references'] = self::mla_fetch_attachment_references( $post_id, $post_data['post_parent'] );
463
 
464
- // error_log('post data ' . var_export($post_data, true), 0);
465
  return $post_data;
466
  }
467
 
@@ -536,32 +615,49 @@ class MLAData {
536
  }
537
  }
538
 
 
 
 
 
 
 
 
 
539
  /*
540
  * Look for the "Featured Image(s)"
541
  */
542
- $features = $wpdb->get_results( "
543
- SELECT post_id
544
- FROM $wpdb->postmeta
545
- WHERE meta_key = '_thumbnail_id'
546
- AND meta_value = $ID
547
- " );
 
 
 
548
 
549
  if ( !empty( $features ) ) {
550
- $references['found_reference'] = true;
551
-
552
  foreach ( $features as $feature ) {
553
- $feature_results = $wpdb->get_results( "
554
- SELECT post_type, post_title
555
- FROM $wpdb->posts
556
- WHERE ID = $feature->post_id
557
- " );
558
- $references['features'][ $feature->post_id ] = $feature_results[0];
 
 
 
 
 
 
 
559
 
560
- if ( $feature->post_id == $parent ) {
561
- $references['found_parent'] = true;
562
- $references['parent_type'] = $feature_results[0]->post_type;
563
- $references['parent_title'] = $feature_results[0]->post_title;
564
- }
 
565
  } // foreach $feature
566
  }
567
 
@@ -569,18 +665,23 @@ class MLAData {
569
  * Look for item(s) inserted in post_content
570
  */
571
  foreach ( $references['files'] as $file => $file_data ) {
572
- $inserts = $wpdb->get_results( "
573
- SELECT ID, post_type, post_title
574
- FROM $wpdb->posts
575
- WHERE (
576
- CONVERT(`post_content` USING utf8 )
577
- LIKE '%$file%'
578
- )
579
- " );
 
 
 
 
580
 
581
  if ( !empty( $inserts ) ) {
582
  $references['found_reference'] = true;
583
  $references['inserts'][ $file ] = $inserts;
 
584
  foreach ( $inserts as $insert ) {
585
  if ( $insert->ID == $parent ) {
586
  $references['found_parent'] = true;
@@ -588,7 +689,7 @@ class MLAData {
588
  $references['parent_title'] = $insert->post_title;
589
  }
590
  } // foreach $insert
591
- }
592
  } // foreach $file
593
 
594
  return $references;
158
  * @return array attachment objects (posts) including parent data, meta data and references
159
  */
160
  public static function mla_query_list_table_items( $request, $offset, $count ) {
161
+ $request = self::_prepare_list_table_query( $request, $offset, $count );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
  $results = self::_execute_list_table_query( $request );
163
  $attachments = $results->posts;
164
 
210
  * @since 0.1
211
  *
212
  * @param array query parameters from web page, usually found in $_REQUEST
213
+ * @param int number of rows to skip over to reach desired page
214
+ * @param int number of rows on each page (0 = all rows)
215
  *
216
  * @return array revised arguments suitable for WP_Query
217
  */
218
+ private static function _prepare_list_table_query( $raw_request, $offset = 0, $count = 0 ) {
219
+ /*
220
+ * Go through the $raw_request, take only the arguments that are used in the query and
221
+ * sanitize or validate them.
222
+ */
223
+ if ( ! is_array( $raw_request ) ) {
224
+ error_log( 'ERROR: _prepare_list_table_query $raw_request = ' . var_export( $raw_request, true ), 0 );
225
+ return null;
226
+ }
227
+
228
+ $clean_request = array (
229
+ 'm' => 0,
230
+ 'orderby' => MLASettings::mla_get_option( 'default_orderby' ),
231
+ 'order' => MLASettings::mla_get_option( 'default_order' ),
232
+ 'post_type' => 'attachment',
233
+ 'post_status' => 'inherit'
234
+ );
235
+
236
+ foreach ( $raw_request as $key => $value ) {
237
+ switch ( $key ) {
238
+ case 'mla-tax':
239
+ case 'mla-term':
240
+ $clean_request[ $key ] = sanitize_key( $value );
241
+ break;
242
+ case 'orderby':
243
+ $sortable_columns = MLA_List_Table::mla_get_sortable_columns( );
244
+ foreach ($sortable_columns as $sort_key => $sort_value ) {
245
+ if ( $value == $sort_value[0] ) {
246
+ $clean_request[ $key ] = $value;
247
+ break;
248
+ }
249
+ } // foreach
250
+ break;
251
+ case 'post_mime_type':
252
+ if ( array_key_exists( $value, MLA_List_Table::mla_get_attachment_mime_types( ) ) )
253
+ $clean_request[ $key ] = $value;
254
+ break;
255
+ /*
256
+ * ['m'] - filter by year and month of post, e.g., 201204
257
+ */
258
+ case 'm':
259
+ $clean_request[ $key ] = absint( $value );
260
+ break;
261
+ /*
262
+ * ['mla_filter_term'] - filter by category or tag ID; -1 allowed
263
+ */
264
+ case 'mla_filter_term':
265
+ $clean_request[ $key ] = intval( $value );
266
+ break;
267
+ case 'order':
268
+ switch ( $value = strtoupper ($value ) ) {
269
+ case 'ASC':
270
+ case 'DESC':
271
+ $clean_request[ $key ] = $value;
272
+ break;
273
+ default:
274
+ $clean_request[ $key ] = 'ASC';
275
+ }
276
+ break;
277
+ case 'detached':
278
+ if ( '1' == $value )
279
+ $clean_request['detached'] = '1';
280
+ break;
281
+ case 'status':
282
+ if ( 'trash' == $value )
283
+ $clean_request['post_status'] = 'trash';
284
+ break;
285
+ default:
286
+ // ignore anything else in $_REQUEST
287
+ } // switch $key
288
+ } // foreach $raw_request
289
 
290
  self::$query_parameters = array( );
291
+ self::$query_parameters['detached'] = isset( $clean_request['detached'] );
292
+ self::$query_parameters['orderby'] = $clean_request['orderby'];
293
+ self::$query_parameters['order'] = $clean_request['order'];
294
 
295
  /*
296
+ * We have to handle custom field/post_meta values here
297
+ * because they need a JOIN clause supplied by WP_Query
298
  */
299
+ switch ( self::$query_parameters['orderby'] ) {
300
+ /*
301
+ * '_wp_attachment_image_alt' is special; we'll handle it in the JOIN and ORDERBY filters
302
+ */
303
+ case '_wp_attachment_image_alt':
304
+ if ( isset($clean_request['orderby']) )
305
+ unset($clean_request['orderby']);
306
+ if ( isset($clean_request['order']) )
307
+ unset($clean_request['order']);
308
+ break;
309
+ case '_wp_attached_file':
310
+ $clean_request['meta_key'] = '_wp_attached_file';
311
+ $clean_request['orderby'] = 'meta_value';
312
+ $clean_request['order'] = self::$query_parameters['order'];
313
+ break;
314
+ } // $orderby
315
+
316
  /*
317
+ * Ignore incoming paged value; use offset and count instead
318
  */
319
+ if ( ( (int) $count ) > 0 ) {
320
+ $clean_request['offset'] = $offset;
321
+ $clean_request['posts_per_page'] = $count;
322
+ }
323
 
324
  /*
325
  * ['mla_filter_term'] - filter by taxonomy
327
  * cat = '0' is "All Categories", i.e., no filtering
328
  * cat = '-1' is "No Categories"
329
  */
330
+ if ( isset( $clean_request['mla_filter_term'] ) ) {
331
+ if ( $clean_request['mla_filter_term'] != '0' ) {
332
+ $tax_filter = MLASettings::mla_taxonomy_support('', 'filter');
333
+ if ( $clean_request['mla_filter_term'] == '-1' ) {
334
+ $term_list = get_terms( $tax_filter, array(
335
+ 'fields' => 'ids',
336
+ 'hide_empty' => true
337
+ ) );
338
+ $clean_request['tax_query'] = array(
339
+ array(
340
+ 'taxonomy' => $tax_filter,
341
+ 'field' => 'id',
342
+ 'terms' => $term_list,
343
+ 'operator' => 'NOT IN'
 
 
 
 
 
 
 
 
344
  )
345
+ );
346
+ } // mla_filter_term == -1
347
+ else {
348
+ $clean_request['tax_query'] = array(
349
+ array(
350
+ 'taxonomy' => $tax_filter,
351
+ 'field' => 'id',
352
+ 'terms' => array(
353
+ (int) $clean_request['mla_filter_term']
354
+ )
355
+ )
356
+ );
357
+ } // mla_filter_term != -1
358
+ } // mla_filter_term != 0
359
+
360
+ unset( $clean_request['mla_filter_term'] );
361
+ } // isset mla_filter_term
362
 
363
+ if ( isset( $clean_request['mla-tax'] ) ) {
364
+ $clean_request['tax_query'] = array(
365
  array(
366
+ 'taxonomy' => $clean_request['mla-tax'],
367
  'field' => 'slug',
368
+ 'terms' => $clean_request['mla-term'],
369
  'include_children' => false
370
  )
371
  );
372
+
373
+ unset( $clean_request['mla-tax'] );
374
+ unset( $clean_request['mla-term'] );
375
+ } // isset mla_tax
 
 
376
 
377
+ return $clean_request;
 
378
  }
379
 
380
  /**
390
  add_filter( 'posts_join', 'MLAData::mla_query_posts_join_filter' );
391
  add_filter( 'posts_where', 'MLAData::mla_query_posts_where_filter' );
392
  add_filter( 'posts_orderby', 'MLAData::mla_query_posts_orderby_filter' );
393
+
394
  $results = new WP_Query( $request );
395
+
396
  remove_filter( 'posts_orderby', 'MLAData::mla_query_posts_orderby_filter' );
397
  remove_filter( 'posts_where', 'MLAData::mla_query_posts_where_filter' );
398
  remove_filter( 'posts_join', 'MLAData::mla_query_posts_join_filter' );
399
 
 
 
400
  return $results;
401
  }
402
 
413
  */
414
  public static function mla_query_posts_join_filter( $join_clause ) {
415
  global $table_prefix;
416
+ /*
417
+ * '_wp_attachment_image_alt' is special; we have to use an SQL VIEW to
418
+ * build an intermediate table and modify the JOIN to include posts with
419
+ * no value for this meta data field.
420
+ */
421
+ if ( '_wp_attachment_image_alt' == self::$query_parameters['orderby'] ) {
422
+ $view_name = MLASettings::$mla_alt_text_view;
423
+ $join_clause .= " LEFT JOIN {$view_name} ON ({$table_prefix}posts.ID = {$view_name}.post_id)";
424
+ }
425
+
426
  return $join_clause;
427
  }
428
 
440
  */
441
  public static function mla_query_posts_where_filter( $where_clause ) {
442
  global $table_prefix;
 
443
 
444
  if ( self::$query_parameters['detached'] )
445
  $where_clause .= " AND {$table_prefix}posts.post_parent < 1";
446
 
 
447
  return $where_clause;
448
  }
449
 
461
  */
462
  public static function mla_query_posts_orderby_filter( $orderby_clause ) {
463
  global $table_prefix;
 
464
 
465
  if ( isset( self::$query_parameters['orderby'] ) ) {
466
  switch ( self::$query_parameters['orderby'] ) {
472
  case 'title_name':
473
  $orderby = "{$table_prefix}posts.post_title";
474
  break;
475
+ /*
476
+ * The _wp_attached_file meta data value is present for all attachments, and the
477
+ * sorting on the meta data value is handled by WP_Query
478
+ */
479
  case '_wp_attached_file':
 
480
  $orderby = '';
481
  break;
482
+ /*
483
+ * The _wp_attachment_image_alt value is only present for images, so we have to
484
+ * use the view we prepared to get attachments with no meta data value
485
+ */
486
+ case '_wp_attachment_image_alt':
487
+ $orderby = MLASettings::$mla_alt_text_view . '.meta_value';
488
+ break;
489
  default:
490
  $orderby = "{$table_prefix}posts." . self::$query_parameters['orderby'];
491
  } // $query_parameters['orderby']
494
  $orderby_clause = $orderby . ' ' . self::$query_parameters['order'];
495
  } // isset
496
 
 
497
  return $orderby_clause;
498
  }
499
 
509
  * @return NULL|array NULL on failure else associative array
510
  */
511
  function mla_get_attachment_by_id( $post_id ) {
512
+ global $post;
513
 
514
  $item = get_post( $post_id );
515
  if ( empty( $item ) ) {
522
  return NULL;
523
  }
524
 
 
525
  $post_data = (array) $item;
526
  $post = $item;
527
  setup_postdata( $item );
541
  */
542
  $post_data['mla_references'] = self::mla_fetch_attachment_references( $post_id, $post_data['post_parent'] );
543
 
 
544
  return $post_data;
545
  }
546
 
615
  }
616
  }
617
 
618
+ /*
619
+ * Process the where-used settings option
620
+ */
621
+ if ('checked' == MLASettings::mla_get_option( 'exclude_revisions' ) )
622
+ $exclude_revisions = "(post_type <> 'revision') AND ";
623
+ else
624
+ $exclude_revisions = '';
625
+
626
  /*
627
  * Look for the "Featured Image(s)"
628
  */
629
+ $features = $wpdb->get_results(
630
+ $wpdb->prepare(
631
+ "
632
+ SELECT post_id
633
+ FROM {$wpdb->postmeta}
634
+ WHERE meta_key = '_thumbnail_id' AND meta_value = {$ID}
635
+ "
636
+ )
637
+ );
638
 
639
  if ( !empty( $features ) ) {
 
 
640
  foreach ( $features as $feature ) {
641
+ $feature_results = $wpdb->get_results(
642
+ $wpdb->prepare(
643
+ "
644
+ SELECT post_type, post_title
645
+ FROM {$wpdb->posts}
646
+ WHERE {$exclude_revisions}(ID = {$feature->post_id})
647
+ "
648
+ )
649
+ );
650
+
651
+ if ( !empty( $feature_results ) ) {
652
+ $references['found_reference'] = true;
653
+ $references['features'][ $feature->post_id ] = $feature_results[0];
654
 
655
+ if ( $feature->post_id == $parent ) {
656
+ $references['found_parent'] = true;
657
+ $references['parent_type'] = $feature_results[0]->post_type;
658
+ $references['parent_title'] = $feature_results[0]->post_title;
659
+ }
660
+ } // !empty
661
  } // foreach $feature
662
  }
663
 
665
  * Look for item(s) inserted in post_content
666
  */
667
  foreach ( $references['files'] as $file => $file_data ) {
668
+ $like = like_escape( $file );
669
+ $inserts = $wpdb->get_results(
670
+ $wpdb->prepare(
671
+ "
672
+ SELECT ID, post_type, post_title
673
+ FROM {$wpdb->posts}
674
+ WHERE {$exclude_revisions}(
675
+ CONVERT(`post_content` USING utf8 )
676
+ LIKE %s)
677
+ ", "%{$like}%"
678
+ )
679
+ );
680
 
681
  if ( !empty( $inserts ) ) {
682
  $references['found_reference'] = true;
683
  $references['inserts'][ $file ] = $inserts;
684
+
685
  foreach ( $inserts as $insert ) {
686
  if ( $insert->ID == $parent ) {
687
  $references['found_parent'] = true;
689
  $references['parent_title'] = $insert->post_title;
690
  }
691
  } // foreach $insert
692
+ } // !empty
693
  } // foreach $file
694
 
695
  return $references;
includes/class-mla-list-table.php CHANGED
@@ -149,7 +149,7 @@ class MLA_List_Table extends WP_List_Table {
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),
153
  'caption' => array('post_excerpt',false),
154
  'description' => array('post_content',false),
155
  'post_mime_type' => array('post_mime_type',false),
@@ -173,6 +173,105 @@ class MLA_List_Table extends WP_List_Table {
173
  return MLA_List_Table::$default_hidden_columns;
174
  }
175
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
  /**
177
  * Return the names and display values of the sortable columns
178
  *
@@ -438,12 +537,12 @@ class MLA_List_Table extends WP_List_Table {
438
  */
439
  private function _build_inline_data( $item ) {
440
  $inline_data = "\r\n" . '<div class="hidden" id="inline_' . $item->ID . "\">\r\n";
441
- $inline_data .= ' <div class="post_title">' . $item->post_title . "</div>\r\n";
442
- $inline_data .= ' <div class="post_name">' . $item->post_name . "</div>\r\n";
443
 
444
  if ( !empty( $item->mla_wp_attachment_metadata ) ) {
445
  if ( isset( $item->mla_wp_attachment_image_alt ) )
446
- $inline_data .= ' <div class="image_alt">' . $item->mla_wp_attachment_image_alt . "</div>\r\n";
447
  else
448
  $inline_data .= ' <div class="image_alt">' . "</div>\r\n";
449
  }
@@ -506,11 +605,13 @@ class MLA_List_Table extends WP_List_Table {
506
  }
507
 
508
  $row_actions = self::_build_rollover_actions( $item, 'title_name' );
 
 
509
 
510
  if ( !empty( $row_actions ) ) {
511
- return sprintf( '%1$s<br>%2$s<br>%3$s%4$s', /*%1$s*/ $item->post_title, /*%2$s*/ $item->post_name, /*%3$s*/ $errors, /*%4$s*/ $this->row_actions( $row_actions ) );
512
  } else {
513
- return sprintf( '%1$s<br>%2$s<br>%3$s', /*%1$s*/ $item->post_title, /*%2$s*/ $item->post_name, /*%3$s*/ $errors );
514
  }
515
  }
516
 
@@ -526,9 +627,9 @@ class MLA_List_Table extends WP_List_Table {
526
  $row_actions = self::_build_rollover_actions( $item, 'post_title' );
527
 
528
  if ( !empty( $row_actions ) ) {
529
- return sprintf( '%1$s<br>%2$s', /*%1$s*/ $item->post_title, /*%2$s*/ $this->row_actions( $row_actions ) );
530
  } else {
531
- return $item->post_title;
532
  }
533
  }
534
 
@@ -544,9 +645,9 @@ class MLA_List_Table extends WP_List_Table {
544
  $row_actions = self::_build_rollover_actions( $item, 'post_name' );
545
 
546
  if ( !empty( $row_actions ) ) {
547
- return sprintf( '%1$s<br>%2$s', /*%1$s*/ $item->post_name, /*%2$s*/ $this->row_actions( $row_actions ) );
548
  } else {
549
- return $item->post_name;
550
  }
551
  }
552
 
@@ -579,7 +680,7 @@ class MLA_List_Table extends WP_List_Table {
579
  else
580
  $parent = '';
581
 
582
- $value .= sprintf( '%1$s (%2$s %3$s), %4$s', /*%1$s*/ $parent, /*%2$s*/ $feature->post_type, /*%3$s*/ $feature_id, /*%4$s*/ $feature->post_title ) . "<br>\r\n";
583
  } // foreach $feature
584
 
585
  return $value;
@@ -605,7 +706,7 @@ class MLA_List_Table extends WP_List_Table {
605
  else
606
  $parent = '&nbsp;&nbsp;';
607
 
608
- $value .= sprintf( '%1$s (%2$s %3$s), %4$s', /*%1$s*/ $parent, /*%2$s*/ $insert->post_type, /*%3$s*/ $insert->ID, /*%4$s*/ $insert->post_title ) . "<br>\r\n";
609
  } // foreach $insert
610
  } // foreach $file
611
 
@@ -622,7 +723,7 @@ class MLA_List_Table extends WP_List_Table {
622
  */
623
  function column_alt_text( $item ) {
624
  if ( isset( $item->mla_wp_attachment_image_alt ) )
625
- return $item->mla_wp_attachment_image_alt;
626
  else
627
  return '';
628
  }
@@ -636,7 +737,7 @@ class MLA_List_Table extends WP_List_Table {
636
  * @return string HTML markup to be placed inside the column
637
  */
638
  function column_caption( $item ) {
639
- return $item->post_excerpt;
640
  }
641
 
642
  /**
@@ -648,7 +749,7 @@ class MLA_List_Table extends WP_List_Table {
648
  * @return string HTML markup to be placed inside the column
649
  */
650
  function column_description( $item ) {
651
- return $item->post_content;
652
  }
653
 
654
  /**
@@ -765,7 +866,7 @@ class MLA_List_Table extends WP_List_Table {
765
  $parent_date = '';
766
 
767
  if ( isset( $item->parent_title ) )
768
- $parent_title = $item->parent_title;
769
  else
770
  $parent_title = '(Unattached)';
771
 
@@ -849,9 +950,16 @@ class MLA_List_Table extends WP_List_Table {
849
  $type_links = array( );
850
  $_num_posts = (array) wp_count_attachments();
851
  $_total_posts = array_sum( $_num_posts ) - $_num_posts['trash'];
852
- $total_orphans = $wpdb->get_var( "SELECT COUNT( * ) FROM $wpdb->posts WHERE post_type = 'attachment' AND post_status != 'trash' AND post_parent < 1" );
 
 
 
 
 
 
 
853
 
854
- $post_mime_types = $this->_mime_types();
855
  $avail_post_mime_types = $this->_avail_mime_types( $_num_posts );
856
  $matches = wp_match_mime_types( array_keys( $post_mime_types ), array_keys( $_num_posts ) );
857
 
@@ -891,7 +999,7 @@ class MLA_List_Table extends WP_List_Table {
891
  'post_mime_type' => $mime_type
892
  ), $base_url ) . "'$class>" . sprintf( translate_nooped_plural( $label[ 2 ], $num_posts[ $mime_type ] ), number_format_i18n( $num_posts[ $mime_type ] ) ) . '</a>';
893
  }
894
- } // foreach post_mimie_types
895
 
896
  $type_links['detached'] = '<a href="' . add_query_arg( array(
897
  'detached' => '1'
@@ -921,7 +1029,7 @@ class MLA_List_Table extends WP_List_Table {
921
  $actions['restore'] = 'Restore';
922
  $actions['delete'] = 'Delete Permanently';
923
  } else {
924
- // $actions['edit'] = 'Edit';
925
  // $actions['attach'] = 'Attach';
926
 
927
  if ( EMPTY_TRASH_DAYS && MEDIA_TRASH )
@@ -1058,105 +1166,6 @@ class MLA_List_Table extends WP_List_Table {
1058
  echo parent::single_row_columns( $item );
1059
  echo '</tr>';
1060
  }
1061
-
1062
- /**
1063
- * Get possible mime types for view preparation
1064
- *
1065
- * Modeled after get_post_mime_types in wp-admin/includes/post.php,
1066
- * with additional entries.
1067
- *
1068
- * @since 0.1
1069
- *
1070
- * @return array Mime type names and HTML markup for views
1071
- */
1072
- private function _mime_types( )
1073
- {
1074
- return array(
1075
- 'image' => array(
1076
- 0 => 'Images',
1077
- 1 => 'Manage Images',
1078
- 2 => array(
1079
- 0 => 'Image <span class="count">(%s)</span>',
1080
- 1 => 'Images <span class="count">(%s)</span>',
1081
- 'singular' => 'Image <span class="count">(%s)</span>',
1082
- 'plural' => 'Images <span class="count">(%s)</span>',
1083
- 'context' => NULL,
1084
- 'domain' => NULL
1085
- )
1086
- ),
1087
- 'audio' => array(
1088
- 0 => 'Audio',
1089
- 1 => 'Manage Audio',
1090
- 2 => array(
1091
- 0 => 'Audio <span class="count">(%s)</span>',
1092
- 1 => 'Audio <span class="count">(%s)</span>',
1093
- 'singular' => 'Audio <span class="count">(%s)</span>',
1094
- 'plural' => 'Audio <span class="count">(%s)</span>',
1095
- 'context' => NULL,
1096
- 'domain' => NULL
1097
- )
1098
- ),
1099
- 'video' => array(
1100
- 0 => 'Video',
1101
- 1 => 'Manage Video',
1102
- 2 => array(
1103
- 0 => 'Video <span class="count">(%s)</span>',
1104
- 1 => 'Video <span class="count">(%s)</span>',
1105
- 'singular' => 'Video <span class="count">(%s)</span>',
1106
- 'plural' => 'Video <span class="count">(%s)</span>',
1107
- 'context' => NULL,
1108
- 'domain' => NULL
1109
- )
1110
- ),
1111
- 'text' => array(
1112
- 0 => 'Text',
1113
- 1 => 'Manage Text',
1114
- 2 => array(
1115
- 0 => 'Text <span class="count">(%s)</span>',
1116
- 1 => 'Text <span class="count">(%s)</span>',
1117
- 'singular' => 'Text <span class="count">(%s)</span>',
1118
- 'plural' => 'Text <span class="count">(%s)</span>',
1119
- 'context' => NULL,
1120
- 'domain' => NULL
1121
- )
1122
- ),
1123
- 'application' => array(
1124
- 0 => 'Applications',
1125
- 1 => 'Manage Applications',
1126
- 2 => array(
1127
- 0 => 'Application <span class="count">(%s)</span>',
1128
- 1 => 'Applications <span class="count">(%s)</span>',
1129
- 'singular' => 'Application <span class="count">(%s)</span>',
1130
- 'plural' => 'Applications <span class="count">(%s)</span>',
1131
- 'context' => NULL,
1132
- 'domain' => NULL
1133
- )
1134
- )
1135
- );
1136
- }
1137
-
1138
- /**
1139
- * Get mime types with one or more attachments for view preparation
1140
- *
1141
- * Modeled after get_available_post_mime_types in wp-admin/includes/post.php,
1142
- * with additional entries.
1143
- *
1144
- * @since 0.1
1145
- *
1146
- * @param array Number of posts for each mime type
1147
- *
1148
- * @return array Mime type names
1149
- */
1150
- private function _avail_mime_types( $num_posts ) {
1151
- $available = array( );
1152
-
1153
- foreach ( $num_posts as $mime_type => $number ) {
1154
- if ( ( $number > 0 ) && ( $mime_type <> 'trash' ) )
1155
- $available[ ] = $mime_type;
1156
- }
1157
-
1158
- return $available;
1159
- }
1160
  } // class MLA_List_Table
1161
 
1162
  /*
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),
153
  'caption' => array('post_excerpt',false),
154
  'description' => array('post_content',false),
155
  'post_mime_type' => array('post_mime_type',false),
173
  return MLA_List_Table::$default_hidden_columns;
174
  }
175
 
176
+ /**
177
+ * Get mime types with one or more attachments for view preparation
178
+ *
179
+ * Modeled after get_available_post_mime_types in wp-admin/includes/post.php,
180
+ * with additional entries.
181
+ *
182
+ * @since 0.1
183
+ *
184
+ * @param array Number of posts for each mime type
185
+ *
186
+ * @return array Mime type names
187
+ */
188
+ private function _avail_mime_types( $num_posts ) {
189
+ $available = array( );
190
+
191
+ foreach ( $num_posts as $mime_type => $number ) {
192
+ if ( ( $number > 0 ) && ( $mime_type <> 'trash' ) )
193
+ $available[ ] = $mime_type;
194
+ }
195
+
196
+ return $available;
197
+ }
198
+
199
+ /**
200
+ * Get possible mime types for view preparation
201
+ *
202
+ * Modeled after get_post_mime_types in wp-admin/includes/post.php,
203
+ * with additional entries.
204
+ *
205
+ * @since 0.1
206
+ *
207
+ * @return array Mime type names and HTML markup for views
208
+ */
209
+ public static function mla_get_attachment_mime_types( )
210
+ {
211
+ return array(
212
+ 'image' => array(
213
+ 0 => 'Images',
214
+ 1 => 'Manage Images',
215
+ 2 => array(
216
+ 0 => 'Image <span class="count">(%s)</span>',
217
+ 1 => 'Images <span class="count">(%s)</span>',
218
+ 'singular' => 'Image <span class="count">(%s)</span>',
219
+ 'plural' => 'Images <span class="count">(%s)</span>',
220
+ 'context' => NULL,
221
+ 'domain' => NULL
222
+ )
223
+ ),
224
+ 'audio' => array(
225
+ 0 => 'Audio',
226
+ 1 => 'Manage Audio',
227
+ 2 => array(
228
+ 0 => 'Audio <span class="count">(%s)</span>',
229
+ 1 => 'Audio <span class="count">(%s)</span>',
230
+ 'singular' => 'Audio <span class="count">(%s)</span>',
231
+ 'plural' => 'Audio <span class="count">(%s)</span>',
232
+ 'context' => NULL,
233
+ 'domain' => NULL
234
+ )
235
+ ),
236
+ 'video' => array(
237
+ 0 => 'Video',
238
+ 1 => 'Manage Video',
239
+ 2 => array(
240
+ 0 => 'Video <span class="count">(%s)</span>',
241
+ 1 => 'Video <span class="count">(%s)</span>',
242
+ 'singular' => 'Video <span class="count">(%s)</span>',
243
+ 'plural' => 'Video <span class="count">(%s)</span>',
244
+ 'context' => NULL,
245
+ 'domain' => NULL
246
+ )
247
+ ),
248
+ 'text' => array(
249
+ 0 => 'Text',
250
+ 1 => 'Manage Text',
251
+ 2 => array(
252
+ 0 => 'Text <span class="count">(%s)</span>',
253
+ 1 => 'Text <span class="count">(%s)</span>',
254
+ 'singular' => 'Text <span class="count">(%s)</span>',
255
+ 'plural' => 'Text <span class="count">(%s)</span>',
256
+ 'context' => NULL,
257
+ 'domain' => NULL
258
+ )
259
+ ),
260
+ 'application' => array(
261
+ 0 => 'Applications',
262
+ 1 => 'Manage Applications',
263
+ 2 => array(
264
+ 0 => 'Application <span class="count">(%s)</span>',
265
+ 1 => 'Applications <span class="count">(%s)</span>',
266
+ 'singular' => 'Application <span class="count">(%s)</span>',
267
+ 'plural' => 'Applications <span class="count">(%s)</span>',
268
+ 'context' => NULL,
269
+ 'domain' => NULL
270
+ )
271
+ )
272
+ );
273
+ }
274
+
275
  /**
276
  * Return the names and display values of the sortable columns
277
  *
537
  */
538
  private function _build_inline_data( $item ) {
539
  $inline_data = "\r\n" . '<div class="hidden" id="inline_' . $item->ID . "\">\r\n";
540
+ $inline_data .= ' <div class="post_title">' . esc_attr( $item->post_title ) . "</div>\r\n";
541
+ $inline_data .= ' <div class="post_name">' . esc_attr( $item->post_name ) . "</div>\r\n";
542
 
543
  if ( !empty( $item->mla_wp_attachment_metadata ) ) {
544
  if ( isset( $item->mla_wp_attachment_image_alt ) )
545
+ $inline_data .= ' <div class="image_alt">' . esc_attr( $item->mla_wp_attachment_image_alt ) . "</div>\r\n";
546
  else
547
  $inline_data .= ' <div class="image_alt">' . "</div>\r\n";
548
  }
605
  }
606
 
607
  $row_actions = self::_build_rollover_actions( $item, 'title_name' );
608
+ $post_title = esc_attr( $item->post_title );
609
+ $post_name = esc_attr( $item->post_name );
610
 
611
  if ( !empty( $row_actions ) ) {
612
+ return sprintf( '%1$s<br>%2$s<br>%3$s%4$s', /*%1$s*/ $post_title, /*%2$s*/ $post_name, /*%3$s*/ $errors, /*%4$s*/ $this->row_actions( $row_actions ) );
613
  } else {
614
+ return sprintf( '%1$s<br>%2$s<br>%3$s', /*%1$s*/ $post_title, /*%2$s*/ $post_name, /*%3$s*/ $errors );
615
  }
616
  }
617
 
627
  $row_actions = self::_build_rollover_actions( $item, 'post_title' );
628
 
629
  if ( !empty( $row_actions ) ) {
630
+ return sprintf( '%1$s<br>%2$s', /*%1$s*/ esc_attr( $item->post_title ), /*%2$s*/ $this->row_actions( $row_actions ) );
631
  } else {
632
+ return esc_attr( $item->post_title );
633
  }
634
  }
635
 
645
  $row_actions = self::_build_rollover_actions( $item, 'post_name' );
646
 
647
  if ( !empty( $row_actions ) ) {
648
+ return sprintf( '%1$s<br>%2$s', /*%1$s*/ esc_attr( $item->post_name ), /*%2$s*/ $this->row_actions( $row_actions ) );
649
  } else {
650
+ return esc_attr( $item->post_name );
651
  }
652
  }
653
 
680
  else
681
  $parent = '';
682
 
683
+ $value .= sprintf( '%1$s (%2$s %3$s), %4$s', /*%1$s*/ $parent, /*%2$s*/ esc_attr( $feature->post_type ), /*%3$s*/ $feature_id, /*%4$s*/ esc_attr( $feature->post_title ) ) . "<br>\r\n";
684
  } // foreach $feature
685
 
686
  return $value;
706
  else
707
  $parent = '&nbsp;&nbsp;';
708
 
709
+ $value .= sprintf( '%1$s (%2$s %3$s), %4$s', /*%1$s*/ $parent, /*%2$s*/ esc_attr( $insert->post_type ), /*%3$s*/ $insert->ID, /*%4$s*/ esc_attr( $insert->post_title ) ) . "<br>\r\n";
710
  } // foreach $insert
711
  } // foreach $file
712
 
723
  */
724
  function column_alt_text( $item ) {
725
  if ( isset( $item->mla_wp_attachment_image_alt ) )
726
+ return esc_attr( $item->mla_wp_attachment_image_alt );
727
  else
728
  return '';
729
  }
737
  * @return string HTML markup to be placed inside the column
738
  */
739
  function column_caption( $item ) {
740
+ return esc_attr( $item->post_excerpt );
741
  }
742
 
743
  /**
749
  * @return string HTML markup to be placed inside the column
750
  */
751
  function column_description( $item ) {
752
+ return esc_textarea( $item->post_content );
753
  }
754
 
755
  /**
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
 
950
  $type_links = array( );
951
  $_num_posts = (array) wp_count_attachments();
952
  $_total_posts = array_sum( $_num_posts ) - $_num_posts['trash'];
953
+ $total_orphans = $wpdb->get_var(
954
+ $wpdb->prepare(
955
+ "
956
+ SELECT COUNT( * ) FROM {$wpdb->posts}
957
+ WHERE post_type = 'attachment' AND post_status != 'trash' AND post_parent < 1
958
+ "
959
+ )
960
+ );
961
 
962
+ $post_mime_types = self::mla_get_attachment_mime_types();
963
  $avail_post_mime_types = $this->_avail_mime_types( $_num_posts );
964
  $matches = wp_match_mime_types( array_keys( $post_mime_types ), array_keys( $_num_posts ) );
965
 
999
  'post_mime_type' => $mime_type
1000
  ), $base_url ) . "'$class>" . sprintf( translate_nooped_plural( $label[ 2 ], $num_posts[ $mime_type ] ), number_format_i18n( $num_posts[ $mime_type ] ) ) . '</a>';
1001
  }
1002
+ } // foreach post_mime_type
1003
 
1004
  $type_links['detached'] = '<a href="' . add_query_arg( array(
1005
  'detached' => '1'
1029
  $actions['restore'] = 'Restore';
1030
  $actions['delete'] = 'Delete Permanently';
1031
  } else {
1032
+ $actions['edit'] = 'Edit';
1033
  // $actions['attach'] = 'Attach';
1034
 
1035
  if ( EMPTY_TRASH_DAYS && MEDIA_TRASH )
1166
  echo parent::single_row_columns( $item );
1167
  echo '</tr>';
1168
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1169
  } // class MLA_List_Table
1170
 
1171
  /*
includes/class-mla-main.php CHANGED
@@ -38,7 +38,7 @@ class MLA {
38
  *
39
  * @var string
40
  */
41
- const CURRENT_MLA_VERSION = '0.30';
42
 
43
  /**
44
  * Minimum version of PHP required for this plugin
@@ -112,6 +112,60 @@ class MLA {
112
  */
113
  const ADMIN_PAGE_SLUG = 'mla-menu';
114
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  /**
116
  * Holds screen ids to match help text to corresponding screen
117
  *
@@ -161,7 +215,7 @@ class MLA {
161
  * @return void
162
  */
163
  public static function mla_admin_enqueue_scripts_action( $page_hook ) {
164
- if ( 'media_page_mla-menu' != $page_hook )
165
  return;
166
 
167
  wp_register_style( self::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style.css', false, self::CURRENT_MLA_VERSION );
@@ -182,6 +236,9 @@ class MLA {
182
  wp_enqueue_script( self::JAVASCRIPT_INLINE_EDIT_SLUG, MLA_PLUGIN_URL . "js/mla-inline-edit-scripts{$suffix}.js",
183
  array( 'wp-lists', 'suggest', 'jquery' ), self::CURRENT_MLA_VERSION, false );
184
  $script_variables = array(
 
 
 
185
  'comma' => _x( ',', 'tag delimiter' ),
186
  'ajax_action' => self::JAVASCRIPT_INLINE_EDIT_SLUG,
187
  'ajax_nonce' => wp_create_nonce( self::MLA_ADMIN_NONCE )
@@ -280,60 +337,6 @@ class MLA {
280
  return $value;
281
  }
282
 
283
- /**
284
- * Action name; uniquely identifies the nonce
285
- *
286
- * @since 0.1
287
- *
288
- * @var string
289
- */
290
- const MLA_ADMIN_NONCE = 'mla_admin';
291
-
292
- /**
293
- * mla_admin_action value for permanently deleting a single item
294
- *
295
- * @since 0.1
296
- *
297
- * @var string
298
- */
299
- const MLA_ADMIN_SINGLE_DELETE = 'single_item_delete';
300
-
301
- /**
302
- * mla_admin_action value for displaying a single item
303
- *
304
- * @since 0.1
305
- *
306
- * @var string
307
- */
308
- const MLA_ADMIN_SINGLE_EDIT_DISPLAY = 'single_item_edit_display';
309
-
310
- /**
311
- * mla_admin_action value for updating a single item
312
- *
313
- * @since 0.1
314
- *
315
- * @var string
316
- */
317
- const MLA_ADMIN_SINGLE_EDIT_UPDATE = 'single_item_edit_update';
318
-
319
- /**
320
- * mla_admin_action value for restoring a single item from the trash
321
- *
322
- * @since 0.1
323
- *
324
- * @var string
325
- */
326
- const MLA_ADMIN_SINGLE_RESTORE = 'single_item_restore';
327
-
328
- /**
329
- * mla_admin_action value for moving a single item to the trash
330
- *
331
- * @since 0.1
332
- *
333
- * @var string
334
- */
335
- const MLA_ADMIN_SINGLE_TRASH = 'single_item_trash';
336
-
337
  /**
338
  * Redirect to the Edit Tags/Categories page
339
  *
@@ -397,7 +400,7 @@ class MLA {
397
  break;
398
  default:
399
  $tax_object = get_taxonomy( $taxonomy );
400
- error_log('mla_add_help_tab $tax_object = ' . var_export($tax_object, true), 0);
401
  if ( $tax_object->hierarchical )
402
  $file_suffix = 'edit-hierarchical-taxonomy';
403
  else
@@ -431,7 +434,7 @@ class MLA {
431
  'content' => $content
432
  );
433
  } else {
434
- // error_log('mla_add_help_tab discarding '.var_export($id, true), 0);
435
  }
436
  }
437
 
@@ -486,8 +489,6 @@ class MLA {
486
  * @return void
487
  */
488
  public static function mla_render_admin_page( ) {
489
- // error_log('mla_render_admin_page $_REQUEST = ' . var_export($_REQUEST, true), 0);
490
-
491
  $bulk_action = self::_current_bulk_action();
492
 
493
  echo "<div class=\"wrap\">\r\n";
@@ -529,7 +530,16 @@ class MLA {
529
  case 'delete':
530
  $item_content = self::_delete_single_item( $post_id );
531
  break;
532
- //case 'edit':
 
 
 
 
 
 
 
 
 
533
  case 'restore':
534
  $item_content = self::_restore_single_item( $post_id );
535
  break;
@@ -593,7 +603,7 @@ class MLA {
593
 
594
  if ( !empty( $page_content['body'] ) ) {
595
  if ( !empty( $page_content['message'] ) ) {
596
- echo " <div style=\"background:#ECECEC;border:1px solid #CCC;padding:0 10px;margin-top:5px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;\"><p>\r\n";
597
  echo ' ' . $page_content['message'] . "\r\n";
598
  echo " </p></div>\r\n"; // id="message"
599
  }
@@ -620,7 +630,7 @@ class MLA {
620
  echo "</h2>\r\n";
621
 
622
  if ( !empty( $page_content['message'] ) ) {
623
- echo " <div style=\"background:#ECECEC;border:1px solid #CCC;padding:0 10px;margin-top:5px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;\"><p>\r\n";
624
  echo ' ' . $page_content['message'] . "\r\n";
625
  echo " </p></div>\r\n"; // id="message"
626
  }
@@ -652,9 +662,6 @@ class MLA {
652
  if ( isset( $_REQUEST['m'] ) ) // filter by date
653
  echo sprintf( '<input type="hidden" name="m" value="%1$s" />', $_REQUEST['m'] ) . "\r\n";
654
 
655
- if ( isset( $_REQUEST['mla_filter_term'] ) ) // filter by taxonomy term
656
- echo sprintf( '<input type="hidden" name="att_cat" value="%1$s" />', $_REQUEST['mla_filter_term'] ) . "\r\n";
657
-
658
  // Now we can render the completed list table
659
  $MLAListTable->display();
660
  echo "</form><!-- id=mla-filter -->\r\n";
@@ -779,38 +786,53 @@ class MLA {
779
  /*
780
  * The middle column contains the hierarchical taxonomies, e.g., Attachment Category
781
  */
782
- $middle_column = '';
 
783
 
784
  if ( count( $hierarchical_taxonomies ) ) {
785
- $category_blocks = '';
 
786
 
787
  foreach ( $hierarchical_taxonomies as $tax_name => $tax_object ) {
788
- ob_start();
789
- wp_terms_checklist( NULL, array( 'taxonomy' => $tax_name ) );
790
- $tax_checklist = ob_get_contents();
791
- ob_end_clean();
792
-
793
- $page_values = array(
794
- 'tax_html' => esc_html( $tax_object->labels->name ),
795
- 'tax_attr' => esc_attr( $tax_name ),
796
- 'tax_checklist' => $tax_checklist
797
- );
798
- $category_blocks .= MLAData::mla_parse_template( $page_template_array['category_block'], $page_values );
 
 
 
 
 
 
799
  } // foreach $hierarchical_taxonomies
800
 
801
  $page_values = array(
802
- 'category_blocks' => $category_blocks
 
 
 
 
 
803
  );
804
- $middle_column = MLAData::mla_parse_template( $page_template_array['category_fieldset'], $page_values );
805
  } // count( $hierarchical_taxonomies )
806
 
807
  /*
808
  * The right-hand column contains the flat taxonomies, e.g., Attachment Tag
809
  */
810
- $right_column = '';
 
811
 
812
  if ( count( $flat_taxonomies ) ) {
813
- $tag_blocks = '';
 
814
 
815
  foreach ( $flat_taxonomies as $tax_name => $tax_object ) {
816
  if ( current_user_can( $tax_object->cap->assign_terms ) ) {
@@ -818,21 +840,32 @@ class MLA {
818
  'tax_html' => esc_html( $tax_object->labels->name ),
819
  'tax_attr' => esc_attr( $tax_name )
820
  );
821
- $tag_blocks .= MLAData::mla_parse_template( $page_template_array['tag_block'], $page_values );
822
- }
 
 
 
 
823
  } // foreach $flat_taxonomies
824
 
825
  $page_values = array(
826
- 'tag_blocks' => $tag_blocks
 
 
 
 
 
827
  );
828
- $right_column = MLAData::mla_parse_template( $page_template_array['tag_fieldset'], $page_values );
829
  } // count( $flat_taxonomies )
830
 
831
  $page_values = array(
832
  'colspan' => count( $MLAListTable->get_columns() ),
833
  'authors' => $authors_dropdown,
834
- 'middle_column' => $middle_column,
835
- 'right_column' => $right_column,
 
 
836
  );
837
  $page_template = MLAData::mla_parse_template( $page_template_array['page'], $page_values );
838
  return $page_template;
@@ -975,9 +1008,7 @@ class MLA {
975
  $image_meta = '';
976
  }
977
 
978
- if ( array(
979
- $page_template_array
980
- ) ) {
981
  $page_template = $page_template_array['page'];
982
  $authors_template = $page_template_array['authors'];
983
  $postbox_template = $page_template_array['postbox'];
@@ -1066,9 +1097,6 @@ class MLA {
1066
  else
1067
  $view_args = '';
1068
 
1069
- if ( isset( $_REQUEST['mla_filter_term'] ) )
1070
- $view_args .= sprintf( '<input type="hidden" name="att_cat" value="%1$s" />', $_REQUEST['mla_filter_term'] ) . "\r\n";
1071
-
1072
  if ( isset( $_REQUEST['paged'] ) )
1073
  $view_args .= sprintf( '<input type="hidden" name="paged" value="%1$s" />', $_REQUEST['paged'] ) . "\r\n";
1074
 
@@ -1081,7 +1109,7 @@ class MLA {
1081
  if ( $tax_object->hierarchical && $tax_object->show_ui ) {
1082
  $box = array(
1083
  'id' => $tax_name . 'div',
1084
- 'title' => $tax_object->labels->name,
1085
  'callback' => 'categories_meta_box',
1086
  'args' => array(
1087
  'taxonomy' => $tax_name
@@ -1092,7 +1120,7 @@ class MLA {
1092
  } elseif ( $tax_object->show_ui ) {
1093
  $box = array(
1094
  'id' => 'tagsdiv-' . $tax_name,
1095
- 'title' => $tax_object->labels->name,
1096
  'callback' => 'post_tags_meta_box',
1097
  'args' => array(
1098
  'taxonomy' => $tax_name
@@ -1108,19 +1136,27 @@ class MLA {
1108
  }
1109
 
1110
  $page_values = array(
 
 
 
 
 
 
1111
  'attachment_icon' => wp_get_attachment_image( $post_id, array( 160, 120 ), true ),
1112
- 'file_name' => $post_data['mla_references']['file'],
1113
  'width' => $width,
1114
  'height' => $height,
1115
  'post_title_attr' => esc_attr( $post_data['post_title'] ),
1116
  'post_name_attr' => esc_attr( $post_data['post_name'] ),
 
1117
  'post_excerpt_attr' => esc_attr( $post_data['post_excerpt'] ),
1118
- 'image_meta' => $image_meta,
 
1119
  'parent_info' => esc_attr( $parent_info ),
1120
  'guid_attr' => esc_attr( $post_data['guid'] ),
1121
  'authors' => $authors,
1122
- 'features' => $features,
1123
- 'inserts' => $inserts,
1124
  'mla_admin_action' => self::MLA_ADMIN_SINGLE_EDIT_UPDATE,
1125
  'form_url' => admin_url( 'upload.php' ) . '?page=' . self::ADMIN_PAGE_SLUG . $url_args,
1126
  'view_args' => $view_args,
@@ -1132,7 +1168,6 @@ class MLA {
1132
  $page_values['image_alt_attr'] = esc_attr( $post_data['mla_wp_attachment_image_alt'] );
1133
  }
1134
 
1135
- $page_template = MLAData::mla_parse_template( $page_template, $post_data );
1136
  return array(
1137
  'message' => '',
1138
  'body' => MLAData::mla_parse_template( $page_template, $page_values )
@@ -1147,13 +1182,12 @@ class MLA {
1147
  *
1148
  * @param int The ID of the attachment to be updated
1149
  * @param array Field name => value pairs
1150
- * @param array Attachment Category and Tag values
 
1151
  *
1152
  * @return array success/failure message and NULL content
1153
  */
1154
- private static function _update_single_item( $post_id, $new_data, $tax_input = NULL ) {
1155
- // error_log('_update_single_item $tax_input = ' . var_export($tax_input, true), 0);
1156
-
1157
  $post_data = MLAData::mla_get_attachment_by_id( $post_id );
1158
 
1159
  if ( !isset( $post_data ) )
@@ -1164,22 +1198,23 @@ class MLA {
1164
 
1165
  $message = '';
1166
  $updates = array( 'ID' => $post_id );
1167
-
1168
  $new_data = stripslashes_deep( $new_data );
1169
- // error_log('after stripslashes_deep, $new_data = ' . var_export($new_data, true), 0);
1170
 
1171
  foreach ( $new_data as $key => $value ) {
1172
  switch ( $key ) {
1173
  case 'post_title':
1174
  if ( $value == $post_data[ $key ] )
1175
  break;
1176
- $message .= sprintf( 'Changing Title from "%1$s" to "%2$s"<br>', $post_data[ $key ], $value );
 
1177
  $updates[ $key ] = $value;
1178
  break;
1179
  case 'post_name':
1180
  if ( $value == $post_data[ $key ] )
1181
  break;
1182
 
 
 
1183
  /*
1184
  * Make sure new slug is unique
1185
  */
@@ -1194,7 +1229,7 @@ class MLA {
1194
  if ( $my_posts ) {
1195
  $message .= sprintf( 'ERROR: Could not change Name/Slug "%1$s"; name already exists<br>', $value );
1196
  } else {
1197
- $message .= sprintf( 'Changing Name/Slug from "%1$s" to "%2$s"<br>', $post_data[ $key ], $value );
1198
  $updates[ $key ] = $value;
1199
  }
1200
  break;
@@ -1208,37 +1243,45 @@ class MLA {
1208
 
1209
  if ( empty( $value ) ) {
1210
  if ( delete_post_meta( $post_id, '_wp_attachment_image_alt', $value ) )
1211
- $message .= sprintf( 'Deleting Alternate Text, was "%1$s"<br>', $post_data[ $key ] );
1212
  else
1213
- $message .= sprintf( 'ERROR: Could not delete Alternate Text, remains "%1$s"<br>', $post_data[ $key ] );
1214
  } else {
1215
  if ( update_post_meta( $post_id, '_wp_attachment_image_alt', $value ) )
1216
- $message .= sprintf( 'Changing Alternate Text from "%1$s" to "%2$s"<br>', $post_data[ $key ], $value );
1217
  else
1218
- $message .= sprintf( 'ERROR: Could not change Alternate Text from "%1$s" to "%2$s"<br>', $post_data[ $key ], $value );
1219
  }
1220
  break;
1221
  case 'post_excerpt':
1222
  if ( $value == $post_data[ $key ] )
1223
  break;
1224
- $message .= sprintf( 'Changing Caption from "%1$s" to "%2$s"<br>', $post_data[ $key ], $value );
 
1225
  $updates[ $key ] = $value;
1226
  break;
1227
  case 'post_content':
1228
  if ( $value == $post_data[ $key ] )
1229
  break;
1230
- $message .= sprintf( 'Changing Description from "%1$s" to "%2$s"<br>', $post_data[ $key ], $value );
 
1231
  $updates[ $key ] = $value;
1232
  break;
1233
  case 'post_parent':
1234
  if ( $value == $post_data[ $key ] )
1235
  break;
 
 
 
1236
  $message .= sprintf( 'Changing Parent from "%1$s" to "%2$s"<br>', $post_data[ $key ], $value );
1237
  $updates[ $key ] = $value;
1238
  break;
1239
  case 'post_author':
1240
  if ( $value == $post_data[ $key ] )
1241
  break;
 
 
 
1242
  $from_user = get_userdata( $post_data[ $key ] );
1243
  $to_user = get_userdata( $value );
1244
  $message .= sprintf( 'Changing Author from "%1$s" to "%2$s"<br>', $from_user->display_name, $to_user->display_name );
@@ -1251,25 +1294,51 @@ class MLA {
1251
 
1252
  if ( !empty( $tax_input ) ) {
1253
  foreach ( $tax_input as $taxonomy => $tags ) {
1254
- $taxonomy_obj = get_taxonomy( $taxonomy );
1255
- $terms_before = wp_get_post_terms( $post_id, $taxonomy, array(
1256
- "fields" => "all"
1257
- ) );
1258
- if ( is_array( $tags ) ) // array = hierarchical, string = non-hierarchical.
1259
- $tags = array_filter( $tags );
1260
-
1261
- if ( current_user_can( $taxonomy_obj->cap->assign_terms ) ) {
1262
- $result = wp_set_post_terms( $post_id, $tags, $taxonomy );
1263
- }
1264
-
1265
- $terms_after = wp_get_post_terms( $post_id, $taxonomy, array(
1266
- "fields" => "all"
1267
- ) );
1268
-
1269
- if ( $terms_before != $terms_after )
1270
- $message .= sprintf( 'Changing "%1$s" terms<br>', $taxonomy );
1271
- }
1272
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1273
 
1274
  if ( empty( $message ) )
1275
  return array(
@@ -1290,6 +1359,50 @@ class MLA {
1290
  }
1291
  }
1292
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1293
  /**
1294
  * Restore a single item from the Trash
1295
  *
38
  *
39
  * @var string
40
  */
41
+ const CURRENT_MLA_VERSION = '0.40';
42
 
43
  /**
44
  * Minimum version of PHP required for this plugin
112
  */
113
  const ADMIN_PAGE_SLUG = 'mla-menu';
114
 
115
+ /**
116
+ * Action name; uniquely identifies the nonce
117
+ *
118
+ * @since 0.1
119
+ *
120
+ * @var string
121
+ */
122
+ const MLA_ADMIN_NONCE = 'mla_admin';
123
+
124
+ /**
125
+ * mla_admin_action value for permanently deleting a single item
126
+ *
127
+ * @since 0.1
128
+ *
129
+ * @var string
130
+ */
131
+ const MLA_ADMIN_SINGLE_DELETE = 'single_item_delete';
132
+
133
+ /**
134
+ * mla_admin_action value for displaying a single item
135
+ *
136
+ * @since 0.1
137
+ *
138
+ * @var string
139
+ */
140
+ const MLA_ADMIN_SINGLE_EDIT_DISPLAY = 'single_item_edit_display';
141
+
142
+ /**
143
+ * mla_admin_action value for updating a single item
144
+ *
145
+ * @since 0.1
146
+ *
147
+ * @var string
148
+ */
149
+ const MLA_ADMIN_SINGLE_EDIT_UPDATE = 'single_item_edit_update';
150
+
151
+ /**
152
+ * mla_admin_action value for restoring a single item from the trash
153
+ *
154
+ * @since 0.1
155
+ *
156
+ * @var string
157
+ */
158
+ const MLA_ADMIN_SINGLE_RESTORE = 'single_item_restore';
159
+
160
+ /**
161
+ * mla_admin_action value for moving a single item to the trash
162
+ *
163
+ * @since 0.1
164
+ *
165
+ * @var string
166
+ */
167
+ const MLA_ADMIN_SINGLE_TRASH = 'single_item_trash';
168
+
169
  /**
170
  * Holds screen ids to match help text to corresponding screen
171
  *
215
  * @return void
216
  */
217
  public static function mla_admin_enqueue_scripts_action( $page_hook ) {
218
+ if ( ( 'media_page_mla-menu' != $page_hook ) && ( 'settings_page_mla-settings-menu' != $page_hook ) )
219
  return;
220
 
221
  wp_register_style( self::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style.css', false, self::CURRENT_MLA_VERSION );
236
  wp_enqueue_script( self::JAVASCRIPT_INLINE_EDIT_SLUG, MLA_PLUGIN_URL . "js/mla-inline-edit-scripts{$suffix}.js",
237
  array( 'wp-lists', 'suggest', 'jquery' ), self::CURRENT_MLA_VERSION, false );
238
  $script_variables = array(
239
+ 'error' => 'Error while saving the changes.',
240
+ 'ntdeltitle' => 'Remove From Bulk Edit',
241
+ 'notitle' => '(no title)',
242
  'comma' => _x( ',', 'tag delimiter' ),
243
  'ajax_action' => self::JAVASCRIPT_INLINE_EDIT_SLUG,
244
  'ajax_nonce' => wp_create_nonce( self::MLA_ADMIN_NONCE )
337
  return $value;
338
  }
339
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
340
  /**
341
  * Redirect to the Edit Tags/Categories page
342
  *
400
  break;
401
  default:
402
  $tax_object = get_taxonomy( $taxonomy );
403
+
404
  if ( $tax_object->hierarchical )
405
  $file_suffix = 'edit-hierarchical-taxonomy';
406
  else
434
  'content' => $content
435
  );
436
  } else {
437
+ error_log( 'ERROR: mla_add_help_tab discarding '.var_export( $id, true ), 0 );
438
  }
439
  }
440
 
489
  * @return void
490
  */
491
  public static function mla_render_admin_page( ) {
 
 
492
  $bulk_action = self::_current_bulk_action();
493
 
494
  echo "<div class=\"wrap\">\r\n";
530
  case 'delete':
531
  $item_content = self::_delete_single_item( $post_id );
532
  break;
533
+ case 'edit':
534
+ $new_data = array ( ) ;
535
+ if ( ! empty( $_REQUEST['post_parent'] ) )
536
+ $new_data['post_parent'] = $_REQUEST['post_parent'];
537
+
538
+ if ( ! empty( $_REQUEST['post_author'] ) )
539
+ $new_data['post_author'] = $_REQUEST['post_author'];
540
+
541
+ $item_content = self::_update_single_item( $post_id, $new_data, $_REQUEST['tax_input'], $_REQUEST['tax_action'] );
542
+ break;
543
  case 'restore':
544
  $item_content = self::_restore_single_item( $post_id );
545
  break;
603
 
604
  if ( !empty( $page_content['body'] ) ) {
605
  if ( !empty( $page_content['message'] ) ) {
606
+ echo " <div class=\"mla_messages\"><p>\r\n";
607
  echo ' ' . $page_content['message'] . "\r\n";
608
  echo " </p></div>\r\n"; // id="message"
609
  }
630
  echo "</h2>\r\n";
631
 
632
  if ( !empty( $page_content['message'] ) ) {
633
+ echo " <div class=\"mla_messages\"><p>\r\n";
634
  echo ' ' . $page_content['message'] . "\r\n";
635
  echo " </p></div>\r\n"; // id="message"
636
  }
662
  if ( isset( $_REQUEST['m'] ) ) // filter by date
663
  echo sprintf( '<input type="hidden" name="m" value="%1$s" />', $_REQUEST['m'] ) . "\r\n";
664
 
 
 
 
665
  // Now we can render the completed list table
666
  $MLAListTable->display();
667
  echo "</form><!-- id=mla-filter -->\r\n";
786
  /*
787
  * The middle column contains the hierarchical taxonomies, e.g., Attachment Category
788
  */
789
+ $quick_middle_column = '';
790
+ $bulk_middle_column = '';
791
 
792
  if ( count( $hierarchical_taxonomies ) ) {
793
+ $quick_category_blocks = '';
794
+ $bulk_category_blocks = '';
795
 
796
  foreach ( $hierarchical_taxonomies as $tax_name => $tax_object ) {
797
+ if ( current_user_can( $tax_object->cap->assign_terms ) ) {
798
+ ob_start();
799
+ wp_terms_checklist( NULL, array( 'taxonomy' => $tax_name ) );
800
+ $tax_checklist = ob_get_contents();
801
+ ob_end_clean();
802
+
803
+ $page_values = array(
804
+ 'tax_html' => esc_html( $tax_object->labels->name ),
805
+ 'tax_attr' => esc_attr( $tax_name ),
806
+ 'tax_checklist' => $tax_checklist
807
+ );
808
+ $category_block = MLAData::mla_parse_template( $page_template_array['category_block'], $page_values );
809
+ $taxonomy_options = MLAData::mla_parse_template( $page_template_array['taxonomy_options'], $page_values );
810
+
811
+ $quick_category_blocks .= $category_block;
812
+ $bulk_category_blocks .= $category_block . $taxonomy_options;
813
+ } // current_user_can
814
  } // foreach $hierarchical_taxonomies
815
 
816
  $page_values = array(
817
+ 'category_blocks' => $quick_category_blocks
818
+ );
819
+ $quick_middle_column = MLAData::mla_parse_template( $page_template_array['category_fieldset'], $page_values );
820
+
821
+ $page_values = array(
822
+ 'category_blocks' => $bulk_category_blocks
823
  );
824
+ $bulk_middle_column = MLAData::mla_parse_template( $page_template_array['category_fieldset'], $page_values );
825
  } // count( $hierarchical_taxonomies )
826
 
827
  /*
828
  * The right-hand column contains the flat taxonomies, e.g., Attachment Tag
829
  */
830
+ $quick_right_column = '';
831
+ $bulk_right_column = '';
832
 
833
  if ( count( $flat_taxonomies ) ) {
834
+ $quick_tag_blocks = '';
835
+ $bulk_tag_blocks = '';
836
 
837
  foreach ( $flat_taxonomies as $tax_name => $tax_object ) {
838
  if ( current_user_can( $tax_object->cap->assign_terms ) ) {
840
  'tax_html' => esc_html( $tax_object->labels->name ),
841
  'tax_attr' => esc_attr( $tax_name )
842
  );
843
+ $tag_block = MLAData::mla_parse_template( $page_template_array['tag_block'], $page_values );
844
+ $taxonomy_options = MLAData::mla_parse_template( $page_template_array['taxonomy_options'], $page_values );
845
+
846
+ $quick_tag_blocks .= $tag_block;
847
+ $bulk_tag_blocks .= $tag_block . $taxonomy_options;
848
+ } // current_user_can
849
  } // foreach $flat_taxonomies
850
 
851
  $page_values = array(
852
+ 'tag_blocks' => $quick_tag_blocks
853
+ );
854
+ $quick_right_column = MLAData::mla_parse_template( $page_template_array['tag_fieldset'], $page_values );
855
+
856
+ $page_values = array(
857
+ 'tag_blocks' => $bulk_tag_blocks
858
  );
859
+ $bulk_right_column = MLAData::mla_parse_template( $page_template_array['tag_fieldset'], $page_values );
860
  } // count( $flat_taxonomies )
861
 
862
  $page_values = array(
863
  'colspan' => count( $MLAListTable->get_columns() ),
864
  'authors' => $authors_dropdown,
865
+ 'quick_middle_column' => $quick_middle_column,
866
+ 'quick_right_column' => $quick_right_column,
867
+ 'bulk_middle_column' => $bulk_middle_column,
868
+ 'bulk_right_column' => $bulk_right_column,
869
  );
870
  $page_template = MLAData::mla_parse_template( $page_template_array['page'], $page_values );
871
  return $page_template;
1008
  $image_meta = '';
1009
  }
1010
 
1011
+ if ( array( $page_template_array ) ) {
 
 
1012
  $page_template = $page_template_array['page'];
1013
  $authors_template = $page_template_array['authors'];
1014
  $postbox_template = $page_template_array['postbox'];
1097
  else
1098
  $view_args = '';
1099
 
 
 
 
1100
  if ( isset( $_REQUEST['paged'] ) )
1101
  $view_args .= sprintf( '<input type="hidden" name="paged" value="%1$s" />', $_REQUEST['paged'] ) . "\r\n";
1102
 
1109
  if ( $tax_object->hierarchical && $tax_object->show_ui ) {
1110
  $box = array(
1111
  'id' => $tax_name . 'div',
1112
+ 'title' => esc_html( $tax_object->labels->name ),
1113
  'callback' => 'categories_meta_box',
1114
  'args' => array(
1115
  'taxonomy' => $tax_name
1120
  } elseif ( $tax_object->show_ui ) {
1121
  $box = array(
1122
  'id' => 'tagsdiv-' . $tax_name,
1123
+ 'title' => esc_html( $tax_object->labels->name ),
1124
  'callback' => 'post_tags_meta_box',
1125
  'args' => array(
1126
  'taxonomy' => $tax_name
1136
  }
1137
 
1138
  $page_values = array(
1139
+ 'ID' => $post_data['ID'],
1140
+ 'post_mime_type' => $post_data['post_mime_type'],
1141
+ 'menu_order' => $post_data['menu_order'],
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,
1148
  'height' => $height,
1149
  'post_title_attr' => esc_attr( $post_data['post_title'] ),
1150
  'post_name_attr' => esc_attr( $post_data['post_name'] ),
1151
+ 'image_alt_attr' => '',
1152
  'post_excerpt_attr' => esc_attr( $post_data['post_excerpt'] ),
1153
+ 'post_content' => esc_textarea( $post_data['post_content'] ),
1154
+ 'image_meta' => esc_textarea( $image_meta ),
1155
  'parent_info' => esc_attr( $parent_info ),
1156
  'guid_attr' => esc_attr( $post_data['guid'] ),
1157
  'authors' => $authors,
1158
+ 'features' => esc_textarea( $features ),
1159
+ 'inserts' => esc_textarea( $inserts ),
1160
  'mla_admin_action' => self::MLA_ADMIN_SINGLE_EDIT_UPDATE,
1161
  'form_url' => admin_url( 'upload.php' ) . '?page=' . self::ADMIN_PAGE_SLUG . $url_args,
1162
  'view_args' => $view_args,
1168
  $page_values['image_alt_attr'] = esc_attr( $post_data['mla_wp_attachment_image_alt'] );
1169
  }
1170
 
 
1171
  return array(
1172
  'message' => '',
1173
  'body' => MLAData::mla_parse_template( $page_template, $page_values )
1182
  *
1183
  * @param int The ID of the attachment to be updated
1184
  * @param array Field name => value pairs
1185
+ * @param array Taxonomy term values
1186
+ * @param array Taxonomy actions (add, remove, replace)
1187
  *
1188
  * @return array success/failure message and NULL content
1189
  */
1190
+ private static function _update_single_item( $post_id, $new_data, $tax_input = NULL, $tax_actions = NULL ) {
 
 
1191
  $post_data = MLAData::mla_get_attachment_by_id( $post_id );
1192
 
1193
  if ( !isset( $post_data ) )
1198
 
1199
  $message = '';
1200
  $updates = array( 'ID' => $post_id );
 
1201
  $new_data = stripslashes_deep( $new_data );
 
1202
 
1203
  foreach ( $new_data as $key => $value ) {
1204
  switch ( $key ) {
1205
  case 'post_title':
1206
  if ( $value == $post_data[ $key ] )
1207
  break;
1208
+
1209
+ $message .= sprintf( 'Changing Title from "%1$s" to "%2$s"<br>', esc_attr( $post_data[ $key ] ), esc_attr( $value ) );
1210
  $updates[ $key ] = $value;
1211
  break;
1212
  case 'post_name':
1213
  if ( $value == $post_data[ $key ] )
1214
  break;
1215
 
1216
+ $value = sanitize_title( $value );
1217
+
1218
  /*
1219
  * Make sure new slug is unique
1220
  */
1229
  if ( $my_posts ) {
1230
  $message .= sprintf( 'ERROR: Could not change Name/Slug "%1$s"; name already exists<br>', $value );
1231
  } else {
1232
+ $message .= sprintf( 'Changing Name/Slug from "%1$s" to "%2$s"<br>', esc_attr( $post_data[ $key ] ), $value );
1233
  $updates[ $key ] = $value;
1234
  }
1235
  break;
1243
 
1244
  if ( empty( $value ) ) {
1245
  if ( delete_post_meta( $post_id, '_wp_attachment_image_alt', $value ) )
1246
+ $message .= sprintf( 'Deleting Alternate Text, was "%1$s"<br>', esc_attr( $post_data[ $key ] ) );
1247
  else
1248
+ $message .= sprintf( 'ERROR: Could not delete Alternate Text, remains "%1$s"<br>', esc_attr( $post_data[ $key ] ) );
1249
  } else {
1250
  if ( update_post_meta( $post_id, '_wp_attachment_image_alt', $value ) )
1251
+ $message .= sprintf( 'Changing Alternate Text from "%1$s" to "%2$s"<br>', esc_attr( $post_data[ $key ] ), esc_attr( $value ) );
1252
  else
1253
+ $message .= sprintf( 'ERROR: Could not change Alternate Text from "%1$s" to "%2$s"<br>', esc_attr( $post_data[ $key ] ), esc_attr( $value ) );
1254
  }
1255
  break;
1256
  case 'post_excerpt':
1257
  if ( $value == $post_data[ $key ] )
1258
  break;
1259
+
1260
+ $message .= sprintf( 'Changing Caption from "%1$s" to "%2$s"<br>', esc_attr( $post_data[ $key ] ), esc_attr( $value ) );
1261
  $updates[ $key ] = $value;
1262
  break;
1263
  case 'post_content':
1264
  if ( $value == $post_data[ $key ] )
1265
  break;
1266
+
1267
+ $message .= sprintf( 'Changing Description from "%1$s" to "%2$s"<br>', esc_textarea( $post_data[ $key ] ), esc_textarea( $value ) );
1268
  $updates[ $key ] = $value;
1269
  break;
1270
  case 'post_parent':
1271
  if ( $value == $post_data[ $key ] )
1272
  break;
1273
+
1274
+ $value = absint( $value );
1275
+
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;
1282
+
1283
+ $value = absint( $value );
1284
+
1285
  $from_user = get_userdata( $post_data[ $key ] );
1286
  $to_user = get_userdata( $value );
1287
  $message .= sprintf( 'Changing Author from "%1$s" to "%2$s"<br>', $from_user->display_name, $to_user->display_name );
1294
 
1295
  if ( !empty( $tax_input ) ) {
1296
  foreach ( $tax_input as $taxonomy => $tags ) {
1297
+ if ( !empty( $tax_actions ) )
1298
+ $tax_action = $tax_actions[ $taxonomy ];
1299
+ else
1300
+ $tax_action = 'replace';
1301
+
1302
+ $taxonomy_obj = get_taxonomy( $taxonomy );
1303
+
1304
+ if ( current_user_can( $taxonomy_obj->cap->assign_terms ) ) {
1305
+ $terms_before = wp_get_post_terms( $post_id, $taxonomy, array(
1306
+ 'fields' => 'ids' // all'
1307
+ ) );
1308
+ if ( is_array( $tags ) ) // array = hierarchical, string = non-hierarchical.
1309
+ $tags = array_filter( $tags );
1310
+
1311
+ switch ( $tax_action ) {
1312
+ case 'add':
1313
+ $action_name = 'Adding';
1314
+ $result = wp_set_post_terms( $post_id, $tags, $taxonomy, true );
1315
+ break;
1316
+ case 'remove':
1317
+ $action_name = 'Removing';
1318
+ $tags = self::_remove_tags( $terms_before, $tags, $taxonomy_obj );
1319
+ $result = wp_set_post_terms( $post_id, $tags, $taxonomy );
1320
+ break;
1321
+ case 'replace':
1322
+ $action_name = 'Replacing';
1323
+ $result = wp_set_post_terms( $post_id, $tags, $taxonomy );
1324
+ break;
1325
+ default:
1326
+ $action_name = 'Ignoring';
1327
+ // ignore anything else
1328
+ }
1329
+
1330
+ $terms_after = wp_get_post_terms( $post_id, $taxonomy, array(
1331
+ 'fields' => 'ids' // all'
1332
+ ) );
1333
+
1334
+ if ( $terms_before != $terms_after )
1335
+ $message .= sprintf( '%1$s "%2$s" terms<br>', $action_name, $taxonomy );
1336
+ } // current_user_can
1337
+ else {
1338
+ $message .= sprintf( 'You cannot assign "%1$s" terms<br>', $action_name, $taxonomy );
1339
+ }
1340
+ } // foreach $tax_input
1341
+ } // !empty $tax_input
1342
 
1343
  if ( empty( $message ) )
1344
  return array(
1359
  }
1360
  }
1361
 
1362
+ /**
1363
+ * Remove tags from a term ids list
1364
+ *
1365
+ * @since 0.40
1366
+ *
1367
+ * @param array The term ids currently assigned
1368
+ * @param array | string The term ids (array) or names (string) to remove
1369
+ * @param object The taxonomy object
1370
+ *
1371
+ * @return array Term ids of the surviving tags
1372
+ */
1373
+ private static function _remove_tags( $terms_before, $tags, $taxonomy_obj ) {
1374
+ if ( ! is_array( $tags ) ) {
1375
+ /*
1376
+ * Convert names to term ids
1377
+ */
1378
+ $comma = _x( ',', 'tag delimiter' );
1379
+ if ( ',' !== $comma )
1380
+ $tags = str_replace( $comma, ',', $tags );
1381
+ $terms = explode( ',', trim( $tags, " \n\t\r\0\x0B," ) );
1382
+
1383
+ $tags = array ( );
1384
+ foreach ( (array) $terms as $term) {
1385
+ if ( !strlen(trim($term)) )
1386
+ continue;
1387
+
1388
+ // Skip if a non-existent term name is passed.
1389
+ if ( ! $term_info = term_exists($term, $taxonomy_obj->name ) )
1390
+ continue;
1391
+
1392
+ if ( is_wp_error($term_info) )
1393
+ continue;
1394
+
1395
+ $tags[] = $term_info['term_id'];
1396
+ } // foreach term
1397
+ } // not an array
1398
+
1399
+ $tags = array_map( 'intval', $tags );
1400
+ $tags = array_unique( $tags );
1401
+ $terms_after = array_diff( array_map( 'intval', $terms_before ), $tags );
1402
+
1403
+ return $terms_after;
1404
+ }
1405
+
1406
  /**
1407
  * Restore a single item from the Trash
1408
  *
includes/class-mla-objects.php CHANGED
@@ -137,9 +137,7 @@ class MLAObjects {
137
  */
138
  public static function mla_taxonomy_column_filter( $place_holder, $column_name, $term_id ) {
139
  $screen = get_current_screen();
140
- // error_log('mla_taxonomy_column_filter $screen = ' . var_export($screen, true), 0);
141
  $tax_object = get_taxonomy( $screen->taxonomy );
142
- // error_log('mla_taxonomy_column_filter $tax_object = ' . var_export($tax_object, true), 0);
143
 
144
  $term = get_term( $term_id, $tax_object->name );
145
 
137
  */
138
  public static function mla_taxonomy_column_filter( $place_holder, $column_name, $term_id ) {
139
  $screen = get_current_screen();
 
140
  $tax_object = get_taxonomy( $screen->taxonomy );
 
141
 
142
  $term = get_term( $term_id, $tax_object->name );
143
 
includes/class-mla-settings.php CHANGED
@@ -14,6 +14,20 @@
14
  * @since 0.1
15
  */
16
  class MLASettings {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  /**
18
  * Provides a unique name for the settings page
19
  */
@@ -72,12 +86,22 @@ class MLASettings {
72
  'std' => 'checked',
73
  'help' => 'Check this option to add support for Attachment Tags.'),
74
 
 
 
 
 
 
 
 
 
 
 
75
  'taxonomy_heading' =>
76
  array('name' => 'Taxonomy Support',
77
  'type' => 'header'),
78
 
79
  'taxonomy_support' =>
80
- array('help' => 'Check the "Support" box to add the taxonomy to the Assistant.<br>Check the "Quick Edit" box to display the taxonomy in the Quick Edit panel.<br>Use the "List Filter" option to select the taxonomy on which to filter the Assistant table listing.',
81
  'std' => array (
82
  'tax_support' => array (
83
  'attachment_category' => 'checked',
@@ -145,6 +169,9 @@ class MLASettings {
145
  * @return void
146
  */
147
  public static function initialize( ) {
 
 
 
148
  add_action( 'admin_menu', 'MLASettings::mla_admin_menu_action' );
149
  self::_version_upgrade();
150
  }
@@ -188,6 +215,66 @@ class MLASettings {
188
  self::mla_update_option( self::MLA_VERSION_OPTION, MLA::CURRENT_MLA_VERSION );
189
  }
190
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
191
  /**
192
  * Add settings page in the "Settings" section,
193
  * add settings link in the Plugins section entry for MLA.
@@ -300,6 +387,7 @@ class MLASettings {
300
  'mla_admin_action' => MLA::MLA_ADMIN_SINGLE_EDIT_UPDATE,
301
  'page' => self::MLA_SETTINGS_SLUG,
302
  '_wpnonce' => wp_nonce_field( MLA::MLA_ADMIN_NONCE, '_wpnonce', true, false ),
 
303
  'phpDocs_url' => MLA_PLUGIN_URL . 'phpDocs/index.html'
304
  );
305
 
@@ -307,8 +395,10 @@ class MLASettings {
307
  * Check for submit buttons to change or reset settings.
308
  */
309
  if ( !empty( $_REQUEST['mla-options-save'] ) ) {
 
310
  $page_content = self::_save_settings( $page_template_array );
311
  } elseif ( !empty( $_REQUEST['mla-options-reset'] ) ) {
 
312
  $page_content = self::_reset_settings( $page_template_array );
313
  } else {
314
  $page_content = array(
@@ -586,7 +676,6 @@ class MLASettings {
586
  $message = '';
587
  break;
588
  case 'radio':
589
- error_log('self::mla_update_option ' . var_export($_REQUEST[ MLA_OPTION_PREFIX . $key ], true), 0 );
590
  self::mla_update_option( $key, $_REQUEST[ MLA_OPTION_PREFIX . $key ] );
591
  break;
592
  case 'select':
@@ -643,7 +732,7 @@ class MLASettings {
643
  }
644
 
645
  $page_content = array(
646
- 'message' => "<br>Settings saved.\r\n",
647
  'body' => ''
648
  );
649
 
14
  * @since 0.1
15
  */
16
  class MLASettings {
17
+ /**
18
+ * Provides a unique name for the ALT Text SQL VIEW
19
+ *
20
+ * @since 0.40
21
+ *
22
+ * @var array
23
+ */
24
+ public static $mla_alt_text_view = null;
25
+
26
+ /**
27
+ * Provides a unique suffix for the ALT Text SQL VIEW
28
+ */
29
+ const MLA_ALT_TEXT_VIEW_SUFFIX = 'alt_text_view';
30
+
31
  /**
32
  * Provides a unique name for the settings page
33
  */
86
  'std' => 'checked',
87
  'help' => 'Check this option to add support for Attachment Tags.'),
88
 
89
+ 'where_used_heading' =>
90
+ array('name' => 'Where-used Reporting',
91
+ 'type' => 'header'),
92
+
93
+ 'exclude_revisions' =>
94
+ array('name' => 'Exclude Revisions',
95
+ 'type' => 'checkbox',
96
+ 'std' => 'checked',
97
+ 'help' => 'Check this option to exclude revisions from where-used reporting.'),
98
+
99
  'taxonomy_heading' =>
100
  array('name' => 'Taxonomy Support',
101
  'type' => 'header'),
102
 
103
  'taxonomy_support' =>
104
+ array('help' => 'Check the "Support" box to add the taxonomy to the Assistant.<br>Check the "Inline Edit" box to display the taxonomy in the Quick Edit and Bulk Edit areas.<br>Use the "List Filter" option to select the taxonomy on which to filter the Assistant table listing.',
105
  'std' => array (
106
  'tax_support' => array (
107
  'attachment_category' => 'checked',
169
  * @return void
170
  */
171
  public static function initialize( ) {
172
+ global $table_prefix;
173
+
174
+ self::$mla_alt_text_view = $table_prefix . MLA_OPTION_PREFIX . self::MLA_ALT_TEXT_VIEW_SUFFIX;
175
  add_action( 'admin_menu', 'MLASettings::mla_admin_menu_action' );
176
  self::_version_upgrade();
177
  }
215
  self::mla_update_option( self::MLA_VERSION_OPTION, MLA::CURRENT_MLA_VERSION );
216
  }
217
 
218
+ /**
219
+ * Perform one-time actions on plugin activation
220
+ *
221
+ * Adds a view to the database to support sorting the listing on 'ALT Text'.
222
+ *
223
+ * @since 0.40
224
+ *
225
+ * @return void
226
+ */
227
+ public static function mla_activation_hook( ) {
228
+ global $wpdb, $table_prefix;
229
+
230
+ $view_name = $table_prefix . MLA_OPTION_PREFIX . self::MLA_ALT_TEXT_VIEW_SUFFIX;
231
+ $table_name = $table_prefix . 'postmeta';
232
+ $result = $wpdb->query(
233
+ $wpdb->prepare(
234
+ "
235
+ CREATE OR REPLACE VIEW {$view_name} AS
236
+ SELECT post_id, meta_value
237
+ FROM {$table_name}
238
+ WHERE {$table_name}.meta_key = '_wp_attachment_image_alt'
239
+ "
240
+ )
241
+ );
242
+ }
243
+
244
+ /**
245
+ * Perform one-time actions on plugin deactivation
246
+ *
247
+ * Removes a view from the database that supports sorting the listing on 'ALT Text'.
248
+ *
249
+ * @since 0.40
250
+ *
251
+ * @return void
252
+ */
253
+ public static function mla_deactivation_hook( ) {
254
+ global $wpdb, $table_prefix;
255
+
256
+ $view_name = $table_prefix . MLA_OPTION_PREFIX . self::MLA_ALT_TEXT_VIEW_SUFFIX;
257
+ $table_name = $table_prefix . 'postmeta';
258
+ $result = $wpdb->query(
259
+ $wpdb->prepare(
260
+ "
261
+ CREATE OR REPLACE VIEW {$view_name} AS
262
+ SELECT post_id, meta_value
263
+ FROM {$table_name}
264
+ WHERE {$table_name}.meta_key = '_wp_attachment_image_alt'
265
+ "
266
+ )
267
+ );
268
+
269
+ $result = $wpdb->query(
270
+ $wpdb->prepare(
271
+ "
272
+ DROP VIEW {self::$mla_alt_text_view}
273
+ "
274
+ )
275
+ );
276
+ }
277
+
278
  /**
279
  * Add settings page in the "Settings" section,
280
  * add settings link in the Plugins section entry for MLA.
387
  'mla_admin_action' => MLA::MLA_ADMIN_SINGLE_EDIT_UPDATE,
388
  'page' => self::MLA_SETTINGS_SLUG,
389
  '_wpnonce' => wp_nonce_field( MLA::MLA_ADMIN_NONCE, '_wpnonce', true, false ),
390
+ '_wp_http_referer' => wp_referer_field( false ),
391
  'phpDocs_url' => MLA_PLUGIN_URL . 'phpDocs/index.html'
392
  );
393
 
395
  * Check for submit buttons to change or reset settings.
396
  */
397
  if ( !empty( $_REQUEST['mla-options-save'] ) ) {
398
+ check_admin_referer( MLA::MLA_ADMIN_NONCE, '_wpnonce' );
399
  $page_content = self::_save_settings( $page_template_array );
400
  } elseif ( !empty( $_REQUEST['mla-options-reset'] ) ) {
401
+ check_admin_referer( MLA::MLA_ADMIN_NONCE, '_wpnonce' );
402
  $page_content = self::_reset_settings( $page_template_array );
403
  } else {
404
  $page_content = array(
676
  $message = '';
677
  break;
678
  case 'radio':
 
679
  self::mla_update_option( $key, $_REQUEST[ MLA_OPTION_PREFIX . $key ] );
680
  break;
681
  case 'select':
732
  }
733
 
734
  $page_content = array(
735
+ 'message' => "Settings saved.\r\n",
736
  'body' => ''
737
  );
738
 
includes/class-mla-shortcodes.php CHANGED
@@ -39,16 +39,28 @@ class MLAShortcodes {
39
  'organize_by'=>'title',
40
  ), $atts)); */
41
 
42
- $attachments = $wpdb->get_results( "
43
- SELECT ID, post_title, post_name, post_parent
44
- FROM $wpdb->posts
45
- WHERE post_type = 'attachment'
46
- " );
 
 
 
 
 
 
 
 
 
 
 
 
47
 
48
  foreach ( $attachments as $attachment ) {
49
  $references = MLAData::mla_fetch_attachment_references( $attachment->ID, $attachment->post_parent );
50
 
51
- echo '&nbsp;<br><h3>' . $attachment->ID . ', ' . $attachment->post_title . ', Parent: ' . $attachment->post_parent . '<br>' . $attachment->post_name . '<br>' . $references['base_file'] . "</h3>\r\n";
52
 
53
  /*
54
  * Look for the "Featured Image(s)"
@@ -65,7 +77,7 @@ class MLAShortcodes {
65
  $found_parent = true;
66
  }
67
 
68
- echo $feature_id . ' (' . $feature->post_type . '), ' . $feature->post_title . "<br>\r\n";
69
  }
70
  }
71
 
@@ -85,7 +97,7 @@ class MLAShortcodes {
85
  $found_parent = true;
86
  }
87
 
88
- echo $insert->ID . ' (' . $insert->post_type . '), ' . $insert->post_title . "<br>\r\n";
89
  } // foreach $insert
90
  } // foreach $file
91
  }
39
  'organize_by'=>'title',
40
  ), $atts)); */
41
 
42
+ /*
43
+ * Process the where-used settings option
44
+ */
45
+ if ('checked' == MLASettings::mla_get_option( 'exclude_revisions' ) )
46
+ $exclude_revisions = "(post_type <> 'revision') AND ";
47
+ else
48
+ $exclude_revisions = '';
49
+
50
+ $attachments = $wpdb->get_results(
51
+ $wpdb->prepare(
52
+ "
53
+ SELECT ID, post_title, post_name, post_parent
54
+ FROM {$wpdb->posts}
55
+ WHERE {$exclude_revisions}post_type = 'attachment'
56
+ "
57
+ )
58
+ );
59
 
60
  foreach ( $attachments as $attachment ) {
61
  $references = MLAData::mla_fetch_attachment_references( $attachment->ID, $attachment->post_parent );
62
 
63
+ echo '&nbsp;<br><h3>' . $attachment->ID . ', ' . esc_attr( $attachment->post_title ) . ', Parent: ' . $attachment->post_parent . '<br>' . esc_attr( $attachment->post_name ) . '<br>' . esc_html( $references['base_file'] ) . "</h3>\r\n";
64
 
65
  /*
66
  * Look for the "Featured Image(s)"
77
  $found_parent = true;
78
  }
79
 
80
+ echo $feature_id . ' (' . $feature->post_type . '), ' . esc_attr( $feature->post_title ) . "<br>\r\n";
81
  }
82
  }
83
 
97
  $found_parent = true;
98
  }
99
 
100
+ echo $insert->ID . ' (' . $insert->post_type . '), ' . esc_attr( $insert->post_title ) . "<br>\r\n";
101
  } // foreach $insert
102
  } // foreach $file
103
  }
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.30
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.30
18
  Author URI: http://fairtradejudaica.org/our-story/staff/
19
  */
20
 
@@ -101,6 +101,9 @@ function mla_name_conflict_reporting_action () {
101
  */
102
  if ( empty( $mla_name_conflict_error_messages ) ) {
103
  require_once('includes/mla-plugin-loader.php');
 
 
 
104
  }
105
  else {
106
  add_action( 'admin_notices', 'mla_name_conflict_reporting_action' );
6
  * will the rest of the plugin be loaded and run.
7
  *
8
  * @package Media Library Assistant
9
+ * @version 0.40
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.40
18
  Author URI: http://fairtradejudaica.org/our-story/staff/
19
  */
20
 
101
  */
102
  if ( empty( $mla_name_conflict_error_messages ) ) {
103
  require_once('includes/mla-plugin-loader.php');
104
+
105
+ register_activation_hook( __FILE__, array( 'MLASettings', 'mla_activation_hook' ) );
106
+ register_deactivation_hook( __FILE__, array( 'MLASettings', 'mla_deactivation_hook' ) );
107
  }
108
  else {
109
  add_action( 'admin_notices', 'mla_name_conflict_reporting_action' );
js/mla-inline-edit-scripts.dev.js CHANGED
@@ -39,12 +39,6 @@ inlineEditAttachment = {
39
  return false;
40
  });
41
 
42
- $('#bulk-title-div').parents('fieldset').after(
43
- $('#inline-edit fieldset.inline-edit-categories').clone()
44
- ).siblings( 'fieldset:last' ).prepend(
45
- $('#inline-edit label.inline-edit-tags').clone()
46
- );
47
-
48
  // hiearchical taxonomies expandable?
49
  $('span.catshow').click(function(){
50
  $(this).hide().next().show().parent().next().addClass("cat-hover");
@@ -58,6 +52,7 @@ inlineEditAttachment = {
58
 
59
  $('#doaction, #doaction2').click(function(e){
60
  var n = $(this).attr('id').substr(2);
 
61
  if ( $('select[name="'+n+'"]').val() == 'edit' ) {
62
  e.preventDefault();
63
  t.setBulk();
@@ -90,8 +85,8 @@ inlineEditAttachment = {
90
  if ( $(this).prop('checked') ) {
91
  c = false;
92
  var id = $(this).val(), theTitle;
93
- theTitle = $('#inline_'+id+' .post_title').text() || inlineEditL10n.notitle;
94
- te += '<div id="ttle'+id+'"><a id="_'+id+'" class="ntdelbutton" title="'+inlineEditL10n.ntdeltitle+'">X</a>'+theTitle+'</div>';
95
  }
96
  });
97
 
@@ -106,6 +101,17 @@ inlineEditAttachment = {
106
  $('#ttle'+id).remove();
107
  });
108
 
 
 
 
 
 
 
 
 
 
 
 
109
  $('html, body').animate( { scrollTop: 0 }, 'fast' );
110
  },
111
 
@@ -212,7 +218,7 @@ inlineEditAttachment = {
212
  $('#edit-'+id+' .inline-edit-save .error').html(r).show();
213
  }
214
  } else {
215
- $('#edit-'+id+' .inline-edit-save .error').html(inlineEditL10n.error).show();
216
  }
217
  }
218
  , 'html');
39
  return false;
40
  });
41
 
 
 
 
 
 
 
42
  // hiearchical taxonomies expandable?
43
  $('span.catshow').click(function(){
44
  $(this).hide().next().show().parent().next().addClass("cat-hover");
52
 
53
  $('#doaction, #doaction2').click(function(e){
54
  var n = $(this).attr('id').substr(2);
55
+
56
  if ( $('select[name="'+n+'"]').val() == 'edit' ) {
57
  e.preventDefault();
58
  t.setBulk();
85
  if ( $(this).prop('checked') ) {
86
  c = false;
87
  var id = $(this).val(), theTitle;
88
+ theTitle = $('#inline_'+id+' .post_title').text() || mla_inline_edit_vars.notitle;
89
+ te += '<div id="ttle'+id+'"><a id="_'+id+'" class="ntdelbutton" title="'+mla_inline_edit_vars.ntdeltitle+'">X</a>'+theTitle+'</div>';
90
  }
91
  });
92
 
101
  $('#ttle'+id).remove();
102
  });
103
 
104
+ // support multi taxonomies?
105
+ // tax = 'post_tag';
106
+ // $('tr.inline-editor textarea[name="tax_input['+tax+']"]').suggest( ajaxurl + '?action=ajax-tag-search&tax=' + tax, { delay: 500, minchars: 2, multiple: true, multipleSep: mla_inline_edit_vars.comma + ' ' } );
107
+
108
+ //flat taxonomies
109
+ $('textarea.mla_tags').each(function(){
110
+ var taxname = $(this).attr('name').replace(']', '').replace('tax_input[', '');
111
+
112
+ $(this).suggest( ajaxurl + '?action=ajax-tag-search&tax=' + taxname, { delay: 500, minchars: 2, multiple: true, multipleSep: mla_inline_edit_vars.comma + ' ' } );
113
+ });
114
+
115
  $('html, body').animate( { scrollTop: 0 }, 'fast' );
116
  },
117
 
218
  $('#edit-'+id+' .inline-edit-save .error').html(r).show();
219
  }
220
  } else {
221
+ $('#edit-'+id+' .inline-edit-save .error').html(mla_inline_edit_vars.error).show();
222
  }
223
  }
224
  , 'html');
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("#bulk-title-div").parents("fieldset").after(a("#inline-edit fieldset.inline-edit-categories").clone()).siblings("fieldset:last").prepend(a("#inline-edit label.inline-edit-tags").clone());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()||inlineEditL10n.notitle;b+='<div id="ttle'+f+'"><a id="_'+f+'" class="ntdelbutton" title="'+inlineEditL10n.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("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(inlineEditL10n.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","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
@@ -72,6 +72,7 @@
72
  <li class="method private "><a href="#_display_single_item" title="_display_single_item :: Display a single item sub page; prepare the form to
73
  change the meta data for a single attachment."><span class="description">Display a single item sub page; prepare the form to
74
  change the meta data for a single attachment.</span><pre>_display_single_item()</pre></a></li>
 
75
  <li class="method private "><a href="#_restore_single_item" title="_restore_single_item :: Restore a single item from the Trash"><span class="description">Restore a single item from the Trash</span><pre>_restore_single_item()</pre></a></li>
76
  <li class="method private "><a href="#_trash_single_item" title="_trash_single_item :: Move a single item to Trash"><span class="description">Move a single item to Trash</span><pre>_trash_single_item()</pre></a></li>
77
  <li class="method private "><a href="#_update_single_item" title="_update_single_item :: Update a single item; change the meta data
@@ -414,6 +415,32 @@ change the meta data for a single attachment.</h2>
414
  <code>array</code>message and/or HTML content</div>
415
  </div></div>
416
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
417
  <a name="_restore_single_item" id="_restore_single_item"></a><div class="element clickable method private _restore_single_item" data-toggle="collapse" data-target="._restore_single_item .collapse">
418
  <h2>Restore a single item from the Trash</h2>
419
  <pre>_restore_single_item(array $post_id) : array</pre>
@@ -455,7 +482,7 @@ change the meta data for a single attachment.</h2>
455
  <a name="_update_single_item" id="_update_single_item"></a><div class="element clickable method private _update_single_item" data-toggle="collapse" data-target="._update_single_item .collapse">
456
  <h2>Update a single item; change the meta data
457
  for a single attachment.</h2>
458
- <pre>_update_single_item(int $post_id, array $new_data, array $tax_input) : array</pre>
459
  <div class="labels"></div>
460
  <div class="row collapse"><div class="detail-description">
461
  <p class="long_description"></p>
@@ -473,7 +500,11 @@ for a single attachment.</h2>
473
  </div>
474
  <div class="subelement argument">
475
  <h4>$tax_input</h4>
476
- <code>array</code><p>Attachment Category and Tag values</p></div>
 
 
 
 
477
  <h3>Returns</h3>
478
  <div class="subelement response">
479
  <code>array</code>success/failure message and NULL content</div>
@@ -694,7 +725,7 @@ for a single attachment.</h2>
694
  <div class="row"><footer class="span12">
695
  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>
696
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
697
- generated on 2012-09-19T20:36:48-07:00.<br></footer></div>
698
  </div>
699
  </body>
700
  </html>
72
  <li class="method private "><a href="#_display_single_item" title="_display_single_item :: Display a single item sub page; prepare the form to
73
  change the meta data for a single attachment."><span class="description">Display a single item sub page; prepare the form to
74
  change the meta data for a single attachment.</span><pre>_display_single_item()</pre></a></li>
75
+ <li class="method private "><a href="#_remove_tags" title="_remove_tags :: Remove tags from a term ids list"><span class="description">Remove tags from a term ids list</span><pre>_remove_tags()</pre></a></li>
76
  <li class="method private "><a href="#_restore_single_item" title="_restore_single_item :: Restore a single item from the Trash"><span class="description">Restore a single item from the Trash</span><pre>_restore_single_item()</pre></a></li>
77
  <li class="method private "><a href="#_trash_single_item" title="_trash_single_item :: Move a single item to Trash"><span class="description">Move a single item to Trash</span><pre>_trash_single_item()</pre></a></li>
78
  <li class="method private "><a href="#_update_single_item" title="_update_single_item :: Update a single item; change the meta data
415
  <code>array</code>message and/or HTML content</div>
416
  </div></div>
417
  </div>
418
+ <a name="_remove_tags" id="_remove_tags"></a><div class="element clickable method private _remove_tags" data-toggle="collapse" data-target="._remove_tags .collapse">
419
+ <h2>Remove tags from a term ids list</h2>
420
+ <pre>_remove_tags(array $terms_before, array $tags, object $taxonomy_obj) : array</pre>
421
+ <div class="labels"></div>
422
+ <div class="row collapse"><div class="detail-description">
423
+ <p class="long_description"></p>
424
+ <table class="table table-bordered"><tr>
425
+ <th>since</th>
426
+ <td>0.40</td>
427
+ </tr></table>
428
+ <h3>Parameters</h3>
429
+ <div class="subelement argument">
430
+ <h4>$terms_before</h4>
431
+ <code>array</code><p>The term ids currently assigned</p></div>
432
+ <div class="subelement argument">
433
+ <h4>$tags</h4>
434
+ <code>array</code><p>| string The term ids (array) or names (string) to remove</p>
435
+ </div>
436
+ <div class="subelement argument">
437
+ <h4>$taxonomy_obj</h4>
438
+ <code>object</code><p>The taxonomy object</p></div>
439
+ <h3>Returns</h3>
440
+ <div class="subelement response">
441
+ <code>array</code>Term ids of the surviving tags</div>
442
+ </div></div>
443
+ </div>
444
  <a name="_restore_single_item" id="_restore_single_item"></a><div class="element clickable method private _restore_single_item" data-toggle="collapse" data-target="._restore_single_item .collapse">
445
  <h2>Restore a single item from the Trash</h2>
446
  <pre>_restore_single_item(array $post_id) : array</pre>
482
  <a name="_update_single_item" id="_update_single_item"></a><div class="element clickable method private _update_single_item" data-toggle="collapse" data-target="._update_single_item .collapse">
483
  <h2>Update a single item; change the meta data
484
  for a single attachment.</h2>
485
+ <pre>_update_single_item(int $post_id, array $new_data, array $tax_input, array $tax_actions) : array</pre>
486
  <div class="labels"></div>
487
  <div class="row collapse"><div class="detail-description">
488
  <p class="long_description"></p>
500
  </div>
501
  <div class="subelement argument">
502
  <h4>$tax_input</h4>
503
+ <code>array</code><p>Taxonomy term values</p></div>
504
+ <div class="subelement argument">
505
+ <h4>$tax_actions</h4>
506
+ <code>array</code><p>Taxonomy actions (add, remove, replace)</p>
507
+ </div>
508
  <h3>Returns</h3>
509
  <div class="subelement response">
510
  <code>array</code>success/failure message and NULL content</div>
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-02T19:39:45-07:00.<br></footer></div>
729
  </div>
730
  </body>
731
  </html>
phpDocs/classes/MLAData.html CHANGED
@@ -370,7 +370,7 @@ a string containing the first array element.</p></p>
370
  </div>
371
  <a name="_prepare_list_table_query" id="_prepare_list_table_query"></a><div class="element clickable method private _prepare_list_table_query" data-toggle="collapse" data-target="._prepare_list_table_query .collapse">
372
  <h2>Sanitize and expand query arguments from request variables</h2>
373
- <pre>_prepare_list_table_query(array $request) : array</pre>
374
  <div class="labels"></div>
375
  <div class="row collapse"><div class="detail-description">
376
  <p class="long_description"><p>Prepare the arguments for WP_Query.
@@ -381,9 +381,16 @@ Modeled after wp_edit_attachments_query in wp-admin/post.php</p></p>
381
  </tr></table>
382
  <h3>Parameters</h3>
383
  <div class="subelement argument">
384
- <h4>$request</h4>
385
  <code>array</code><p>query parameters from web page, usually found in $_REQUEST</p>
386
  </div>
 
 
 
 
 
 
 
387
  <h3>Returns</h3>
388
  <div class="subelement response">
389
  <code>array</code>revised arguments suitable for WP_Query</div>
@@ -412,7 +419,7 @@ any further logic required to translate those values is contained in the filters
412
  <div class="row"><footer class="span12">
413
  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>
414
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
415
- generated on 2012-09-19T20:36:48-07:00.<br></footer></div>
416
  </div>
417
  </body>
418
  </html>
370
  </div>
371
  <a name="_prepare_list_table_query" id="_prepare_list_table_query"></a><div class="element clickable method private _prepare_list_table_query" data-toggle="collapse" data-target="._prepare_list_table_query .collapse">
372
  <h2>Sanitize and expand query arguments from request variables</h2>
373
+ <pre>_prepare_list_table_query(array $raw_request, int $offset, int $count) : array</pre>
374
  <div class="labels"></div>
375
  <div class="row collapse"><div class="detail-description">
376
  <p class="long_description"><p>Prepare the arguments for WP_Query.
381
  </tr></table>
382
  <h3>Parameters</h3>
383
  <div class="subelement argument">
384
+ <h4>$raw_request</h4>
385
  <code>array</code><p>query parameters from web page, usually found in $_REQUEST</p>
386
  </div>
387
+ <div class="subelement argument">
388
+ <h4>$offset</h4>
389
+ <code>int</code><p>number of rows to skip over to reach desired page</p></div>
390
+ <div class="subelement argument">
391
+ <h4>$count</h4>
392
+ <code>int</code><p>number of rows on each page (0 = all rows)</p>
393
+ </div>
394
  <h3>Returns</h3>
395
  <div class="subelement response">
396
  <code>array</code>revised arguments suitable for WP_Query</div>
419
  <div class="row"><footer class="span12">
420
  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>
421
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
422
+ generated on 2012-10-02T19:39:45-07:00.<br></footer></div>
423
  </div>
424
  </body>
425
  </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-09-19T20:36:48-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-02T19:39:45-07:00.<br></footer></div>
171
  </div>
172
  </body>
173
  </html>
phpDocs/classes/MLASettings.html CHANGED
@@ -53,10 +53,12 @@
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="#mla_add_plugin_settings_link" title='mla_add_plugin_settings_link :: Add the "Settings" link to the MLA entry in the Plugins section'><span class="description">Add the "Settings" link to the MLA entry in the Plugins section</span><pre>mla_add_plugin_settings_link()</pre></a></li>
57
  <li class="method public "><a href="#mla_admin_menu_action" title='mla_admin_menu_action :: Add settings page in the "Settings" section,
58
  add settings link in the Plugins section entry for MLA.'><span class="description">Add settings page in the "Settings" section,
59
  add settings link in the Plugins section entry for MLA.</span><pre>mla_admin_menu_action()</pre></a></li>
 
60
  <li class="method public "><a href="#mla_delete_option" title="mla_delete_option :: Delete the stored value of a defined MLA option"><span class="description">Delete the stored value of a defined MLA option</span><pre>mla_delete_option()</pre></a></li>
61
  <li class="method public "><a href="#mla_get_option" title="mla_get_option :: Return the stored value or default value of a defined MLA option"><span class="description">Return the stored value or default value of a defined MLA option</span><pre>mla_get_option()</pre></a></li>
62
  <li class="method public "><a href="#mla_render_settings_page" title='mla_render_settings_page :: Render (echo) the "Media Library Assistant" subpage in the Settings section'><span class="description">Render (echo) the "Media Library Assistant" subpage in the Settings section</span><pre>mla_render_settings_page()</pre></a></li>
@@ -71,10 +73,12 @@ settings are being updated or reset.</span><pre>mla_taxonomy_support()</pre></a>
71
  <li class="method private "><a href="#_version_upgrade" title="_version_upgrade :: Database and option update check, for installing new versions"><span class="description">Database and option update check, for installing new versions</span><pre>_version_upgrade()</pre></a></li>
72
  <li class="nav-header">
73
  <i class="icon-custom icon-property"></i> Properties</li>
 
74
  <li class="nav-header private">» Private</li>
75
  <li class="property private "><a href="#%24mla_options" title="$mla_options :: $mla_options defines the database options and admin page areas for setting/updating them."><span class="description">$mla_options defines the database options and admin page areas for setting/updating them.</span><pre>$mla_options</pre></a></li>
76
  <li class="nav-header">
77
  <i class="icon-custom icon-constant"></i> Constants</li>
 
78
  <li class="constant "><a href="#MLA_SETTINGS_SLUG" title="MLA_SETTINGS_SLUG :: Provides a unique name for the settings page"><span class="description">Provides a unique name for the settings page</span><pre>MLA_SETTINGS_SLUG</pre></a></li>
79
  <li class="constant "><a href="#MLA_VERSION_OPTION" title="MLA_VERSION_OPTION :: Provides a unique name for the current version option"><span class="description">Provides a unique name for the current version option</span><pre>MLA_VERSION_OPTION</pre></a></li>
80
  </ul>
@@ -118,6 +122,18 @@ and provides the settings page to edit them.</p>
118
  </tr></table>
119
  </div></div>
120
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
121
  <a name="mla_add_plugin_settings_link" id="mla_add_plugin_settings_link"></a><div class="element clickable method public mla_add_plugin_settings_link" data-toggle="collapse" data-target=".mla_add_plugin_settings_link .collapse">
122
  <h2>Add the "Settings" link to the MLA entry in the Plugins section</h2>
123
  <pre>mla_add_plugin_settings_link(array $links, string $file) : array</pre>
@@ -154,6 +170,18 @@ add settings link in the Plugins section entry for MLA.</h2>
154
  </tr></table>
155
  </div></div>
156
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
157
  <a name="mla_delete_option" id="mla_delete_option"></a><div class="element clickable method public mla_delete_option" data-toggle="collapse" data-target=".mla_delete_option .collapse">
158
  <h2>Delete the stored value of a defined MLA option</h2>
159
  <pre>mla_delete_option(string $option) : boolean</pre>
@@ -335,6 +363,18 @@ settings are being updated or reset.</h2>
335
  </div>
336
  <h3>
337
  <i class="icon-custom icon-property"></i> Properties</h3>
 
 
 
 
 
 
 
 
 
 
 
 
338
  <a name="%24mla_options" id="$mla_options"> </a><div class="element clickable property private $mla_options" data-toggle="collapse" data-target=".$mla_options .collapse">
339
  <h2>$mla_options defines the database options and admin page areas for setting/updating them.</h2>
340
  <pre>$mla_options </pre>
@@ -363,6 +403,12 @@ reset => reset function for 'custom' options; returns nothing. Usage:
363
  </div>
364
  <h3>
365
  <i class="icon-custom icon-constant"></i> Constants</h3>
 
 
 
 
 
 
366
  <a name="MLA_SETTINGS_SLUG" id="MLA_SETTINGS_SLUG"> </a><div class="element clickable constant MLA_SETTINGS_SLUG" data-toggle="collapse" data-target=".MLA_SETTINGS_SLUG .collapse">
367
  <h2>Provides a unique name for the settings page</h2>
368
  <pre>MLA_SETTINGS_SLUG </pre>
@@ -382,7 +428,7 @@ reset => reset function for 'custom' options; returns nothing. Usage:
382
  <div class="row"><footer class="span12">
383
  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>
384
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
385
- generated on 2012-09-19T20:36:48-07:00.<br></footer></div>
386
  </div>
387
  </body>
388
  </html>
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="#mla_activation_hook" title="mla_activation_hook :: Perform one-time actions on plugin activation"><span class="description">Perform one-time actions on plugin activation</span><pre>mla_activation_hook()</pre></a></li>
57
  <li class="method public "><a href="#mla_add_plugin_settings_link" title='mla_add_plugin_settings_link :: Add the "Settings" link to the MLA entry in the Plugins section'><span class="description">Add the "Settings" link to the MLA entry in the Plugins section</span><pre>mla_add_plugin_settings_link()</pre></a></li>
58
  <li class="method public "><a href="#mla_admin_menu_action" title='mla_admin_menu_action :: Add settings page in the "Settings" section,
59
  add settings link in the Plugins section entry for MLA.'><span class="description">Add settings page in the "Settings" section,
60
  add settings link in the Plugins section entry for MLA.</span><pre>mla_admin_menu_action()</pre></a></li>
61
+ <li class="method public "><a href="#mla_deactivation_hook" title="mla_deactivation_hook :: Perform one-time actions on plugin deactivation"><span class="description">Perform one-time actions on plugin deactivation</span><pre>mla_deactivation_hook()</pre></a></li>
62
  <li class="method public "><a href="#mla_delete_option" title="mla_delete_option :: Delete the stored value of a defined MLA option"><span class="description">Delete the stored value of a defined MLA option</span><pre>mla_delete_option()</pre></a></li>
63
  <li class="method public "><a href="#mla_get_option" title="mla_get_option :: Return the stored value or default value of a defined MLA option"><span class="description">Return the stored value or default value of a defined MLA option</span><pre>mla_get_option()</pre></a></li>
64
  <li class="method public "><a href="#mla_render_settings_page" title='mla_render_settings_page :: Render (echo) the "Media Library Assistant" subpage in the Settings section'><span class="description">Render (echo) the "Media Library Assistant" subpage in the Settings section</span><pre>mla_render_settings_page()</pre></a></li>
73
  <li class="method private "><a href="#_version_upgrade" title="_version_upgrade :: Database and option update check, for installing new versions"><span class="description">Database and option update check, for installing new versions</span><pre>_version_upgrade()</pre></a></li>
74
  <li class="nav-header">
75
  <i class="icon-custom icon-property"></i> Properties</li>
76
+ <li class="property public "><a href="#%24mla_alt_text_view" title="$mla_alt_text_view :: Provides a unique name for the ALT Text SQL VIEW"><span class="description">Provides a unique name for the ALT Text SQL VIEW</span><pre>$mla_alt_text_view</pre></a></li>
77
  <li class="nav-header private">» Private</li>
78
  <li class="property private "><a href="#%24mla_options" title="$mla_options :: $mla_options defines the database options and admin page areas for setting/updating them."><span class="description">$mla_options defines the database options and admin page areas for setting/updating them.</span><pre>$mla_options</pre></a></li>
79
  <li class="nav-header">
80
  <i class="icon-custom icon-constant"></i> Constants</li>
81
+ <li class="constant "><a href="#MLA_ALT_TEXT_VIEW_SUFFIX" title="MLA_ALT_TEXT_VIEW_SUFFIX :: Provides a unique suffix for the ALT Text SQL VIEW"><span class="description">Provides a unique suffix for the ALT Text SQL VIEW</span><pre>MLA_ALT_TEXT_VIEW_SUFFIX</pre></a></li>
82
  <li class="constant "><a href="#MLA_SETTINGS_SLUG" title="MLA_SETTINGS_SLUG :: Provides a unique name for the settings page"><span class="description">Provides a unique name for the settings page</span><pre>MLA_SETTINGS_SLUG</pre></a></li>
83
  <li class="constant "><a href="#MLA_VERSION_OPTION" title="MLA_VERSION_OPTION :: Provides a unique name for the current version option"><span class="description">Provides a unique name for the current version option</span><pre>MLA_VERSION_OPTION</pre></a></li>
84
  </ul>
122
  </tr></table>
123
  </div></div>
124
  </div>
125
+ <a name="mla_activation_hook" id="mla_activation_hook"></a><div class="element clickable method public mla_activation_hook" data-toggle="collapse" data-target=".mla_activation_hook .collapse">
126
+ <h2>Perform one-time actions on plugin activation</h2>
127
+ <pre>mla_activation_hook() : void</pre>
128
+ <div class="labels"></div>
129
+ <div class="row collapse"><div class="detail-description">
130
+ <p class="long_description"><p>Adds a view to the database to support sorting the listing on 'ALT Text'.</p></p>
131
+ <table class="table table-bordered"><tr>
132
+ <th>since</th>
133
+ <td>0.40</td>
134
+ </tr></table>
135
+ </div></div>
136
+ </div>
137
  <a name="mla_add_plugin_settings_link" id="mla_add_plugin_settings_link"></a><div class="element clickable method public mla_add_plugin_settings_link" data-toggle="collapse" data-target=".mla_add_plugin_settings_link .collapse">
138
  <h2>Add the "Settings" link to the MLA entry in the Plugins section</h2>
139
  <pre>mla_add_plugin_settings_link(array $links, string $file) : array</pre>
170
  </tr></table>
171
  </div></div>
172
  </div>
173
+ <a name="mla_deactivation_hook" id="mla_deactivation_hook"></a><div class="element clickable method public mla_deactivation_hook" data-toggle="collapse" data-target=".mla_deactivation_hook .collapse">
174
+ <h2>Perform one-time actions on plugin deactivation</h2>
175
+ <pre>mla_deactivation_hook() : void</pre>
176
+ <div class="labels"></div>
177
+ <div class="row collapse"><div class="detail-description">
178
+ <p class="long_description"><p>Removes a view from the database that supports sorting the listing on 'ALT Text'.</p></p>
179
+ <table class="table table-bordered"><tr>
180
+ <th>since</th>
181
+ <td>0.40</td>
182
+ </tr></table>
183
+ </div></div>
184
+ </div>
185
  <a name="mla_delete_option" id="mla_delete_option"></a><div class="element clickable method public mla_delete_option" data-toggle="collapse" data-target=".mla_delete_option .collapse">
186
  <h2>Delete the stored value of a defined MLA option</h2>
187
  <pre>mla_delete_option(string $option) : boolean</pre>
363
  </div>
364
  <h3>
365
  <i class="icon-custom icon-property"></i> Properties</h3>
366
+ <a name="%24mla_alt_text_view" id="$mla_alt_text_view"> </a><div class="element clickable property public $mla_alt_text_view" data-toggle="collapse" data-target=".$mla_alt_text_view .collapse">
367
+ <h2>Provides a unique name for the ALT Text SQL VIEW</h2>
368
+ <pre>$mla_alt_text_view : array</pre>
369
+ <div class="labels"></div>
370
+ <div class="row collapse"><div class="detail-description">
371
+ <p class="long_description"></p>
372
+ <table class="table table-bordered"><tr>
373
+ <th>since</th>
374
+ <td>0.40</td>
375
+ </tr></table>
376
+ </div></div>
377
+ </div>
378
  <a name="%24mla_options" id="$mla_options"> </a><div class="element clickable property private $mla_options" data-toggle="collapse" data-target=".$mla_options .collapse">
379
  <h2>$mla_options defines the database options and admin page areas for setting/updating them.</h2>
380
  <pre>$mla_options </pre>
403
  </div>
404
  <h3>
405
  <i class="icon-custom icon-constant"></i> Constants</h3>
406
+ <a name="MLA_ALT_TEXT_VIEW_SUFFIX" id="MLA_ALT_TEXT_VIEW_SUFFIX"> </a><div class="element clickable constant MLA_ALT_TEXT_VIEW_SUFFIX" data-toggle="collapse" data-target=".MLA_ALT_TEXT_VIEW_SUFFIX .collapse">
407
+ <h2>Provides a unique suffix for the ALT Text SQL VIEW</h2>
408
+ <pre>MLA_ALT_TEXT_VIEW_SUFFIX </pre>
409
+ <div class="labels"></div>
410
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
411
+ </div>
412
  <a name="MLA_SETTINGS_SLUG" id="MLA_SETTINGS_SLUG"> </a><div class="element clickable constant MLA_SETTINGS_SLUG" data-toggle="collapse" data-target=".MLA_SETTINGS_SLUG .collapse">
413
  <h2>Provides a unique name for the settings page</h2>
414
  <pre>MLA_SETTINGS_SLUG </pre>
428
  <div class="row"><footer class="span12">
429
  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>
430
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
431
+ generated on 2012-10-02T19:39:45-07:00.<br></footer></div>
432
  </div>
433
  </body>
434
  </html>
phpDocs/classes/MLAShortcodes.html CHANGED
@@ -113,7 +113,7 @@
113
  <div class="row"><footer class="span12">
114
  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>
115
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
116
- generated on 2012-09-19T20:36:48-07:00.<br></footer></div>
117
  </div>
118
  </body>
119
  </html>
113
  <div class="row"><footer class="span12">
114
  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>
115
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
116
+ generated on 2012-10-02T19:39:45-07:00.<br></footer></div>
117
  </div>
118
  </body>
119
  </html>
phpDocs/classes/MLATest.html CHANGED
@@ -130,7 +130,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-09-19T20:36:48-07:00.<br></footer></div>
134
  </div>
135
  </body>
136
  </html>
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-02T19:39:45-07:00.<br></footer></div>
134
  </div>
135
  </body>
136
  </html>
phpDocs/classes/MLA_List_Table.html CHANGED
@@ -87,6 +87,7 @@ and the value is db column to sort by."><span class="description">Returns an arr
87
  and the value is db column to sort by.</span><pre>get_sortable_columns()</pre></a></li>
88
  <li class="method public "><a href="#get_views" title="get_views :: Returns an associative array listing all the views that can be used with this table."><span class="description">Returns an associative array listing all the views that can be used with this table.</span><pre>get_views()</pre></a></li>
89
  <li class="method public "><a href="#mla_admin_init_action" title="mla_admin_init_action :: Adds support for taxonomy columns"><span class="description">Adds support for taxonomy columns</span><pre>mla_admin_init_action()</pre></a></li>
 
90
  <li class="method public "><a href="#mla_get_sortable_columns" title="mla_get_sortable_columns :: Return the names and display values of the sortable columns"><span class="description">Return the names and display values of the sortable columns</span><pre>mla_get_sortable_columns()</pre></a></li>
91
  <li class="method public "><a href="#mla_manage_columns_filter" title="mla_manage_columns_filter :: Handler for filter 'manage_media_page_mla-menu_columns'"><span class="description">Handler for filter 'manage_media_page_mla-menu_columns'</span><pre>mla_manage_columns_filter()</pre></a></li>
92
  <li class="method public "><a href="#mla_manage_hidden_columns_filter" title="mla_manage_hidden_columns_filter :: Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden'"><span class="description">Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden'</span><pre>mla_manage_hidden_columns_filter()</pre></a></li>
@@ -99,7 +100,6 @@ and the value is db column to sort by.</span><pre>get_sortable_columns()</pre></
99
  'ID_parent', 'title_name', 'post_title', 'post_name'"><span class="description">Add rollover actions to exactly one of the following displayed columns:
100
  'ID_parent', 'title_name', 'post_title', 'post_name'</span><pre>_build_rollover_actions()</pre></a></li>
101
  <li class="method private "><a href="#_default_hidden_columns" title="_default_hidden_columns :: Access the default list of hidden columns"><span class="description">Access the default list of hidden columns</span><pre>_default_hidden_columns()</pre></a></li>
102
- <li class="method private "><a href="#_mime_types" title="_mime_types :: Get possible mime types for view preparation"><span class="description">Get possible mime types for view preparation</span><pre>_mime_types()</pre></a></li>
103
  <li class="nav-header">
104
  <i class="icon-custom icon-property"></i> Properties</li>
105
  <li class="nav-header private">» Private</li>
@@ -648,6 +648,22 @@ created in time to affect the "screen options" setup.</p></p>
648
  </tr></table>
649
  </div></div>
650
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
651
  <a name="mla_get_sortable_columns" id="mla_get_sortable_columns"></a><div class="element clickable method public mla_get_sortable_columns" data-toggle="collapse" data-target=".mla_get_sortable_columns .collapse">
652
  <h2>Return the names and display values of the sortable columns</h2>
653
  <pre>mla_get_sortable_columns() : array</pre>
@@ -818,22 +834,6 @@ with additional entries.</p></p>
818
  <code>array</code>default list of hidden columns</div>
819
  </div></div>
820
  </div>
821
- <a name="_mime_types" id="_mime_types"></a><div class="element clickable method private _mime_types" data-toggle="collapse" data-target="._mime_types .collapse">
822
- <h2>Get possible mime types for view preparation</h2>
823
- <pre>_mime_types() : array</pre>
824
- <div class="labels"></div>
825
- <div class="row collapse"><div class="detail-description">
826
- <p class="long_description"><p>Modeled after get_post_mime_types in wp-admin/includes/post.php,
827
- with additional entries.</p></p>
828
- <table class="table table-bordered"><tr>
829
- <th>since</th>
830
- <td>0.1</td>
831
- </tr></table>
832
- <h3>Returns</h3>
833
- <div class="subelement response">
834
- <code>array</code>Mime type names and HTML markup for views</div>
835
- </div></div>
836
- </div>
837
  <h3>
838
  <i class="icon-custom icon-property"></i> Properties</h3>
839
  <a name="%24currently_hidden" id="$currently_hidden"> </a><div class="element clickable property private $currently_hidden" data-toggle="collapse" data-target=".$currently_hidden .collapse">
@@ -923,7 +923,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-09-19T20:36:48-07:00.<br></footer></div>
927
  </div>
928
  </body>
929
  </html>
87
  and the value is db column to sort by.</span><pre>get_sortable_columns()</pre></a></li>
88
  <li class="method public "><a href="#get_views" title="get_views :: Returns an associative array listing all the views that can be used with this table."><span class="description">Returns an associative array listing all the views that can be used with this table.</span><pre>get_views()</pre></a></li>
89
  <li class="method public "><a href="#mla_admin_init_action" title="mla_admin_init_action :: Adds support for taxonomy columns"><span class="description">Adds support for taxonomy columns</span><pre>mla_admin_init_action()</pre></a></li>
90
+ <li class="method public "><a href="#mla_get_attachment_mime_types" title="mla_get_attachment_mime_types :: Get possible mime types for view preparation"><span class="description">Get possible mime types for view preparation</span><pre>mla_get_attachment_mime_types()</pre></a></li>
91
  <li class="method public "><a href="#mla_get_sortable_columns" title="mla_get_sortable_columns :: Return the names and display values of the sortable columns"><span class="description">Return the names and display values of the sortable columns</span><pre>mla_get_sortable_columns()</pre></a></li>
92
  <li class="method public "><a href="#mla_manage_columns_filter" title="mla_manage_columns_filter :: Handler for filter 'manage_media_page_mla-menu_columns'"><span class="description">Handler for filter 'manage_media_page_mla-menu_columns'</span><pre>mla_manage_columns_filter()</pre></a></li>
93
  <li class="method public "><a href="#mla_manage_hidden_columns_filter" title="mla_manage_hidden_columns_filter :: Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden'"><span class="description">Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden'</span><pre>mla_manage_hidden_columns_filter()</pre></a></li>
100
  'ID_parent', 'title_name', 'post_title', 'post_name'"><span class="description">Add rollover actions to exactly one of the following displayed columns:
101
  'ID_parent', 'title_name', 'post_title', 'post_name'</span><pre>_build_rollover_actions()</pre></a></li>
102
  <li class="method private "><a href="#_default_hidden_columns" title="_default_hidden_columns :: Access the default list of hidden columns"><span class="description">Access the default list of hidden columns</span><pre>_default_hidden_columns()</pre></a></li>
 
103
  <li class="nav-header">
104
  <i class="icon-custom icon-property"></i> Properties</li>
105
  <li class="nav-header private">» Private</li>
648
  </tr></table>
649
  </div></div>
650
  </div>
651
+ <a name="mla_get_attachment_mime_types" id="mla_get_attachment_mime_types"></a><div class="element clickable method public mla_get_attachment_mime_types" data-toggle="collapse" data-target=".mla_get_attachment_mime_types .collapse">
652
+ <h2>Get possible mime types for view preparation</h2>
653
+ <pre>mla_get_attachment_mime_types() : array</pre>
654
+ <div class="labels"></div>
655
+ <div class="row collapse"><div class="detail-description">
656
+ <p class="long_description"><p>Modeled after get_post_mime_types in wp-admin/includes/post.php,
657
+ with additional entries.</p></p>
658
+ <table class="table table-bordered"><tr>
659
+ <th>since</th>
660
+ <td>0.1</td>
661
+ </tr></table>
662
+ <h3>Returns</h3>
663
+ <div class="subelement response">
664
+ <code>array</code>Mime type names and HTML markup for views</div>
665
+ </div></div>
666
+ </div>
667
  <a name="mla_get_sortable_columns" id="mla_get_sortable_columns"></a><div class="element clickable method public mla_get_sortable_columns" data-toggle="collapse" data-target=".mla_get_sortable_columns .collapse">
668
  <h2>Return the names and display values of the sortable columns</h2>
669
  <pre>mla_get_sortable_columns() : array</pre>
834
  <code>array</code>default list of hidden columns</div>
835
  </div></div>
836
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
837
  <h3>
838
  <i class="icon-custom icon-property"></i> Properties</h3>
839
  <a name="%24currently_hidden" id="$currently_hidden"> </a><div class="element clickable property private $currently_hidden" data-toggle="collapse" data-target=".$currently_hidden .collapse">
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-02T19:39:45-07:00.<br></footer></div>
927
  </div>
928
  </body>
929
  </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-09-19T20:36:48-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-02T19:39:45-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-09-19T20:36:48-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-02T19:39:45-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-09-19T20:36:48-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-02T19:39:46-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-09-19T20:36:48-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-02T19:39:45-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-09-19T20:36:48-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-02T19:39:45-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-09-19T20:36:48-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-02T19:39:45-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-09-19T20:36:48-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-02T19:39:45-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="72dfaa80f67805942e02cec364fa67a9" 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>
@@ -18,16 +18,16 @@ Templates separate HTML markup from PHP code for easier maintenance and localiza
18
  <tag line="9" name="package" description="Media Library Assistant"/>
19
  <tag line="9" name="since" description="0.1"/>
20
  </docblock>
21
- <property final="false" static="true" visibility="private" line="225" namespace="global" package="Media Library Assistant">
22
  <name>$query_parameters</name>
23
  <default><![CDATA[array()]]></default>
24
- <docblock line="214">
25
  <description><![CDATA[WP_Query filter "parameters"]]></description>
26
  <long-description><![CDATA[<p>This array defines parameters for the query's join, where and orderby filters.
27
  The parameters are set up in the _prepare_list_table_query function, and
28
  any further logic required to translate those values is contained in the filters.</p>]]></long-description>
29
- <tag line="214" name="since" description="0.30"/>
30
- <tag line="214" name="var" description="" type="array">
31
  <type by_reference="false">array</type>
32
  </tag>
33
  </docblock>
@@ -151,197 +151,213 @@ Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-descri
151
  <type/>
152
  </argument>
153
  </method>
154
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="239" package="Media Library Assistant">
155
  <name>_prepare_list_table_query</name>
156
  <full_name>_prepare_list_table_query</full_name>
157
- <docblock line="227">
158
  <description><![CDATA[Sanitize and expand query arguments from request variables]]></description>
159
  <long-description><![CDATA[<p>Prepare the arguments for WP_Query.
160
  Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
161
- <tag line="227" name="since" description="0.1"/>
162
- <tag line="227" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
163
  <type by_reference="false">array</type>
164
  </tag>
165
- <tag line="227" name="return" description="revised arguments suitable for WP_Query" type="array">
 
 
 
 
 
 
166
  <type by_reference="false">array</type>
167
  </tag>
168
  </docblock>
169
- <argument line="239">
170
- <name>$request</name>
171
  <default><![CDATA[]]></default>
172
  <type/>
173
  </argument>
 
 
 
 
 
 
 
 
 
 
174
  </method>
175
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="321" package="Media Library Assistant">
176
  <name>_execute_list_table_query</name>
177
  <full_name>_execute_list_table_query</full_name>
178
- <docblock line="312">
179
  <description><![CDATA[Add filters, run query, remove filters]]></description>
180
  <long-description><![CDATA[]]></long-description>
181
- <tag line="312" name="since" description="0.30"/>
182
- <tag line="312" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
183
  <type by_reference="false">array</type>
184
  </tag>
185
- <tag line="312" name="return" description="WP_Query object with query results" type="object">
186
  <type by_reference="false">object</type>
187
  </tag>
188
  </docblock>
189
- <argument line="321">
190
  <name>$request</name>
191
  <default><![CDATA[]]></default>
192
  <type/>
193
  </argument>
194
  </method>
195
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="346" package="Media Library Assistant">
196
  <name>mla_query_posts_join_filter</name>
197
  <full_name>mla_query_posts_join_filter</full_name>
198
- <docblock line="335">
199
  <description><![CDATA[Adds a JOIN clause, if required]]></description>
200
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
201
- <tag line="335" name="since" description="0.30"/>
202
- <tag line="335" name="param" description="query clause before modification" type="string" variable="$join_clause">
203
  <type by_reference="false">string</type>
204
  </tag>
205
- <tag line="335" name="return" description="query clause after &quot;detached&quot; item modification" type="string">
206
  <type by_reference="false">string</type>
207
  </tag>
208
  </docblock>
209
- <argument line="346">
210
  <name>$join_clause</name>
211
  <default><![CDATA[]]></default>
212
  <type/>
213
  </argument>
214
  </method>
215
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="366" package="Media Library Assistant">
216
  <name>mla_query_posts_where_filter</name>
217
  <full_name>mla_query_posts_where_filter</full_name>
218
- <docblock line="354">
219
  <description><![CDATA[Adds a WHERE clause for detached items]]></description>
220
  <long-description><![CDATA[<p>Modeled after _edit_attachments_query_helper in wp-admin/post.php.
221
  Defined as public because it's a filter.</p>]]></long-description>
222
- <tag line="354" name="since" description="0.1"/>
223
- <tag line="354" name="param" description="query clause before modification" type="string" variable="$where_clause">
224
  <type by_reference="false">string</type>
225
  </tag>
226
- <tag line="354" name="return" description="query clause after &quot;detached&quot; item modification" type="string">
227
  <type by_reference="false">string</type>
228
  </tag>
229
  </docblock>
230
- <argument line="366">
231
  <name>$where_clause</name>
232
  <default><![CDATA[]]></default>
233
  <type/>
234
  </argument>
235
  </method>
236
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="389" package="Media Library Assistant">
237
  <name>mla_query_posts_orderby_filter</name>
238
  <full_name>mla_query_posts_orderby_filter</full_name>
239
- <docblock line="377">
240
  <description><![CDATA[Adds a ORDERBY clause, if required]]></description>
241
  <long-description><![CDATA[<p>Expands the range of sort options because the logic in WP_Query is limited.
242
  Defined as public because it's a filter.</p>]]></long-description>
243
- <tag line="377" name="since" description="0.30"/>
244
- <tag line="377" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
245
  <type by_reference="false">string</type>
246
  </tag>
247
- <tag line="377" name="return" description="updated query clause" type="string">
248
  <type by_reference="false">string</type>
249
  </tag>
250
  </docblock>
251
- <argument line="389">
252
  <name>$orderby_clause</name>
253
  <default><![CDATA[]]></default>
254
  <type/>
255
  </argument>
256
  </method>
257
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="430" package="Media Library Assistant">
258
  <name>mla_get_attachment_by_id</name>
259
  <full_name>mla_get_attachment_by_id</full_name>
260
- <docblock line="419">
261
  <description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
262
  <long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
263
  the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
264
- <tag line="419" name="since" description="0.1"/>
265
- <tag line="419" name="param" description="The ID of the attachment post" type="int" variable="$post_id">
266
  <type by_reference="false">int</type>
267
  </tag>
268
- <tag line="419" name="return" description="NULL on failure else associative array" type="NULL|array">
269
  <type by_reference="false">NULL</type>
270
  <type by_reference="false">array</type>
271
  </tag>
272
  </docblock>
273
- <argument line="430">
274
  <name>$post_id</name>
275
  <default><![CDATA[]]></default>
276
  <type/>
277
  </argument>
278
  </method>
279
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="481" package="Media Library Assistant">
280
  <name>mla_fetch_attachment_references</name>
281
  <full_name>mla_fetch_attachment_references</full_name>
282
- <docblock line="468">
283
  <description><![CDATA[Find Featured Image and inserted image/link references to an attachment]]></description>
284
  <long-description><![CDATA[<p>Searches all post and page content to see if the attachment is used
285
  as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
286
- <tag line="468" name="since" description="0.1"/>
287
- <tag line="468" name="param" description="post ID of attachment" type="int" variable="$ID">
288
  <type by_reference="false">int</type>
289
  </tag>
290
- <tag line="468" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent">
291
  <type by_reference="false">int</type>
292
  </tag>
293
- <tag line="468" name="return" description="Reference information; see $references array comments" type="array">
294
  <type by_reference="false">array</type>
295
  </tag>
296
  </docblock>
297
- <argument line="481">
298
  <name>$ID</name>
299
  <default><![CDATA[]]></default>
300
  <type/>
301
  </argument>
302
- <argument line="481">
303
  <name>$parent</name>
304
  <default><![CDATA[]]></default>
305
  <type/>
306
  </argument>
307
  </method>
308
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="606" package="Media Library Assistant">
309
  <name>_fetch_attachment_parent_data</name>
310
  <full_name>_fetch_attachment_parent_data</full_name>
311
- <docblock line="597">
312
  <description><![CDATA[Returns information about an attachment's parent, if found]]></description>
313
  <long-description><![CDATA[]]></long-description>
314
- <tag line="597" name="since" description="0.1"/>
315
- <tag line="597" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent_id">
316
  <type by_reference="false">int</type>
317
  </tag>
318
- <tag line="597" name="return" description="Parent information; post_date, post_title and post_type" type="array">
319
  <type by_reference="false">array</type>
320
  </tag>
321
  </docblock>
322
- <argument line="606">
323
  <name>$parent_id</name>
324
  <default><![CDATA[]]></default>
325
  <type/>
326
  </argument>
327
  </method>
328
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="634" package="Media Library Assistant">
329
  <name>_fetch_attachment_metadata</name>
330
  <full_name>_fetch_attachment_metadata</full_name>
331
- <docblock line="621">
332
  <description><![CDATA[Fetch and filter meta data for an attachment]]></description>
333
  <long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
334
  are stripped out or converted to an 'mla</em>' equivalent. Array data is replaced with
335
  a string containing the first array element.</p>]]></long-description>
336
- <tag line="621" name="since" description="0.1"/>
337
- <tag line="621" name="param" description="post ID of attachment" type="int" variable="$post_id">
338
  <type by_reference="false">int</type>
339
  </tag>
340
- <tag line="621" name="return" description="Meta data variables" type="array">
341
  <type by_reference="false">array</type>
342
  </tag>
343
  </docblock>
344
- <argument line="634">
345
  <name>$post_id</name>
346
  <default><![CDATA[]]></default>
347
  <type/>
@@ -349,7 +365,7 @@ a string containing the first array element.</p>]]></long-description>
349
  </method>
350
  </class>
351
  </file>
352
- <file path="includes\class-mla-list-table.php" hash="db661aa5a8d260904ba5ab7c01f800db" package="Media Library Assistant">
353
  <docblock line="2">
354
  <description><![CDATA[Media Library Assistant extended List Table class]]></description>
355
  <long-description><![CDATA[]]></long-description>
@@ -433,7 +449,7 @@ array(0 => 'ID_parent, 1 => 'title_name').</p>
433
  </property>
434
  <property final="false" static="true" visibility="private" line="144" namespace="global" package="Media Library Assistant">
435
  <name>$default_sortable_columns</name>
436
- <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), '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>
437
  <docblock line="129">
438
  <description><![CDATA[Sortable column definitions]]></description>
439
  <long-description><![CDATA[<p>This array defines the table columns that can be sorted. The array key
@@ -461,692 +477,692 @@ sorted by that column. This is computed each time the table is displayed.</p>]]>
461
  </tag>
462
  </docblock>
463
  </method>
464
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="183" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
465
  <name>mla_get_sortable_columns</name>
466
  <full_name>mla_get_sortable_columns</full_name>
467
- <docblock line="176">
468
  <description><![CDATA[Return the names and display values of the sortable columns]]></description>
469
  <long-description><![CDATA[]]></long-description>
470
- <tag line="176" name="since" description="0.30"/>
471
- <tag line="176" name="return" description="name =&gt; array( orderby value, heading ) for sortable columns" type="array">
472
  <type by_reference="false">array</type>
473
  </tag>
474
  </docblock>
475
  </method>
476
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="210" package="Media Library Assistant">
477
  <name>mla_manage_hidden_columns_filter</name>
478
  <full_name>mla_manage_hidden_columns_filter</full_name>
479
- <docblock line="195">
480
  <description><![CDATA[Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden']]></description>
481
  <long-description><![CDATA[<p>Required because the screen.php get_hidden_columns function only uses
482
  the get_user_option result. Set when the file is loaded because the object
483
  is not created in time for the call from screen.php.</p>]]></long-description>
484
- <tag line="195" name="since" description="0.1"/>
485
- <tag line="195" name="param" description="current list of hidden columns, if any" type="string" variable="$result">
486
  <type by_reference="false">string</type>
487
  </tag>
488
- <tag line="195" name="param" description="'managemedia_page_mla-menucolumnshidden'" type="string" variable="$option">
489
  <type by_reference="false">string</type>
490
  </tag>
491
- <tag line="195" name="param" description="WP_User object, if logged in" type="object" variable="$user_data">
492
  <type by_reference="false">object</type>
493
  </tag>
494
- <tag line="195" name="return" description="updated list of hidden columns" type="array">
495
  <type by_reference="false">array</type>
496
  </tag>
497
  </docblock>
498
- <argument line="210">
499
  <name>$result</name>
500
  <default><![CDATA[]]></default>
501
  <type/>
502
  </argument>
503
- <argument line="210">
504
  <name>$option</name>
505
  <default><![CDATA[]]></default>
506
  <type/>
507
  </argument>
508
- <argument line="210">
509
  <name>$user_data</name>
510
  <default><![CDATA[]]></default>
511
  <type/>
512
  </argument>
513
  </method>
514
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="228" package="Media Library Assistant">
515
  <name>mla_manage_columns_filter</name>
516
  <full_name>mla_manage_columns_filter</full_name>
517
- <docblock line="217">
518
  <description><![CDATA[Handler for filter 'manage_media_page_mla-menu_columns']]></description>
519
  <long-description><![CDATA[<p>This required filter dictates the table's columns and titles. Set when the
520
  file is loaded because the list_table object isn't created in time
521
  to affect the "screen options" setup.</p>]]></long-description>
522
- <tag line="217" name="since" description="0.1"/>
523
- <tag line="217" name="return" description="list of table columns" type="array">
524
  <type by_reference="false">array</type>
525
  </tag>
526
  </docblock>
527
  </method>
528
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="243" package="Media Library Assistant">
529
  <name>mla_admin_init_action</name>
530
  <full_name>mla_admin_init_action</full_name>
531
- <docblock line="233">
532
  <description><![CDATA[Adds support for taxonomy columns]]></description>
533
  <long-description><![CDATA[<p>Called in the admin_init action because the list_table object isn't
534
  created in time to affect the "screen options" setup.</p>]]></long-description>
535
- <tag line="233" name="since" description="0.30"/>
536
- <tag line="233" name="return" description="" type="void">
537
  <type by_reference="false">void</type>
538
  </tag>
539
  </docblock>
540
  </method>
541
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="263" package="Media Library Assistant">
542
  <name>__construct</name>
543
  <full_name>__construct</full_name>
544
- <docblock line="255">
545
  <description><![CDATA[Initializes some properties from $_REQUEST vairables, then
546
  calls the parent constructor to set some default configs.]]></description>
547
  <long-description><![CDATA[]]></long-description>
548
- <tag line="255" name="since" description="0.1"/>
549
- <tag line="255" name="return" description="" type="void">
550
  <type by_reference="false">void</type>
551
  </tag>
552
  </docblock>
553
  </method>
554
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="295" package="Media Library Assistant">
555
  <name>column_default</name>
556
  <full_name>column_default</full_name>
557
- <docblock line="282">
558
  <description><![CDATA[Supply a column value if no column-specific function has been defined]]></description>
559
  <long-description><![CDATA[<p>Called when the parent class can't find a method specifically built for a
560
  given column. The taxonomy columns are handled here. All other columns should
561
  have a specific method, so this function returns a troubleshooting message.</p>]]></long-description>
562
- <tag line="282" name="since" description="0.1"/>
563
- <tag line="282" name="param" description="A singular item (one full row's worth of data)" type="array" variable="$item">
564
  <type by_reference="false">array</type>
565
  </tag>
566
- <tag line="282" name="param" description="The name/slug of the column to be processed" type="array" variable="$column_name">
567
  <type by_reference="false">array</type>
568
  </tag>
569
- <tag line="282" name="return" description="Text or HTML to be placed inside the column" type="string">
570
  <type by_reference="false">string</type>
571
  </tag>
572
  </docblock>
573
- <argument line="295">
574
  <name>$item</name>
575
  <default><![CDATA[]]></default>
576
  <type/>
577
  </argument>
578
- <argument line="295">
579
  <name>$column_name</name>
580
  <default><![CDATA[]]></default>
581
  <type/>
582
  </argument>
583
  </method>
584
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="337" package="Media Library Assistant">
585
  <name>column_cb</name>
586
  <full_name>column_cb</full_name>
587
- <docblock line="328">
588
  <description><![CDATA[Displays checkboxes for using bulk actions.]]></description>
589
  <long-description><![CDATA[<p>The 'cb' column
590
  is given special treatment when columns are processed.</p>]]></long-description>
591
- <tag line="328" name="since" description="0.1"/>
592
- <tag line="328" name="param" description="A singular attachment (post) object" type="array" variable="$item">
593
  <type by_reference="false">array</type>
594
  </tag>
595
- <tag line="328" name="return" description="HTML markup to be placed inside the column" type="string">
596
  <type by_reference="false">string</type>
597
  </tag>
598
  </docblock>
599
- <argument line="337">
600
  <name>$item</name>
601
  <default><![CDATA[]]></default>
602
  <type/>
603
  </argument>
604
  </method>
605
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="353" package="Media Library Assistant">
606
  <name>column_icon</name>
607
  <full_name>column_icon</full_name>
608
- <docblock line="345">
609
  <description><![CDATA[Supply the content for a custom column]]></description>
610
  <long-description><![CDATA[]]></long-description>
611
- <tag line="345" name="since" description="0.1"/>
612
- <tag line="345" name="param" description="A singular attachment (post) object" type="array" variable="$item">
613
  <type by_reference="false">array</type>
614
  </tag>
615
- <tag line="345" name="return" description="HTML markup to be placed inside the column" type="string">
616
  <type by_reference="false">string</type>
617
  </tag>
618
  </docblock>
619
- <argument line="353">
620
  <name>$item</name>
621
  <default><![CDATA[]]></default>
622
  <type/>
623
  </argument>
624
  </method>
625
- <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="369" package="Media Library Assistant">
626
  <name>_build_rollover_actions</name>
627
  <full_name>_build_rollover_actions</full_name>
628
- <docblock line="358">
629
  <description><![CDATA[Add rollover actions to exactly one of the following displayed columns:
630
  'ID_parent', 'title_name', 'post_title', 'post_name']]></description>
631
  <long-description><![CDATA[]]></long-description>
632
- <tag line="358" name="since" description="0.1"/>
633
- <tag line="358" name="param" description="A singular attachment (post) object" type="object" variable="$item">
634
  <type by_reference="false">object</type>
635
  </tag>
636
- <tag line="358" name="param" description="Current column name" type="string" variable="$column">
637
  <type by_reference="false">string</type>
638
  </tag>
639
- <tag line="358" name="return" description="Names and URLs of row-level actions" type="array">
640
  <type by_reference="false">array</type>
641
  </tag>
642
  </docblock>
643
- <argument line="369">
644
  <name>$item</name>
645
  <default><![CDATA[]]></default>
646
  <type/>
647
  </argument>
648
- <argument line="369">
649
  <name>$column</name>
650
  <default><![CDATA[]]></default>
651
  <type/>
652
  </argument>
653
  </method>
654
- <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="439" package="Media Library Assistant">
655
  <name>_build_inline_data</name>
656
  <full_name>_build_inline_data</full_name>
657
- <docblock line="430">
658
  <description><![CDATA[Add hidden fields with the data for use in the inline editor]]></description>
659
  <long-description><![CDATA[]]></long-description>
660
- <tag line="430" name="since" description="0.20"/>
661
- <tag line="430" name="param" description="A singular attachment (post) object" type="object" variable="$item">
662
  <type by_reference="false">object</type>
663
  </tag>
664
- <tag line="430" name="return" description="HTML &lt;div&gt; with row data" type="string">
665
  <type by_reference="false">string</type>
666
  </tag>
667
  </docblock>
668
- <argument line="439">
669
  <name>$item</name>
670
  <default><![CDATA[]]></default>
671
  <type/>
672
  </argument>
673
  </method>
674
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="478" package="Media Library Assistant">
675
  <name>column_ID_parent</name>
676
  <full_name>column_ID_parent</full_name>
677
- <docblock line="470">
678
  <description><![CDATA[Supply the content for a custom column]]></description>
679
  <long-description><![CDATA[]]></long-description>
680
- <tag line="470" name="since" description="0.1"/>
681
- <tag line="470" name="param" description="A singular attachment (post) object" type="array" variable="$item">
682
  <type by_reference="false">array</type>
683
  </tag>
684
- <tag line="470" name="return" description="HTML markup to be placed inside the column" type="string">
685
  <type by_reference="false">string</type>
686
  </tag>
687
  </docblock>
688
- <argument line="478">
689
  <name>$item</name>
690
  <default><![CDATA[]]></default>
691
  <type/>
692
  </argument>
693
  </method>
694
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="496" package="Media Library Assistant">
695
  <name>column_title_name</name>
696
  <full_name>column_title_name</full_name>
697
- <docblock line="488">
698
  <description><![CDATA[Supply the content for a custom column]]></description>
699
  <long-description><![CDATA[]]></long-description>
700
- <tag line="488" name="since" description="0.1"/>
701
- <tag line="488" name="param" description="A singular attachment (post) object" type="array" variable="$item">
702
  <type by_reference="false">array</type>
703
  </tag>
704
- <tag line="488" name="return" description="HTML markup to be placed inside the column" type="string">
705
  <type by_reference="false">string</type>
706
  </tag>
707
  </docblock>
708
- <argument line="496">
709
  <name>$item</name>
710
  <default><![CDATA[]]></default>
711
  <type/>
712
  </argument>
713
  </method>
714
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="525" package="Media Library Assistant">
715
  <name>column_post_title</name>
716
  <full_name>column_post_title</full_name>
717
- <docblock line="517">
718
  <description><![CDATA[Supply the content for a custom column]]></description>
719
  <long-description><![CDATA[]]></long-description>
720
- <tag line="517" name="since" description="0.1"/>
721
- <tag line="517" name="param" description="A singular attachment (post) object" type="array" variable="$item">
722
  <type by_reference="false">array</type>
723
  </tag>
724
- <tag line="517" name="return" description="HTML markup to be placed inside the column" type="string">
725
  <type by_reference="false">string</type>
726
  </tag>
727
  </docblock>
728
- <argument line="525">
729
  <name>$item</name>
730
  <default><![CDATA[]]></default>
731
  <type/>
732
  </argument>
733
  </method>
734
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="543" package="Media Library Assistant">
735
  <name>column_post_name</name>
736
  <full_name>column_post_name</full_name>
737
- <docblock line="535">
738
  <description><![CDATA[Supply the content for a custom column]]></description>
739
  <long-description><![CDATA[]]></long-description>
740
- <tag line="535" name="since" description="0.1"/>
741
- <tag line="535" name="param" description="A singular attachment (post) object" type="array" variable="$item">
742
  <type by_reference="false">array</type>
743
  </tag>
744
- <tag line="535" name="return" description="HTML markup to be placed inside the column" type="string">
745
  <type by_reference="false">string</type>
746
  </tag>
747
  </docblock>
748
- <argument line="543">
749
  <name>$item</name>
750
  <default><![CDATA[]]></default>
751
  <type/>
752
  </argument>
753
  </method>
754
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="561" package="Media Library Assistant">
755
  <name>column_parent</name>
756
  <full_name>column_parent</full_name>
757
- <docblock line="553">
758
  <description><![CDATA[Supply the content for a custom column]]></description>
759
  <long-description><![CDATA[]]></long-description>
760
- <tag line="553" name="since" description="0.1"/>
761
- <tag line="553" name="param" description="A singular attachment (post) object" type="array" variable="$item">
762
  <type by_reference="false">array</type>
763
  </tag>
764
- <tag line="553" name="return" description="HTML markup to be placed inside the column" type="string">
765
  <type by_reference="false">string</type>
766
  </tag>
767
  </docblock>
768
- <argument line="561">
769
  <name>$item</name>
770
  <default><![CDATA[]]></default>
771
  <type/>
772
  </argument>
773
  </method>
774
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="573" package="Media Library Assistant">
775
  <name>column_featured</name>
776
  <full_name>column_featured</full_name>
777
- <docblock line="565">
778
  <description><![CDATA[Supply the content for a custom column]]></description>
779
  <long-description><![CDATA[]]></long-description>
780
- <tag line="565" name="since" description="0.1"/>
781
- <tag line="565" name="param" description="A singular attachment (post) object" type="array" variable="$item">
782
  <type by_reference="false">array</type>
783
  </tag>
784
- <tag line="565" name="return" description="HTML markup to be placed inside the column" type="string">
785
  <type by_reference="false">string</type>
786
  </tag>
787
  </docblock>
788
- <argument line="573">
789
  <name>$item</name>
790
  <default><![CDATA[]]></default>
791
  <type/>
792
  </argument>
793
  </method>
794
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="596" package="Media Library Assistant">
795
  <name>column_inserted</name>
796
  <full_name>column_inserted</full_name>
797
- <docblock line="588">
798
  <description><![CDATA[Supply the content for a custom column]]></description>
799
  <long-description><![CDATA[]]></long-description>
800
- <tag line="588" name="since" description="0.1"/>
801
- <tag line="588" name="param" description="A singular attachment (post) object" type="array" variable="$item">
802
  <type by_reference="false">array</type>
803
  </tag>
804
- <tag line="588" name="return" description="HTML markup to be placed inside the column" type="string">
805
  <type by_reference="false">string</type>
806
  </tag>
807
  </docblock>
808
- <argument line="596">
809
  <name>$item</name>
810
  <default><![CDATA[]]></default>
811
  <type/>
812
  </argument>
813
  </method>
814
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="623" package="Media Library Assistant">
815
  <name>column_alt_text</name>
816
  <full_name>column_alt_text</full_name>
817
- <docblock line="615">
818
  <description><![CDATA[Supply the content for a custom column]]></description>
819
  <long-description><![CDATA[]]></long-description>
820
- <tag line="615" name="since" description="0.1"/>
821
- <tag line="615" name="param" description="A singular attachment (post) object" type="array" variable="$item">
822
  <type by_reference="false">array</type>
823
  </tag>
824
- <tag line="615" name="return" description="HTML markup to be placed inside the column" type="string">
825
  <type by_reference="false">string</type>
826
  </tag>
827
  </docblock>
828
- <argument line="623">
829
  <name>$item</name>
830
  <default><![CDATA[]]></default>
831
  <type/>
832
  </argument>
833
  </method>
834
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="638" package="Media Library Assistant">
835
  <name>column_caption</name>
836
  <full_name>column_caption</full_name>
837
- <docblock line="630">
838
  <description><![CDATA[Supply the content for a custom column]]></description>
839
  <long-description><![CDATA[]]></long-description>
840
- <tag line="630" name="since" description="0.1"/>
841
- <tag line="630" name="param" description="A singular attachment (post) object" type="array" variable="$item">
842
  <type by_reference="false">array</type>
843
  </tag>
844
- <tag line="630" name="return" description="HTML markup to be placed inside the column" type="string">
845
  <type by_reference="false">string</type>
846
  </tag>
847
  </docblock>
848
- <argument line="638">
849
  <name>$item</name>
850
  <default><![CDATA[]]></default>
851
  <type/>
852
  </argument>
853
  </method>
854
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="650" package="Media Library Assistant">
855
  <name>column_description</name>
856
  <full_name>column_description</full_name>
857
- <docblock line="642">
858
  <description><![CDATA[Supply the content for a custom column]]></description>
859
  <long-description><![CDATA[]]></long-description>
860
- <tag line="642" name="since" description="0.1"/>
861
- <tag line="642" name="param" description="A singular attachment (post) object" type="array" variable="$item">
862
  <type by_reference="false">array</type>
863
  </tag>
864
- <tag line="642" name="return" description="HTML markup to be placed inside the column" type="string">
865
  <type by_reference="false">string</type>
866
  </tag>
867
  </docblock>
868
- <argument line="650">
869
  <name>$item</name>
870
  <default><![CDATA[]]></default>
871
  <type/>
872
  </argument>
873
  </method>
874
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="662" package="Media Library Assistant">
875
  <name>column_post_mime_type</name>
876
  <full_name>column_post_mime_type</full_name>
877
- <docblock line="654">
878
  <description><![CDATA[Supply the content for a custom column]]></description>
879
  <long-description><![CDATA[]]></long-description>
880
- <tag line="654" name="since" description="0.30"/>
881
- <tag line="654" name="param" description="A singular attachment (post) object" type="array" variable="$item">
882
  <type by_reference="false">array</type>
883
  </tag>
884
- <tag line="654" name="return" description="HTML markup to be placed inside the column" type="string">
885
  <type by_reference="false">string</type>
886
  </tag>
887
  </docblock>
888
- <argument line="662">
889
  <name>$item</name>
890
  <default><![CDATA[]]></default>
891
  <type/>
892
  </argument>
893
  </method>
894
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="674" package="Media Library Assistant">
895
  <name>column_base_file</name>
896
  <full_name>column_base_file</full_name>
897
- <docblock line="666">
898
  <description><![CDATA[Supply the content for a custom column]]></description>
899
  <long-description><![CDATA[]]></long-description>
900
- <tag line="666" name="since" description="0.1"/>
901
- <tag line="666" name="param" description="A singular attachment (post) object" type="array" variable="$item">
902
  <type by_reference="false">array</type>
903
  </tag>
904
- <tag line="666" name="return" description="HTML markup to be placed inside the column" type="string">
905
  <type by_reference="false">string</type>
906
  </tag>
907
  </docblock>
908
- <argument line="674">
909
  <name>$item</name>
910
  <default><![CDATA[]]></default>
911
  <type/>
912
  </argument>
913
  </method>
914
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="686" package="Media Library Assistant">
915
  <name>column_date</name>
916
  <full_name>column_date</full_name>
917
- <docblock line="678">
918
  <description><![CDATA[Supply the content for a custom column]]></description>
919
  <long-description><![CDATA[]]></long-description>
920
- <tag line="678" name="since" description="0.1"/>
921
- <tag line="678" name="param" description="A singular attachment (post) object" type="array" variable="$item">
922
  <type by_reference="false">array</type>
923
  </tag>
924
- <tag line="678" name="return" description="HTML markup to be placed inside the column" type="string">
925
  <type by_reference="false">string</type>
926
  </tag>
927
  </docblock>
928
- <argument line="686">
929
  <name>$item</name>
930
  <default><![CDATA[]]></default>
931
  <type/>
932
  </argument>
933
  </method>
934
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="715" package="Media Library Assistant">
935
  <name>column_modified</name>
936
  <full_name>column_modified</full_name>
937
- <docblock line="707">
938
  <description><![CDATA[Supply the content for a custom column]]></description>
939
  <long-description><![CDATA[]]></long-description>
940
- <tag line="707" name="since" description="0.30"/>
941
- <tag line="707" name="param" description="A singular attachment (post) object" type="array" variable="$item">
942
  <type by_reference="false">array</type>
943
  </tag>
944
- <tag line="707" name="return" description="HTML markup to be placed inside the column" type="string">
945
  <type by_reference="false">string</type>
946
  </tag>
947
  </docblock>
948
- <argument line="715">
949
  <name>$item</name>
950
  <default><![CDATA[]]></default>
951
  <type/>
952
  </argument>
953
  </method>
954
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="744" package="Media Library Assistant">
955
  <name>column_author</name>
956
  <full_name>column_author</full_name>
957
- <docblock line="736">
958
  <description><![CDATA[Supply the content for a custom column]]></description>
959
  <long-description><![CDATA[]]></long-description>
960
- <tag line="736" name="since" description="0.30"/>
961
- <tag line="736" name="param" description="A singular attachment (post) object" type="array" variable="$item">
962
  <type by_reference="false">array</type>
963
  </tag>
964
- <tag line="736" name="return" description="HTML markup to be placed inside the column" type="string">
965
  <type by_reference="false">string</type>
966
  </tag>
967
  </docblock>
968
- <argument line="744">
969
  <name>$item</name>
970
  <default><![CDATA[]]></default>
971
  <type/>
972
  </argument>
973
  </method>
974
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="761" package="Media Library Assistant">
975
  <name>column_attached_to</name>
976
  <full_name>column_attached_to</full_name>
977
- <docblock line="753">
978
  <description><![CDATA[Supply the content for a custom column]]></description>
979
  <long-description><![CDATA[]]></long-description>
980
- <tag line="753" name="since" description="0.1"/>
981
- <tag line="753" name="param" description="A singular attachment (post) object" type="array" variable="$item">
982
  <type by_reference="false">array</type>
983
  </tag>
984
- <tag line="753" name="return" description="HTML markup to be placed inside the column" type="string">
985
  <type by_reference="false">string</type>
986
  </tag>
987
  </docblock>
988
- <argument line="761">
989
  <name>$item</name>
990
  <default><![CDATA[]]></default>
991
  <type/>
992
  </argument>
993
  </method>
994
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="787" package="Media Library Assistant">
995
  <name>get_columns</name>
996
  <full_name>get_columns</full_name>
997
- <docblock line="780">
998
  <description><![CDATA[This method dictates the table's columns and titles]]></description>
999
  <long-description><![CDATA[]]></long-description>
1000
- <tag line="780" name="since" description="0.1"/>
1001
- <tag line="780" name="return" description="Column information: 'slugs'=&gt;'Visible Titles'" type="array">
1002
  <type by_reference="false">array</type>
1003
  </tag>
1004
  </docblock>
1005
  </method>
1006
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="799" package="Media Library Assistant">
1007
  <name>get_hidden_columns</name>
1008
  <full_name>get_hidden_columns</full_name>
1009
- <docblock line="791">
1010
  <description><![CDATA[Returns the list of currently hidden columns from a user option or
1011
  from default values if the option is not set]]></description>
1012
  <long-description><![CDATA[]]></long-description>
1013
- <tag line="791" name="since" description="0.1"/>
1014
- <tag line="791" name="return" description="Column information,e.g., array(0 =&gt; 'ID_parent, 1 =&gt; 'title_name')" type="array">
1015
  <type by_reference="false">array</type>
1016
  </tag>
1017
  </docblock>
1018
  </method>
1019
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="819" package="Media Library Assistant">
1020
  <name>get_sortable_columns</name>
1021
  <full_name>get_sortable_columns</full_name>
1022
- <docblock line="809">
1023
  <description><![CDATA[Returns an array where the key is the column that needs to be sortable
1024
  and the value is db column to sort by.]]></description>
1025
  <long-description><![CDATA[<p>Also notes the current sort column,
1026
  if set.</p>]]></long-description>
1027
- <tag line="809" name="since" description="0.1"/>
1028
- <tag line="809" name="return" description="Sortable column information,e.g., 'slugs'=&gt;array('data_values',boolean)" type="array">
1029
  <type by_reference="false">array</type>
1030
  </tag>
1031
  </docblock>
1032
  </method>
1033
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="846" package="Media Library Assistant">
1034
  <name>get_views</name>
1035
  <full_name>get_views</full_name>
1036
- <docblock line="838">
1037
  <description><![CDATA[Returns an associative array listing all the views that can be used with this table.]]></description>
1038
  <long-description><![CDATA[<p>These are listed across the top of the page and managed by WordPress.</p>]]></long-description>
1039
- <tag line="838" name="since" description="0.1"/>
1040
- <tag line="838" name="return" description="View information,e.g., array ( id =&gt; link )" type="array">
1041
  <type by_reference="false">array</type>
1042
  </tag>
1043
  </docblock>
1044
  </method>
1045
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="916" package="Media Library Assistant">
1046
  <name>get_bulk_actions</name>
1047
  <full_name>get_bulk_actions</full_name>
1048
- <docblock line="908">
1049
  <description><![CDATA[Get an associative array ( option_name => option_title ) with the list
1050
  of bulk actions available on this table.]]></description>
1051
  <long-description><![CDATA[]]></long-description>
1052
- <tag line="908" name="since" description="0.1"/>
1053
- <tag line="908" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
1054
  <type by_reference="false">array</type>
1055
  </tag>
1056
  </docblock>
1057
  </method>
1058
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="947" package="Media Library Assistant">
1059
  <name>extra_tablenav</name>
1060
  <full_name>extra_tablenav</full_name>
1061
- <docblock line="936">
1062
  <description><![CDATA[Extra controls to be displayed between bulk actions and pagination]]></description>
1063
  <long-description><![CDATA[<p>Modeled after class-wp-posts-list-table.php in wp-admin/includes.</p>]]></long-description>
1064
- <tag line="936" name="since" description="0.1"/>
1065
- <tag line="936" name="param" description="'top' or 'bottom', i.e., above or below the table rows" type="string" variable="$which">
1066
  <type by_reference="false">string</type>
1067
  </tag>
1068
- <tag line="936" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
1069
  <type by_reference="false">array</type>
1070
  </tag>
1071
  </docblock>
1072
- <argument line="947">
1073
  <name>$which</name>
1074
  <default><![CDATA[]]></default>
1075
  <type/>
1076
  </argument>
1077
  </method>
1078
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1007" package="Media Library Assistant">
1079
  <name>prepare_items</name>
1080
  <full_name>prepare_items</full_name>
1081
- <docblock line="995">
1082
  <description><![CDATA[Prepares the list of items for displaying]]></description>
1083
  <long-description><![CDATA[<p>This is where you prepare your data for display. This method will usually
1084
  be used to query the database, sort and filter the data, and generally
1085
  get it ready to be displayed. At a minimum, we should set $this->items and
1086
  $this->set_pagination_args().</p>]]></long-description>
1087
- <tag line="995" name="since" description="0.1"/>
1088
- <tag line="995" name="return" description="" type="void">
1089
  <type by_reference="false">void</type>
1090
  </tag>
1091
  </docblock>
1092
  </method>
1093
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1053" package="Media Library Assistant">
1094
  <name>single_row</name>
1095
  <full_name>single_row</full_name>
1096
- <docblock line="1044">
1097
  <description><![CDATA[Generates (echoes) content for a single row of the table]]></description>
1098
  <long-description><![CDATA[]]></long-description>
1099
- <tag line="1044" name="since" description=".20"/>
1100
- <tag line="1044" name="param" description="the current item" type="object" variable="$item">
1101
  <type by_reference="false">object</type>
1102
  </tag>
1103
- <tag line="1044" name="return" description="Echoes the row HTML" type="void">
1104
  <type by_reference="false">void</type>
1105
  </tag>
1106
  </docblock>
1107
- <argument line="1053">
1108
  <name>$item</name>
1109
  <default><![CDATA[]]></default>
1110
  <type/>
1111
  </argument>
1112
  </method>
1113
- <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="1072" package="Media Library Assistant">
1114
- <name>_mime_types</name>
1115
- <full_name>_mime_types</full_name>
1116
- <docblock line="1062">
1117
- <description><![CDATA[Get possible mime types for view preparation]]></description>
1118
- <long-description><![CDATA[<p>Modeled after get_post_mime_types in wp-admin/includes/post.php,
1119
- with additional entries.</p>]]></long-description>
1120
- <tag line="1062" name="since" description="0.1"/>
1121
- <tag line="1062" name="return" description="Mime type names and HTML markup for views" type="array">
1122
- <type by_reference="false">array</type>
1123
- </tag>
1124
- </docblock>
1125
- </method>
1126
- <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="1150" package="Media Library Assistant">
1127
- <name>_avail_mime_types</name>
1128
- <full_name>_avail_mime_types</full_name>
1129
- <docblock line="1138">
1130
- <description><![CDATA[Get mime types with one or more attachments for view preparation]]></description>
1131
- <long-description><![CDATA[<p>Modeled after get_available_post_mime_types in wp-admin/includes/post.php,
1132
- with additional entries.</p>]]></long-description>
1133
- <tag line="1138" name="since" description="0.1"/>
1134
- <tag line="1138" name="param" description="Number of posts for each mime type" type="array" variable="$num_posts">
1135
- <type by_reference="false">array</type>
1136
- </tag>
1137
- <tag line="1138" name="return" description="Mime type names" type="array">
1138
- <type by_reference="false">array</type>
1139
- </tag>
1140
- </docblock>
1141
- <argument line="1150">
1142
- <name>$num_posts</name>
1143
- <default><![CDATA[]]></default>
1144
- <type/>
1145
- </argument>
1146
- </method>
1147
  </class>
1148
  </file>
1149
- <file path="includes\class-mla-main.php" hash="a590408a5d6c95cc857e68eb402829e3" package="Media Library Assistant">
1150
  <docblock line="2">
1151
  <description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
1152
  <long-description><![CDATA[]]></long-description>
@@ -1297,487 +1313,531 @@ of images and files held in the WordPress Media Library.]]></description>
1297
  </tag>
1298
  </docblock>
1299
  </constant>
1300
- <constant namespace="global" line="290" package="Media Library Assistant">
1301
  <name>MLA_ADMIN_NONCE</name>
1302
  <full_name>MLA_ADMIN_NONCE</full_name>
1303
  <value><![CDATA['mla_admin']]></value>
1304
- <docblock line="283">
1305
  <description><![CDATA[Action name; uniquely identifies the nonce]]></description>
1306
  <long-description><![CDATA[]]></long-description>
1307
- <tag line="283" name="since" description="0.1"/>
1308
- <tag line="283" name="var" description="" type="string">
1309
  <type by_reference="false">string</type>
1310
  </tag>
1311
  </docblock>
1312
  </constant>
1313
- <constant namespace="global" line="299" package="Media Library Assistant">
1314
  <name>MLA_ADMIN_SINGLE_DELETE</name>
1315
  <full_name>MLA_ADMIN_SINGLE_DELETE</full_name>
1316
  <value><![CDATA['single_item_delete']]></value>
1317
- <docblock line="292">
1318
  <description><![CDATA[mla_admin_action value for permanently deleting a single item]]></description>
1319
  <long-description><![CDATA[]]></long-description>
1320
- <tag line="292" name="since" description="0.1"/>
1321
- <tag line="292" name="var" description="" type="string">
1322
  <type by_reference="false">string</type>
1323
  </tag>
1324
  </docblock>
1325
  </constant>
1326
- <constant namespace="global" line="308" package="Media Library Assistant">
1327
  <name>MLA_ADMIN_SINGLE_EDIT_DISPLAY</name>
1328
  <full_name>MLA_ADMIN_SINGLE_EDIT_DISPLAY</full_name>
1329
  <value><![CDATA['single_item_edit_display']]></value>
1330
- <docblock line="301">
1331
  <description><![CDATA[mla_admin_action value for displaying a single item]]></description>
1332
  <long-description><![CDATA[]]></long-description>
1333
- <tag line="301" name="since" description="0.1"/>
1334
- <tag line="301" name="var" description="" type="string">
1335
  <type by_reference="false">string</type>
1336
  </tag>
1337
  </docblock>
1338
  </constant>
1339
- <constant namespace="global" line="317" package="Media Library Assistant">
1340
  <name>MLA_ADMIN_SINGLE_EDIT_UPDATE</name>
1341
  <full_name>MLA_ADMIN_SINGLE_EDIT_UPDATE</full_name>
1342
  <value><![CDATA['single_item_edit_update']]></value>
1343
- <docblock line="310">
1344
  <description><![CDATA[mla_admin_action value for updating a single item]]></description>
1345
  <long-description><![CDATA[]]></long-description>
1346
- <tag line="310" name="since" description="0.1"/>
1347
- <tag line="310" name="var" description="" type="string">
1348
  <type by_reference="false">string</type>
1349
  </tag>
1350
  </docblock>
1351
  </constant>
1352
- <constant namespace="global" line="326" package="Media Library Assistant">
1353
  <name>MLA_ADMIN_SINGLE_RESTORE</name>
1354
  <full_name>MLA_ADMIN_SINGLE_RESTORE</full_name>
1355
  <value><![CDATA['single_item_restore']]></value>
1356
- <docblock line="319">
1357
  <description><![CDATA[mla_admin_action value for restoring a single item from the trash]]></description>
1358
  <long-description><![CDATA[]]></long-description>
1359
- <tag line="319" name="since" description="0.1"/>
1360
- <tag line="319" name="var" description="" type="string">
1361
  <type by_reference="false">string</type>
1362
  </tag>
1363
  </docblock>
1364
  </constant>
1365
- <constant namespace="global" line="335" package="Media Library Assistant">
1366
  <name>MLA_ADMIN_SINGLE_TRASH</name>
1367
  <full_name>MLA_ADMIN_SINGLE_TRASH</full_name>
1368
  <value><![CDATA['single_item_trash']]></value>
1369
- <docblock line="328">
1370
  <description><![CDATA[mla_admin_action value for moving a single item to the trash]]></description>
1371
  <long-description><![CDATA[]]></long-description>
1372
- <tag line="328" name="since" description="0.1"/>
1373
- <tag line="328" name="var" description="" type="string">
1374
  <type by_reference="false">string</type>
1375
  </tag>
1376
  </docblock>
1377
  </constant>
1378
- <property final="false" static="true" visibility="private" line="122" namespace="global" package="Media Library Assistant">
1379
  <name>$page_hooks</name>
1380
  <default><![CDATA[array()]]></default>
1381
- <docblock line="115">
1382
  <description><![CDATA[Holds screen ids to match help text to corresponding screen]]></description>
1383
  <long-description><![CDATA[]]></long-description>
1384
- <tag line="115" name="since" description="0.1"/>
1385
- <tag line="115" name="var" description="" type="array">
1386
  <type by_reference="false">array</type>
1387
  </tag>
1388
  </docblock>
1389
  </property>
1390
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="131" package="Media Library Assistant">
1391
  <name>initialize</name>
1392
  <full_name>initialize</full_name>
1393
- <docblock line="124">
1394
  <description><![CDATA[Initialization function, similar to __construct()]]></description>
1395
  <long-description><![CDATA[]]></long-description>
1396
- <tag line="124" name="since" description="0.1"/>
1397
- <tag line="124" name="return" description="" type="void">
1398
  <type by_reference="false">void</type>
1399
  </tag>
1400
  </docblock>
1401
  </method>
1402
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="150" package="Media Library Assistant">
1403
  <name>mla_admin_init_action</name>
1404
  <full_name>mla_admin_init_action</full_name>
1405
- <docblock line="143">
1406
  <description><![CDATA[Load the plugin's Ajax handler]]></description>
1407
  <long-description><![CDATA[]]></long-description>
1408
- <tag line="143" name="since" description="0.20"/>
1409
- <tag line="143" name="return" description="" type="void">
1410
  <type by_reference="false">void</type>
1411
  </tag>
1412
  </docblock>
1413
  </method>
1414
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="163" package="Media Library Assistant">
1415
  <name>mla_admin_enqueue_scripts_action</name>
1416
  <full_name>mla_admin_enqueue_scripts_action</full_name>
1417
- <docblock line="154">
1418
  <description><![CDATA[Load the plugin's Style Sheet and Javascript files]]></description>
1419
  <long-description><![CDATA[]]></long-description>
1420
- <tag line="154" name="since" description="0.1"/>
1421
- <tag line="154" name="param" description="Name of the page being loaded" type="string" variable="$page_hook">
1422
  <type by_reference="false">string</type>
1423
  </tag>
1424
- <tag line="154" name="return" description="" type="void">
1425
  <type by_reference="false">void</type>
1426
  </tag>
1427
  </docblock>
1428
- <argument line="163">
1429
  <name>$page_hook</name>
1430
  <default><![CDATA[]]></default>
1431
  <type/>
1432
  </argument>
1433
  </method>
1434
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="206" package="Media Library Assistant">
1435
  <name>mla_admin_menu_action</name>
1436
  <full_name>mla_admin_menu_action</full_name>
1437
- <docblock line="193">
1438
  <description><![CDATA[Add the submenu pages]]></description>
1439
  <long-description><![CDATA[<p>Add a submenu page in the "Media" section,
1440
  add submenu page(s) for attachment taxonomies,
1441
  add filter to clean up taxonomy submenu labels
1442
  add settings page in the "Settings" section,
1443
  add settings link in the Plugins section entry for MLA.</p>]]></long-description>
1444
- <tag line="193" name="since" description="0.1"/>
1445
- <tag line="193" name="return" description="" type="void">
1446
  <type by_reference="false">void</type>
1447
  </tag>
1448
  </docblock>
1449
  </method>
1450
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="237" package="Media Library Assistant">
1451
  <name>mla_add_menu_options</name>
1452
  <full_name>mla_add_menu_options</full_name>
1453
- <docblock line="230">
1454
  <description><![CDATA[Add the "XX Entries per page" filter to the Screen Options tab]]></description>
1455
  <long-description><![CDATA[]]></long-description>
1456
- <tag line="230" name="since" description="0.1"/>
1457
- <tag line="230" name="return" description="" type="void">
1458
  <type by_reference="false">void</type>
1459
  </tag>
1460
  </docblock>
1461
  </method>
1462
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="259" package="Media Library Assistant">
1463
  <name>mla_screen_options_show_screen_filter</name>
1464
  <full_name>mla_screen_options_show_screen_filter</full_name>
1465
- <docblock line="249">
1466
  <description><![CDATA[Only show screen options on the table-list screen]]></description>
1467
  <long-description><![CDATA[]]></long-description>
1468
- <tag line="249" name="since" description="0.1"/>
1469
- <tag line="249" name="param" description="True to display &quot;Screen Options&quot;, false to suppress them" type="boolean" variable="$show_screen">
1470
  <type by_reference="false">boolean</type>
1471
  </tag>
1472
- <tag line="249" name="param" description="Name of the page being loaded" type="string" variable="$this_screen">
1473
  <type by_reference="false">string</type>
1474
  </tag>
1475
- <tag line="249" name="return" description="True to display &quot;Screen Options&quot;, false to suppress them" type="boolean">
1476
  <type by_reference="false">boolean</type>
1477
  </tag>
1478
  </docblock>
1479
- <argument line="259">
1480
  <name>$show_screen</name>
1481
  <default><![CDATA[]]></default>
1482
  <type/>
1483
  </argument>
1484
- <argument line="259">
1485
  <name>$this_screen</name>
1486
  <default><![CDATA[]]></default>
1487
  <type/>
1488
  </argument>
1489
  </method>
1490
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="277" package="Media Library Assistant">
1491
  <name>mla_set_screen_option_filter</name>
1492
  <full_name>mla_set_screen_option_filter</full_name>
1493
- <docblock line="266">
1494
  <description><![CDATA[Save the "Entries per page" option set by this user]]></description>
1495
  <long-description><![CDATA[]]></long-description>
1496
- <tag line="266" name="since" description="0.1"/>
1497
- <tag line="266" name="param" description="Unknown - always false?" type="boolean" variable="$status">
1498
  <type by_reference="false">boolean</type>
1499
  </tag>
1500
- <tag line="266" name="param" description="Name of the option being changed" type="string" variable="$option">
1501
  <type by_reference="false">string</type>
1502
  </tag>
1503
- <tag line="266" name="param" description="New value of the option" type="string" variable="$value">
1504
  <type by_reference="false">string</type>
1505
  </tag>
1506
- <tag line="266" name="return" description="New value if this is our option, otherwise nothing" type="string|void">
1507
  <type by_reference="false">string</type>
1508
  <type by_reference="false">void</type>
1509
  </tag>
1510
  </docblock>
1511
- <argument line="277">
1512
  <name>$status</name>
1513
  <default><![CDATA[]]></default>
1514
  <type/>
1515
  </argument>
1516
- <argument line="277">
1517
  <name>$option</name>
1518
  <default><![CDATA[]]></default>
1519
  <type/>
1520
  </argument>
1521
- <argument line="277">
1522
  <name>$value</name>
1523
  <default><![CDATA[]]></default>
1524
  <type/>
1525
  </argument>
1526
  </method>
1527
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="347" package="Media Library Assistant">
1528
  <name>mla_edit_tax_redirect</name>
1529
  <full_name>mla_edit_tax_redirect</full_name>
1530
- <docblock line="337">
1531
  <description><![CDATA[Redirect to the Edit Tags/Categories page]]></description>
1532
  <long-description><![CDATA[<p>The custom taxonomy add/edit submenu entries go to "upload.php" by default.
1533
  This filter is the only way to redirect them to the correct WordPress page.</p>]]></long-description>
1534
- <tag line="337" name="since" description="0.1"/>
1535
- <tag line="337" name="return" description="" type="void">
1536
  <type by_reference="false">void</type>
1537
  </tag>
1538
  </docblock>
1539
  </method>
1540
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="365" package="Media Library Assistant">
1541
  <name>mla_add_help_tab</name>
1542
  <full_name>mla_add_help_tab</full_name>
1543
- <docblock line="358">
1544
  <description><![CDATA[Add contextual help tabs to all the MLA pages]]></description>
1545
  <long-description><![CDATA[]]></long-description>
1546
- <tag line="358" name="since" description="0.1"/>
1547
- <tag line="358" name="return" description="" type="void">
1548
  <type by_reference="false">void</type>
1549
  </tag>
1550
  </docblock>
1551
  </method>
1552
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="457" package="Media Library Assistant">
1553
  <name>mla_modify_parent_menu</name>
1554
  <full_name>mla_modify_parent_menu</full_name>
1555
- <docblock line="444">
1556
  <description><![CDATA[Cleanup menus for Edit Tags/Categories page]]></description>
1557
  <long-description><![CDATA[<p>The submenu entries for custom taxonomies under the "Media" menu are not set up
1558
  correctly by WordPress, so this function cleans them up, redirecting the request
1559
  to the right WordPress page for editing/adding taxonomy terms.</p>]]></long-description>
1560
- <tag line="444" name="since" description="0.1"/>
1561
- <tag line="444" name="param" description="The top-level menu page" type="array" variable="$parent_file">
1562
  <type by_reference="false">array</type>
1563
  </tag>
1564
- <tag line="444" name="return" description="The updated top-level menu page" type="string">
1565
  <type by_reference="false">string</type>
1566
  </tag>
1567
  </docblock>
1568
- <argument line="457">
1569
  <name>$parent_file</name>
1570
  <default><![CDATA[]]></default>
1571
  <type/>
1572
  </argument>
1573
  </method>
1574
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="488" package="Media Library Assistant">
1575
  <name>mla_render_admin_page</name>
1576
  <full_name>mla_render_admin_page</full_name>
1577
- <docblock line="481">
1578
  <description><![CDATA[Render the "Assistant" subpage in the Media section, using the list_table package]]></description>
1579
  <long-description><![CDATA[]]></long-description>
1580
- <tag line="481" name="since" description="0.1"/>
1581
- <tag line="481" name="return" description="" type="void">
1582
  <type by_reference="false">void</type>
1583
  </tag>
1584
  </docblock>
1585
  </method>
1586
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="682" package="Media Library Assistant">
1587
  <name>mla_inline_edit_action</name>
1588
  <full_name>mla_inline_edit_action</full_name>
1589
- <docblock line="673">
1590
  <description><![CDATA[Ajax handler for inline editing (quick and bulk edit)]]></description>
1591
  <long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
1592
- <tag line="673" name="since" description="0.20"/>
1593
- <tag line="673" name="return" description="echo HTML &lt;tr&gt; markup for updated row or error message, then die()" type="void">
1594
  <type by_reference="false">void</type>
1595
  </tag>
1596
  </docblock>
1597
  </method>
1598
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="751" package="Media Library Assistant">
1599
  <name>_build_inline_edit_form</name>
1600
  <full_name>_build_inline_edit_form</full_name>
1601
- <docblock line="740">
1602
  <description><![CDATA[Build the hidden row templates for inline editing (quick and bulk edit)]]></description>
1603
  <long-description><![CDATA[<p>inspired by inline_edit() in wp-admin\includes\class-wp-posts-list-table.php.</p>]]></long-description>
1604
- <tag line="740" name="since" description="0.20"/>
1605
- <tag line="740" name="param" description="MLA List Table object" type="object" variable="$MLAListTable">
1606
  <type by_reference="false">object</type>
1607
  </tag>
1608
- <tag line="740" name="return" description="HTML &lt;form&gt; markup for hidden rows" type="string">
1609
  <type by_reference="false">string</type>
1610
  </tag>
1611
  </docblock>
1612
- <argument line="751">
1613
  <name>$MLAListTable</name>
1614
  <default><![CDATA[]]></default>
1615
  <type/>
1616
  </argument>
1617
  </method>
1618
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="852" package="Media Library Assistant">
1619
  <name>_authors_dropdown</name>
1620
  <full_name>_authors_dropdown</full_name>
1621
- <docblock line="841">
1622
  <description><![CDATA[Get the edit Authors dropdown box, if user has suitable permissions]]></description>
1623
  <long-description><![CDATA[]]></long-description>
1624
- <tag line="841" name="since" description="0.20"/>
1625
- <tag line="841" name="param" description="User ID of the current author" type="integer" variable="$author">
1626
  <type by_reference="false">integer</type>
1627
  </tag>
1628
- <tag line="841" name="param" description="HTML name attribute" type="string" variable="$name">
1629
  <type by_reference="false">string</type>
1630
  </tag>
1631
- <tag line="841" name="param" description="HTML class attribute" type="string" variable="$class">
1632
  <type by_reference="false">string</type>
1633
  </tag>
1634
- <tag line="841" name="return" description="HTML markup for the dropdown field or False" type="string|false">
1635
  <type by_reference="false">string</type>
1636
  <type by_reference="false">false</type>
1637
  </tag>
1638
  </docblock>
1639
- <argument line="852">
1640
  <name>$author</name>
1641
  <default><![CDATA[0]]></default>
1642
  <type/>
1643
  </argument>
1644
- <argument line="852">
1645
  <name>$name</name>
1646
  <default><![CDATA['post_author']]></default>
1647
  <type/>
1648
  </argument>
1649
- <argument line="852">
1650
  <name>$class</name>
1651
  <default><![CDATA['authors']]></default>
1652
  <type/>
1653
  </argument>
1654
  </method>
1655
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="884" package="Media Library Assistant">
1656
  <name>_current_bulk_action</name>
1657
  <full_name>_current_bulk_action</full_name>
1658
- <docblock line="877">
1659
  <description><![CDATA[Get the current action selected from the bulk actions dropdown]]></description>
1660
  <long-description><![CDATA[]]></long-description>
1661
- <tag line="877" name="since" description="0.1"/>
1662
- <tag line="877" name="return" description="The action name or False if no action was selected" type="string|false">
1663
  <type by_reference="false">string</type>
1664
  <type by_reference="false">false</type>
1665
  </tag>
1666
  </docblock>
1667
  </method>
1668
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="914" package="Media Library Assistant">
1669
  <name>_delete_single_item</name>
1670
  <full_name>_delete_single_item</full_name>
1671
- <docblock line="905">
1672
  <description><![CDATA[Delete a single item permanently]]></description>
1673
  <long-description><![CDATA[]]></long-description>
1674
- <tag line="905" name="since" description="0.1"/>
1675
- <tag line="905" name="param" description="The form POST data" type="array" variable="$post_id">
1676
  <type by_reference="false">array</type>
1677
  </tag>
1678
- <tag line="905" name="return" description="success/failure message and NULL content" type="array">
1679
  <type by_reference="false">array</type>
1680
  </tag>
1681
  </docblock>
1682
- <argument line="914">
1683
  <name>$post_id</name>
1684
  <default><![CDATA[]]></default>
1685
  <type/>
1686
  </argument>
1687
  </method>
1688
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="943" package="Media Library Assistant">
1689
  <name>_display_single_item</name>
1690
  <full_name>_display_single_item</full_name>
1691
- <docblock line="933">
1692
  <description><![CDATA[Display a single item sub page; prepare the form to
1693
  change the meta data for a single attachment.]]></description>
1694
  <long-description><![CDATA[]]></long-description>
1695
- <tag line="933" name="since" description="0.1"/>
1696
- <tag line="933" name="param" description="The WordPress Post ID of the attachment item" type="int" variable="$post_id">
1697
  <type by_reference="false">int</type>
1698
  </tag>
1699
- <tag line="933" name="return" description="message and/or HTML content" type="array">
1700
  <type by_reference="false">array</type>
1701
  </tag>
1702
  </docblock>
1703
- <argument line="943">
1704
  <name>$post_id</name>
1705
  <default><![CDATA[]]></default>
1706
  <type/>
1707
  </argument>
1708
  </method>
1709
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1154" package="Media Library Assistant">
1710
  <name>_update_single_item</name>
1711
  <full_name>_update_single_item</full_name>
1712
- <docblock line="1142">
1713
  <description><![CDATA[Update a single item; change the meta data
1714
  for a single attachment.]]></description>
1715
  <long-description><![CDATA[]]></long-description>
1716
- <tag line="1142" name="since" description="0.1"/>
1717
- <tag line="1142" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
1718
  <type by_reference="false">int</type>
1719
  </tag>
1720
- <tag line="1142" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_data">
 
 
 
1721
  <type by_reference="false">array</type>
1722
  </tag>
1723
- <tag line="1142" name="param" description="Attachment Category and Tag values" type="array" variable="$tax_input">
1724
  <type by_reference="false">array</type>
1725
  </tag>
1726
- <tag line="1142" name="return" description="success/failure message and NULL content" type="array">
1727
  <type by_reference="false">array</type>
1728
  </tag>
1729
  </docblock>
1730
- <argument line="1154">
1731
  <name>$post_id</name>
1732
  <default><![CDATA[]]></default>
1733
  <type/>
1734
  </argument>
1735
- <argument line="1154">
1736
  <name>$new_data</name>
1737
  <default><![CDATA[]]></default>
1738
  <type/>
1739
  </argument>
1740
- <argument line="1154">
1741
  <name>$tax_input</name>
1742
  <default><![CDATA[NULL]]></default>
1743
  <type/>
1744
  </argument>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1745
  </method>
1746
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1302" package="Media Library Assistant">
1747
  <name>_restore_single_item</name>
1748
  <full_name>_restore_single_item</full_name>
1749
- <docblock line="1293">
1750
  <description><![CDATA[Restore a single item from the Trash]]></description>
1751
  <long-description><![CDATA[]]></long-description>
1752
- <tag line="1293" name="since" description="0.1"/>
1753
- <tag line="1293" name="param" description="The form POST data" type="array" variable="$post_id">
1754
  <type by_reference="false">array</type>
1755
  </tag>
1756
- <tag line="1293" name="return" description="success/failure message and NULL content" type="array">
1757
  <type by_reference="false">array</type>
1758
  </tag>
1759
  </docblock>
1760
- <argument line="1302">
1761
  <name>$post_id</name>
1762
  <default><![CDATA[]]></default>
1763
  <type/>
1764
  </argument>
1765
  </method>
1766
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1338" package="Media Library Assistant">
1767
  <name>_trash_single_item</name>
1768
  <full_name>_trash_single_item</full_name>
1769
- <docblock line="1329">
1770
  <description><![CDATA[Move a single item to Trash]]></description>
1771
  <long-description><![CDATA[]]></long-description>
1772
- <tag line="1329" name="since" description="0.1"/>
1773
- <tag line="1329" name="param" description="The form POST data" type="array" variable="$post_id">
1774
  <type by_reference="false">array</type>
1775
  </tag>
1776
- <tag line="1329" name="return" description="success/failure message and NULL content" type="array">
1777
  <type by_reference="false">array</type>
1778
  </tag>
1779
  </docblock>
1780
- <argument line="1338">
1781
  <name>$post_id</name>
1782
  <default><![CDATA[]]></default>
1783
  <type/>
@@ -1886,7 +1946,7 @@ which returns a count of the attachments assigned a given term]]></description>
1886
  </method>
1887
  </class>
1888
  </file>
1889
- <file path="includes\class-mla-settings.php" hash="aed85a573fc181360077d8bcb9817ce9" package="Media Library Assistant">
1890
  <docblock line="2">
1891
  <description><![CDATA[Manages the plugin option settings and provides the settings page to edit them]]></description>
1892
  <long-description><![CDATA[]]></long-description>
@@ -1904,28 +1964,49 @@ and provides the settings page to edit them.]]></description>
1904
  <tag line="9" name="package" description="Media Library Assistant"/>
1905
  <tag line="9" name="since" description="0.1"/>
1906
  </docblock>
1907
- <constant namespace="global" line="20" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
1908
  <name>MLA_SETTINGS_SLUG</name>
1909
  <full_name>MLA_SETTINGS_SLUG</full_name>
1910
  <value><![CDATA['mla-settings-menu']]></value>
1911
- <docblock line="17">
1912
  <description><![CDATA[Provides a unique name for the settings page]]></description>
1913
  <long-description><![CDATA[]]></long-description>
1914
  </docblock>
1915
  </constant>
1916
- <constant namespace="global" line="25" package="Media Library Assistant">
1917
  <name>MLA_VERSION_OPTION</name>
1918
  <full_name>MLA_VERSION_OPTION</full_name>
1919
  <value><![CDATA['current_version']]></value>
1920
- <docblock line="22">
1921
  <description><![CDATA[Provides a unique name for the current version option]]></description>
1922
  <long-description><![CDATA[]]></long-description>
1923
  </docblock>
1924
  </constant>
1925
- <property final="false" static="true" visibility="private" line="51" namespace="global" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
1926
  <name>$mla_options</name>
1927
- <default><![CDATA[array(self::MLA_VERSION_OPTION => array('type' => 'hidden', 'std' => '0'), 'attachment_category' => array('name' => 'Attachment Categories', 'type' => 'hidden', 'std' => 'checked', 'help' => 'Check this option to add support for Attachment Categories.'), 'attachment_tag' => array('name' => 'Attachment Tags', 'type' => 'hidden', 'std' => 'checked', 'help' => 'Check this option to add support for Attachment Tags.'), 'taxonomy_heading' => array('name' => 'Taxonomy Support', 'type' => 'header'), 'taxonomy_support' => array('help' => 'Check the "Support" box to add the taxonomy to the Assistant.<br>Check the "Quick Edit" box to display the taxonomy in the Quick Edit panel.<br>Use the "List Filter" option to select the taxonomy on which to filter the Assistant table listing.', 'std' => array('tax_support' => array('attachment_category' => 'checked', 'attachment_tag' => 'checked'), 'tax_quick_edit' => array('attachment_category' => 'checked', 'attachment_tag' => 'checked'), 'tax_filter' => 'attachment_category'), 'type' => 'custom', 'render' => '_taxonomy_handler', 'update' => '_taxonomy_handler', 'delete' => '_taxonomy_handler', 'reset' => '_taxonomy_handler'), 'orderby_heading' => array('name' => 'Default Table Listing Sort Order', 'type' => 'header'), 'default_orderby' => array('name' => 'Order By', 'type' => 'select', 'std' => 'Title/Name', 'options' => array('Title/Name'), 'texts' => array('Title/Name'), 'help' => 'Select the column for the sort order of the Assistant table listing.'), 'default_order' => array('name' => 'Order', 'type' => 'radio', 'std' => 'ASC', 'options' => array('ASC', 'DESC'), 'texts' => array('Ascending', 'Descending'), 'help' => 'Choose the sort order.'))]]></default>
1928
- <docblock line="27">
1929
  <description><![CDATA[$mla_options defines the database options and admin page areas for setting/updating them.]]></description>
1930
  <long-description><![CDATA[<p>Each option is defined by an array with the following elements:</p>
1931
 
@@ -1950,260 +2031,284 @@ reset => reset function for 'custom' options; returns nothing. Usage:
1950
  $message = ['reset']( 'reset', $key, $value, $_REQUEST );</p>]]></long-description>
1951
  </docblock>
1952
  </property>
1953
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="147" package="Media Library Assistant">
1954
  <name>initialize</name>
1955
  <full_name>initialize</full_name>
1956
- <docblock line="140">
1957
  <description><![CDATA[Initialization function, similar to __construct()]]></description>
1958
  <long-description><![CDATA[]]></long-description>
1959
- <tag line="140" name="since" description="0.1"/>
1960
- <tag line="140" name="return" description="" type="void">
1961
  <type by_reference="false">void</type>
1962
  </tag>
1963
  </docblock>
1964
  </method>
1965
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="159" package="Media Library Assistant">
1966
  <name>_version_upgrade</name>
1967
  <full_name>_version_upgrade</full_name>
1968
- <docblock line="152">
1969
  <description><![CDATA[Database and option update check, for installing new versions]]></description>
1970
  <long-description><![CDATA[]]></long-description>
1971
- <tag line="152" name="since" description="0.30"/>
1972
- <tag line="152" 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="199" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
1978
  <name>mla_admin_menu_action</name>
1979
  <full_name>mla_admin_menu_action</full_name>
1980
- <docblock line="191">
1981
  <description><![CDATA[Add settings page in the "Settings" section,
1982
  add settings link in the Plugins section entry for MLA.]]></description>
1983
  <long-description><![CDATA[]]></long-description>
1984
- <tag line="191" name="since" description="0.1"/>
1985
- <tag line="191" name="return" description="" type="void">
1986
  <type by_reference="false">void</type>
1987
  </tag>
1988
  </docblock>
1989
  </method>
1990
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="215" package="Media Library Assistant">
1991
  <name>mla_add_plugin_settings_link</name>
1992
  <full_name>mla_add_plugin_settings_link</full_name>
1993
- <docblock line="205">
1994
  <description><![CDATA[Add the "Settings" link to the MLA entry in the Plugins section]]></description>
1995
  <long-description><![CDATA[]]></long-description>
1996
- <tag line="205" name="since" description="0.1"/>
1997
- <tag line="205" name="param" description="array of links for the Plugin, e.g., &quot;Activate&quot;" type="array" variable="$links">
1998
  <type by_reference="false">array</type>
1999
  </tag>
2000
- <tag line="205" name="param" description="Directory and name of the plugin Index file" type="string" variable="$file">
2001
  <type by_reference="false">string</type>
2002
  </tag>
2003
- <tag line="205" name="return" description="Updated array of links for the Plugin" type="array">
2004
  <type by_reference="false">array</type>
2005
  </tag>
2006
  </docblock>
2007
- <argument line="215">
2008
  <name>$links</name>
2009
  <default><![CDATA[]]></default>
2010
  <type/>
2011
  </argument>
2012
- <argument line="215">
2013
  <name>$file</name>
2014
  <default><![CDATA[]]></default>
2015
  <type/>
2016
  </argument>
2017
  </method>
2018
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="233" package="Media Library Assistant">
2019
  <name>mla_get_option</name>
2020
  <full_name>mla_get_option</full_name>
2021
- <docblock line="224">
2022
  <description><![CDATA[Return the stored value or default value of a defined MLA option]]></description>
2023
  <long-description><![CDATA[]]></long-description>
2024
- <tag line="224" name="since" description="0.1"/>
2025
- <tag line="224" name="param" description="Name of the desired option" type="string" variable="$option">
2026
  <type by_reference="false">string</type>
2027
  </tag>
2028
- <tag line="224" name="return" description="Value(s) for the option or false if the option is not a defined MLA option" type="mixed">
2029
  <type by_reference="false">mixed</type>
2030
  </tag>
2031
  </docblock>
2032
- <argument line="233">
2033
  <name>$option</name>
2034
  <default><![CDATA[]]></default>
2035
  <type/>
2036
  </argument>
2037
  </method>
2038
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="254" package="Media Library Assistant">
2039
  <name>mla_update_option</name>
2040
  <full_name>mla_update_option</full_name>
2041
- <docblock line="244">
2042
  <description><![CDATA[Add or update the stored value of a defined MLA option]]></description>
2043
  <long-description><![CDATA[]]></long-description>
2044
- <tag line="244" name="since" description="0.1"/>
2045
- <tag line="244" name="param" description="Name of the desired option" type="string" variable="$option">
2046
  <type by_reference="false">string</type>
2047
  </tag>
2048
- <tag line="244" name="param" description="New value for the desired option" type="mixed" variable="$newvalue">
2049
  <type by_reference="false">mixed</type>
2050
  </tag>
2051
- <tag line="244" name="return" description="True if the value was changed or false if the update failed" type="boolean">
2052
  <type by_reference="false">boolean</type>
2053
  </tag>
2054
  </docblock>
2055
- <argument line="254">
2056
  <name>$option</name>
2057
  <default><![CDATA[]]></default>
2058
  <type/>
2059
  </argument>
2060
- <argument line="254">
2061
  <name>$newvalue</name>
2062
  <default><![CDATA[]]></default>
2063
  <type/>
2064
  </argument>
2065
  </method>
2066
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="270" package="Media Library Assistant">
2067
  <name>mla_delete_option</name>
2068
  <full_name>mla_delete_option</full_name>
2069
- <docblock line="261">
2070
  <description><![CDATA[Delete the stored value of a defined MLA option]]></description>
2071
  <long-description><![CDATA[]]></long-description>
2072
- <tag line="261" name="since" description="0.1"/>
2073
- <tag line="261" name="param" description="Name of the desired option" type="string" variable="$option">
2074
  <type by_reference="false">string</type>
2075
  </tag>
2076
- <tag line="261" name="return" description="True if the option was deleted, otherwise false" type="boolean">
2077
  <type by_reference="false">boolean</type>
2078
  </tag>
2079
  </docblock>
2080
- <argument line="270">
2081
  <name>$option</name>
2082
  <default><![CDATA[]]></default>
2083
  <type/>
2084
  </argument>
2085
  </method>
2086
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="285" package="Media Library Assistant">
2087
  <name>mla_render_settings_page</name>
2088
  <full_name>mla_render_settings_page</full_name>
2089
- <docblock line="278">
2090
  <description><![CDATA[Render (echo) the "Media Library Assistant" subpage in the Settings section]]></description>
2091
  <long-description><![CDATA[]]></long-description>
2092
- <tag line="278" name="since" description="0.1"/>
2093
- <tag line="278" name="return" description="Echoes HTML markup for the settings subpage" type="void">
2094
  <type by_reference="false">void</type>
2095
  </tag>
2096
  </docblock>
2097
  </method>
2098
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="503" package="Media Library Assistant">
2099
  <name>mla_taxonomy_support</name>
2100
  <full_name>mla_taxonomy_support</full_name>
2101
- <docblock line="490">
2102
  <description><![CDATA[Determine MLA support for a taxonomy, handling the special case where the
2103
  settings are being updated or reset.]]></description>
2104
  <long-description><![CDATA[]]></long-description>
2105
- <tag line="490" name="since" description="0.30"/>
2106
- <tag line="490" name="param" description="Taxonomy name, e.g., attachment_category" type="string" variable="$tax_name">
2107
  <type by_reference="false">string</type>
2108
  </tag>
2109
- <tag line="490" name="param" description="'support' (the default), 'quick-edit' or 'filter'" type="string" variable="$support_type">
2110
  <type by_reference="false">string</type>
2111
  </tag>
2112
- <tag line="490" name="return" description="true if the taxonomy is supported in this way else false string if $tax_name is '' and $support_type is 'filter', returns the taxonomy to filter by" type="boolean|string">
2113
  <type by_reference="false">boolean</type>
2114
  <type by_reference="false">string</type>
2115
  </tag>
2116
  </docblock>
2117
- <argument line="503">
2118
  <name>$tax_name</name>
2119
  <default><![CDATA[]]></default>
2120
  <type/>
2121
  </argument>
2122
- <argument line="503">
2123
  <name>$support_type</name>
2124
  <default><![CDATA['support']]></default>
2125
  <type/>
2126
  </argument>
2127
  </method>
2128
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="575" package="Media Library Assistant">
2129
  <name>_save_settings</name>
2130
  <full_name>_save_settings</full_name>
2131
- <docblock line="566">
2132
  <description><![CDATA[Save settings to the options table]]></description>
2133
  <long-description><![CDATA[]]></long-description>
2134
- <tag line="566" name="since" description="0.1"/>
2135
- <tag line="566" name="param" description="HTML template(s) for the settings page" type="array" variable="$template_array">
2136
  <type by_reference="false">array</type>
2137
  </tag>
2138
- <tag line="566" name="return" description="Message(s) reflecting the results of the operation" type="array">
2139
  <type by_reference="false">array</type>
2140
  </tag>
2141
  </docblock>
2142
- <argument line="575">
2143
  <name>$template_array</name>
2144
  <default><![CDATA[]]></default>
2145
  <type/>
2146
  </argument>
2147
  </method>
2148
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="667" package="Media Library Assistant">
2149
  <name>_reset_settings</name>
2150
  <full_name>_reset_settings</full_name>
2151
- <docblock line="658">
2152
  <description><![CDATA[Delete saved settings, restoring default values]]></description>
2153
  <long-description><![CDATA[]]></long-description>
2154
- <tag line="658" name="since" description="0.1"/>
2155
- <tag line="658" name="param" description="HTML template(s) for the settings page" type="array" variable="$template_array">
2156
  <type by_reference="false">array</type>
2157
  </tag>
2158
- <tag line="658" name="return" description="Message(s) reflecting the results of the operation" type="array">
2159
  <type by_reference="false">array</type>
2160
  </tag>
2161
  </docblock>
2162
- <argument line="667">
2163
  <name>$template_array</name>
2164
  <default><![CDATA[]]></default>
2165
  <type/>
2166
  </argument>
2167
  </method>
2168
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="710" package="Media Library Assistant">
2169
  <name>_taxonomy_handler</name>
2170
  <full_name>_taxonomy_handler</full_name>
2171
- <docblock line="698">
2172
  <description><![CDATA[Render and manage other taxonomy support options, e.g., Categories and Post Tags]]></description>
2173
  <long-description><![CDATA[]]></long-description>
2174
- <tag line="698" name="since" description="0.30"/>
2175
- <tag line="698" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
2176
  <type by_reference="false">string</type>
2177
  </tag>
2178
- <tag line="698" name="param" description="option name, e.g., 'taxonomy_support'" type="string" variable="$key">
2179
  <type by_reference="false">string</type>
2180
  </tag>
2181
- <tag line="698" name="param" description="option parameters" type="array" variable="$value">
2182
  <type by_reference="false">array</type>
2183
  </tag>
2184
- <tag line="698" name="param" description="The $page_template_array for 'render' else $_REQUEST" type="array" variable="$args">
2185
  <type by_reference="false">array</type>
2186
  </tag>
2187
- <tag line="698" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
2188
  <type by_reference="false">string</type>
2189
  </tag>
2190
  </docblock>
2191
- <argument line="710">
2192
  <name>$action</name>
2193
  <default><![CDATA[]]></default>
2194
  <type/>
2195
  </argument>
2196
- <argument line="710">
2197
  <name>$key</name>
2198
  <default><![CDATA[]]></default>
2199
  <type/>
2200
  </argument>
2201
- <argument line="710">
2202
  <name>$value</name>
2203
  <default><![CDATA[]]></default>
2204
  <type/>
2205
  </argument>
2206
- <argument line="710">
2207
  <name>$args</name>
2208
  <default><![CDATA[]]></default>
2209
  <type/>
@@ -2211,7 +2316,7 @@ settings are being updated or reset.]]></description>
2211
  </method>
2212
  </class>
2213
  </file>
2214
- <file path="includes\class-mla-shortcodes.php" hash="4927020fc136de0866fa69ff2df4e88b" package="Media Library Assistant">
2215
  <docblock line="2">
2216
  <description><![CDATA[Media Library Assistant Shortcode handler(s)]]></description>
2217
  <long-description><![CDATA[]]></long-description>
@@ -2293,13 +2398,13 @@ This file is only loaded if the naming conflict tests in index.php are passed.</
2293
  </docblock>
2294
  </constant>
2295
  </file>
2296
- <file path="index.php" hash="94bbd8a89827664f8094abf528a9aa8c" package="Media Library Assistant">
2297
  <docblock line="2">
2298
  <description><![CDATA[Provides several enhancements to the handling of images and files held in the WordPress Media Library]]></description>
2299
  <long-description><![CDATA[<p>This file contains several tests for name conflicts with other plugins. Only if the tests are passed
2300
  will the rest of the plugin be loaded and run.</p>]]></long-description>
2301
  <tag line="2" name="package" description="Media Library Assistant"/>
2302
- <tag line="2" name="version" description="0.30"/>
2303
  </docblock>
2304
  <include line="103" type="Require Once" package="Media Library Assistant">
2305
  <name>includes/mla-plugin-loader.php</name>
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="819357cd3db399fcf174acb513026794" 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>
18
  <tag line="9" name="package" description="Media Library Assistant"/>
19
  <tag line="9" name="since" description="0.1"/>
20
  </docblock>
21
+ <property final="false" static="true" visibility="private" line="202" namespace="global" package="Media Library Assistant">
22
  <name>$query_parameters</name>
23
  <default><![CDATA[array()]]></default>
24
+ <docblock line="191">
25
  <description><![CDATA[WP_Query filter "parameters"]]></description>
26
  <long-description><![CDATA[<p>This array defines parameters for the query's join, where and orderby filters.
27
  The parameters are set up in the _prepare_list_table_query function, and
28
  any further logic required to translate those values is contained in the filters.</p>]]></long-description>
29
+ <tag line="191" name="since" description="0.30"/>
30
+ <tag line="191" name="var" description="" type="array">
31
  <type by_reference="false">array</type>
32
  </tag>
33
  </docblock>
151
  <type/>
152
  </argument>
153
  </method>
154
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="218" package="Media Library Assistant">
155
  <name>_prepare_list_table_query</name>
156
  <full_name>_prepare_list_table_query</full_name>
157
+ <docblock line="204">
158
  <description><![CDATA[Sanitize and expand query arguments from request variables]]></description>
159
  <long-description><![CDATA[<p>Prepare the arguments for WP_Query.
160
  Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
161
+ <tag line="204" name="since" description="0.1"/>
162
+ <tag line="204" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$raw_request">
163
  <type by_reference="false">array</type>
164
  </tag>
165
+ <tag line="204" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
166
+ <type by_reference="false">int</type>
167
+ </tag>
168
+ <tag line="204" name="param" description="number of rows on each page (0 = all rows)" type="int" variable="$count">
169
+ <type by_reference="false">int</type>
170
+ </tag>
171
+ <tag line="204" name="return" description="revised arguments suitable for WP_Query" type="array">
172
  <type by_reference="false">array</type>
173
  </tag>
174
  </docblock>
175
+ <argument line="218">
176
+ <name>$raw_request</name>
177
  <default><![CDATA[]]></default>
178
  <type/>
179
  </argument>
180
+ <argument line="218">
181
+ <name>$offset</name>
182
+ <default><![CDATA[0]]></default>
183
+ <type/>
184
+ </argument>
185
+ <argument line="218">
186
+ <name>$count</name>
187
+ <default><![CDATA[0]]></default>
188
+ <type/>
189
+ </argument>
190
  </method>
191
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="395" package="Media Library Assistant">
192
  <name>_execute_list_table_query</name>
193
  <full_name>_execute_list_table_query</full_name>
194
+ <docblock line="386">
195
  <description><![CDATA[Add filters, run query, remove filters]]></description>
196
  <long-description><![CDATA[]]></long-description>
197
+ <tag line="386" name="since" description="0.30"/>
198
+ <tag line="386" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
199
  <type by_reference="false">array</type>
200
  </tag>
201
+ <tag line="386" name="return" description="WP_Query object with query results" type="object">
202
  <type by_reference="false">object</type>
203
  </tag>
204
  </docblock>
205
+ <argument line="395">
206
  <name>$request</name>
207
  <default><![CDATA[]]></default>
208
  <type/>
209
  </argument>
210
  </method>
211
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="420" package="Media Library Assistant">
212
  <name>mla_query_posts_join_filter</name>
213
  <full_name>mla_query_posts_join_filter</full_name>
214
+ <docblock line="409">
215
  <description><![CDATA[Adds a JOIN clause, if required]]></description>
216
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
217
+ <tag line="409" name="since" description="0.30"/>
218
+ <tag line="409" name="param" description="query clause before modification" type="string" variable="$join_clause">
219
  <type by_reference="false">string</type>
220
  </tag>
221
+ <tag line="409" name="return" description="query clause after &quot;detached&quot; item modification" type="string">
222
  <type by_reference="false">string</type>
223
  </tag>
224
  </docblock>
225
+ <argument line="420">
226
  <name>$join_clause</name>
227
  <default><![CDATA[]]></default>
228
  <type/>
229
  </argument>
230
  </method>
231
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="450" package="Media Library Assistant">
232
  <name>mla_query_posts_where_filter</name>
233
  <full_name>mla_query_posts_where_filter</full_name>
234
+ <docblock line="438">
235
  <description><![CDATA[Adds a WHERE clause for detached items]]></description>
236
  <long-description><![CDATA[<p>Modeled after _edit_attachments_query_helper in wp-admin/post.php.
237
  Defined as public because it's a filter.</p>]]></long-description>
238
+ <tag line="438" name="since" description="0.1"/>
239
+ <tag line="438" name="param" description="query clause before modification" type="string" variable="$where_clause">
240
  <type by_reference="false">string</type>
241
  </tag>
242
+ <tag line="438" name="return" description="query clause after &quot;detached&quot; item modification" type="string">
243
  <type by_reference="false">string</type>
244
  </tag>
245
  </docblock>
246
+ <argument line="450">
247
  <name>$where_clause</name>
248
  <default><![CDATA[]]></default>
249
  <type/>
250
  </argument>
251
  </method>
252
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="473" package="Media Library Assistant">
253
  <name>mla_query_posts_orderby_filter</name>
254
  <full_name>mla_query_posts_orderby_filter</full_name>
255
+ <docblock line="461">
256
  <description><![CDATA[Adds a ORDERBY clause, if required]]></description>
257
  <long-description><![CDATA[<p>Expands the range of sort options because the logic in WP_Query is limited.
258
  Defined as public because it's a filter.</p>]]></long-description>
259
+ <tag line="461" name="since" description="0.30"/>
260
+ <tag line="461" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
261
  <type by_reference="false">string</type>
262
  </tag>
263
+ <tag line="461" name="return" description="updated query clause" type="string">
264
  <type by_reference="false">string</type>
265
  </tag>
266
  </docblock>
267
+ <argument line="473">
268
  <name>$orderby_clause</name>
269
  <default><![CDATA[]]></default>
270
  <type/>
271
  </argument>
272
  </method>
273
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="524" package="Media Library Assistant">
274
  <name>mla_get_attachment_by_id</name>
275
  <full_name>mla_get_attachment_by_id</full_name>
276
+ <docblock line="513">
277
  <description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
278
  <long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
279
  the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
280
+ <tag line="513" name="since" description="0.1"/>
281
+ <tag line="513" name="param" description="The ID of the attachment post" type="int" variable="$post_id">
282
  <type by_reference="false">int</type>
283
  </tag>
284
+ <tag line="513" name="return" description="NULL on failure else associative array" type="NULL|array">
285
  <type by_reference="false">NULL</type>
286
  <type by_reference="false">array</type>
287
  </tag>
288
  </docblock>
289
+ <argument line="524">
290
  <name>$post_id</name>
291
  <default><![CDATA[]]></default>
292
  <type/>
293
  </argument>
294
  </method>
295
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="575" package="Media Library Assistant">
296
  <name>mla_fetch_attachment_references</name>
297
  <full_name>mla_fetch_attachment_references</full_name>
298
+ <docblock line="562">
299
  <description><![CDATA[Find Featured Image and inserted image/link references to an attachment]]></description>
300
  <long-description><![CDATA[<p>Searches all post and page content to see if the attachment is used
301
  as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
302
+ <tag line="562" name="since" description="0.1"/>
303
+ <tag line="562" name="param" description="post ID of attachment" type="int" variable="$ID">
304
  <type by_reference="false">int</type>
305
  </tag>
306
+ <tag line="562" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent">
307
  <type by_reference="false">int</type>
308
  </tag>
309
+ <tag line="562" name="return" description="Reference information; see $references array comments" type="array">
310
  <type by_reference="false">array</type>
311
  </tag>
312
  </docblock>
313
+ <argument line="575">
314
  <name>$ID</name>
315
  <default><![CDATA[]]></default>
316
  <type/>
317
  </argument>
318
+ <argument line="575">
319
  <name>$parent</name>
320
  <default><![CDATA[]]></default>
321
  <type/>
322
  </argument>
323
  </method>
324
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="722" package="Media Library Assistant">
325
  <name>_fetch_attachment_parent_data</name>
326
  <full_name>_fetch_attachment_parent_data</full_name>
327
+ <docblock line="713">
328
  <description><![CDATA[Returns information about an attachment's parent, if found]]></description>
329
  <long-description><![CDATA[]]></long-description>
330
+ <tag line="713" name="since" description="0.1"/>
331
+ <tag line="713" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent_id">
332
  <type by_reference="false">int</type>
333
  </tag>
334
+ <tag line="713" name="return" description="Parent information; post_date, post_title and post_type" type="array">
335
  <type by_reference="false">array</type>
336
  </tag>
337
  </docblock>
338
+ <argument line="722">
339
  <name>$parent_id</name>
340
  <default><![CDATA[]]></default>
341
  <type/>
342
  </argument>
343
  </method>
344
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="750" package="Media Library Assistant">
345
  <name>_fetch_attachment_metadata</name>
346
  <full_name>_fetch_attachment_metadata</full_name>
347
+ <docblock line="737">
348
  <description><![CDATA[Fetch and filter meta data for an attachment]]></description>
349
  <long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
350
  are stripped out or converted to an 'mla</em>' equivalent. Array data is replaced with
351
  a string containing the first array element.</p>]]></long-description>
352
+ <tag line="737" name="since" description="0.1"/>
353
+ <tag line="737" name="param" description="post ID of attachment" type="int" variable="$post_id">
354
  <type by_reference="false">int</type>
355
  </tag>
356
+ <tag line="737" name="return" description="Meta data variables" type="array">
357
  <type by_reference="false">array</type>
358
  </tag>
359
  </docblock>
360
+ <argument line="750">
361
  <name>$post_id</name>
362
  <default><![CDATA[]]></default>
363
  <type/>
365
  </method>
366
  </class>
367
  </file>
368
+ <file path="includes\class-mla-list-table.php" hash="fe64fe40bb767f03cdde1bc7b8ead6e0" package="Media Library Assistant">
369
  <docblock line="2">
370
  <description><![CDATA[Media Library Assistant extended List Table class]]></description>
371
  <long-description><![CDATA[]]></long-description>
449
  </property>
450
  <property final="false" static="true" visibility="private" line="144" namespace="global" package="Media Library Assistant">
451
  <name>$default_sortable_columns</name>
452
+ <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>
453
  <docblock line="129">
454
  <description><![CDATA[Sortable column definitions]]></description>
455
  <long-description><![CDATA[<p>This array defines the table columns that can be sorted. The array key
477
  </tag>
478
  </docblock>
479
  </method>
480
+ <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="188" package="Media Library Assistant">
481
+ <name>_avail_mime_types</name>
482
+ <full_name>_avail_mime_types</full_name>
483
+ <docblock line="176">
484
+ <description><![CDATA[Get mime types with one or more attachments for view preparation]]></description>
485
+ <long-description><![CDATA[<p>Modeled after get_available_post_mime_types in wp-admin/includes/post.php,
486
+ with additional entries.</p>]]></long-description>
487
+ <tag line="176" name="since" description="0.1"/>
488
+ <tag line="176" name="param" description="Number of posts for each mime type" type="array" variable="$num_posts">
489
+ <type by_reference="false">array</type>
490
+ </tag>
491
+ <tag line="176" name="return" description="Mime type names" type="array">
492
+ <type by_reference="false">array</type>
493
+ </tag>
494
+ </docblock>
495
+ <argument line="188">
496
+ <name>$num_posts</name>
497
+ <default><![CDATA[]]></default>
498
+ <type/>
499
+ </argument>
500
+ </method>
501
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="209" package="Media Library Assistant">
502
+ <name>mla_get_attachment_mime_types</name>
503
+ <full_name>mla_get_attachment_mime_types</full_name>
504
+ <docblock line="199">
505
+ <description><![CDATA[Get possible mime types for view preparation]]></description>
506
+ <long-description><![CDATA[<p>Modeled after get_post_mime_types in wp-admin/includes/post.php,
507
+ with additional entries.</p>]]></long-description>
508
+ <tag line="199" name="since" description="0.1"/>
509
+ <tag line="199" name="return" description="Mime type names and HTML markup for views" type="array">
510
+ <type by_reference="false">array</type>
511
+ </tag>
512
+ </docblock>
513
+ </method>
514
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="282" package="Media Library Assistant">
515
  <name>mla_get_sortable_columns</name>
516
  <full_name>mla_get_sortable_columns</full_name>
517
+ <docblock line="275">
518
  <description><![CDATA[Return the names and display values of the sortable columns]]></description>
519
  <long-description><![CDATA[]]></long-description>
520
+ <tag line="275" name="since" description="0.30"/>
521
+ <tag line="275" name="return" description="name =&gt; array( orderby value, heading ) for sortable columns" type="array">
522
  <type by_reference="false">array</type>
523
  </tag>
524
  </docblock>
525
  </method>
526
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="309" package="Media Library Assistant">
527
  <name>mla_manage_hidden_columns_filter</name>
528
  <full_name>mla_manage_hidden_columns_filter</full_name>
529
+ <docblock line="294">
530
  <description><![CDATA[Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden']]></description>
531
  <long-description><![CDATA[<p>Required because the screen.php get_hidden_columns function only uses
532
  the get_user_option result. Set when the file is loaded because the object
533
  is not created in time for the call from screen.php.</p>]]></long-description>
534
+ <tag line="294" name="since" description="0.1"/>
535
+ <tag line="294" name="param" description="current list of hidden columns, if any" type="string" variable="$result">
536
  <type by_reference="false">string</type>
537
  </tag>
538
+ <tag line="294" name="param" description="'managemedia_page_mla-menucolumnshidden'" type="string" variable="$option">
539
  <type by_reference="false">string</type>
540
  </tag>
541
+ <tag line="294" name="param" description="WP_User object, if logged in" type="object" variable="$user_data">
542
  <type by_reference="false">object</type>
543
  </tag>
544
+ <tag line="294" name="return" description="updated list of hidden columns" type="array">
545
  <type by_reference="false">array</type>
546
  </tag>
547
  </docblock>
548
+ <argument line="309">
549
  <name>$result</name>
550
  <default><![CDATA[]]></default>
551
  <type/>
552
  </argument>
553
+ <argument line="309">
554
  <name>$option</name>
555
  <default><![CDATA[]]></default>
556
  <type/>
557
  </argument>
558
+ <argument line="309">
559
  <name>$user_data</name>
560
  <default><![CDATA[]]></default>
561
  <type/>
562
  </argument>
563
  </method>
564
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="327" package="Media Library Assistant">
565
  <name>mla_manage_columns_filter</name>
566
  <full_name>mla_manage_columns_filter</full_name>
567
+ <docblock line="316">
568
  <description><![CDATA[Handler for filter 'manage_media_page_mla-menu_columns']]></description>
569
  <long-description><![CDATA[<p>This required filter dictates the table's columns and titles. Set when the
570
  file is loaded because the list_table object isn't created in time
571
  to affect the "screen options" setup.</p>]]></long-description>
572
+ <tag line="316" name="since" description="0.1"/>
573
+ <tag line="316" name="return" description="list of table columns" type="array">
574
  <type by_reference="false">array</type>
575
  </tag>
576
  </docblock>
577
  </method>
578
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="342" package="Media Library Assistant">
579
  <name>mla_admin_init_action</name>
580
  <full_name>mla_admin_init_action</full_name>
581
+ <docblock line="332">
582
  <description><![CDATA[Adds support for taxonomy columns]]></description>
583
  <long-description><![CDATA[<p>Called in the admin_init action because the list_table object isn't
584
  created in time to affect the "screen options" setup.</p>]]></long-description>
585
+ <tag line="332" name="since" description="0.30"/>
586
+ <tag line="332" name="return" description="" type="void">
587
  <type by_reference="false">void</type>
588
  </tag>
589
  </docblock>
590
  </method>
591
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="362" package="Media Library Assistant">
592
  <name>__construct</name>
593
  <full_name>__construct</full_name>
594
+ <docblock line="354">
595
  <description><![CDATA[Initializes some properties from $_REQUEST vairables, then
596
  calls the parent constructor to set some default configs.]]></description>
597
  <long-description><![CDATA[]]></long-description>
598
+ <tag line="354" name="since" description="0.1"/>
599
+ <tag line="354" name="return" description="" type="void">
600
  <type by_reference="false">void</type>
601
  </tag>
602
  </docblock>
603
  </method>
604
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="394" package="Media Library Assistant">
605
  <name>column_default</name>
606
  <full_name>column_default</full_name>
607
+ <docblock line="381">
608
  <description><![CDATA[Supply a column value if no column-specific function has been defined]]></description>
609
  <long-description><![CDATA[<p>Called when the parent class can't find a method specifically built for a
610
  given column. The taxonomy columns are handled here. All other columns should
611
  have a specific method, so this function returns a troubleshooting message.</p>]]></long-description>
612
+ <tag line="381" name="since" description="0.1"/>
613
+ <tag line="381" name="param" description="A singular item (one full row's worth of data)" type="array" variable="$item">
614
  <type by_reference="false">array</type>
615
  </tag>
616
+ <tag line="381" name="param" description="The name/slug of the column to be processed" type="array" variable="$column_name">
617
  <type by_reference="false">array</type>
618
  </tag>
619
+ <tag line="381" name="return" description="Text or HTML to be placed inside the column" type="string">
620
  <type by_reference="false">string</type>
621
  </tag>
622
  </docblock>
623
+ <argument line="394">
624
  <name>$item</name>
625
  <default><![CDATA[]]></default>
626
  <type/>
627
  </argument>
628
+ <argument line="394">
629
  <name>$column_name</name>
630
  <default><![CDATA[]]></default>
631
  <type/>
632
  </argument>
633
  </method>
634
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="436" package="Media Library Assistant">
635
  <name>column_cb</name>
636
  <full_name>column_cb</full_name>
637
+ <docblock line="427">
638
  <description><![CDATA[Displays checkboxes for using bulk actions.]]></description>
639
  <long-description><![CDATA[<p>The 'cb' column
640
  is given special treatment when columns are processed.</p>]]></long-description>
641
+ <tag line="427" name="since" description="0.1"/>
642
+ <tag line="427" name="param" description="A singular attachment (post) object" type="array" variable="$item">
643
  <type by_reference="false">array</type>
644
  </tag>
645
+ <tag line="427" name="return" description="HTML markup to be placed inside the column" type="string">
646
  <type by_reference="false">string</type>
647
  </tag>
648
  </docblock>
649
+ <argument line="436">
650
  <name>$item</name>
651
  <default><![CDATA[]]></default>
652
  <type/>
653
  </argument>
654
  </method>
655
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="452" package="Media Library Assistant">
656
  <name>column_icon</name>
657
  <full_name>column_icon</full_name>
658
+ <docblock line="444">
659
  <description><![CDATA[Supply the content for a custom column]]></description>
660
  <long-description><![CDATA[]]></long-description>
661
+ <tag line="444" name="since" description="0.1"/>
662
+ <tag line="444" name="param" description="A singular attachment (post) object" type="array" variable="$item">
663
  <type by_reference="false">array</type>
664
  </tag>
665
+ <tag line="444" name="return" description="HTML markup to be placed inside the column" type="string">
666
  <type by_reference="false">string</type>
667
  </tag>
668
  </docblock>
669
+ <argument line="452">
670
  <name>$item</name>
671
  <default><![CDATA[]]></default>
672
  <type/>
673
  </argument>
674
  </method>
675
+ <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="468" package="Media Library Assistant">
676
  <name>_build_rollover_actions</name>
677
  <full_name>_build_rollover_actions</full_name>
678
+ <docblock line="457">
679
  <description><![CDATA[Add rollover actions to exactly one of the following displayed columns:
680
  'ID_parent', 'title_name', 'post_title', 'post_name']]></description>
681
  <long-description><![CDATA[]]></long-description>
682
+ <tag line="457" name="since" description="0.1"/>
683
+ <tag line="457" name="param" description="A singular attachment (post) object" type="object" variable="$item">
684
  <type by_reference="false">object</type>
685
  </tag>
686
+ <tag line="457" name="param" description="Current column name" type="string" variable="$column">
687
  <type by_reference="false">string</type>
688
  </tag>
689
+ <tag line="457" name="return" description="Names and URLs of row-level actions" type="array">
690
  <type by_reference="false">array</type>
691
  </tag>
692
  </docblock>
693
+ <argument line="468">
694
  <name>$item</name>
695
  <default><![CDATA[]]></default>
696
  <type/>
697
  </argument>
698
+ <argument line="468">
699
  <name>$column</name>
700
  <default><![CDATA[]]></default>
701
  <type/>
702
  </argument>
703
  </method>
704
+ <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="538" package="Media Library Assistant">
705
  <name>_build_inline_data</name>
706
  <full_name>_build_inline_data</full_name>
707
+ <docblock line="529">
708
  <description><![CDATA[Add hidden fields with the data for use in the inline editor]]></description>
709
  <long-description><![CDATA[]]></long-description>
710
+ <tag line="529" name="since" description="0.20"/>
711
+ <tag line="529" name="param" description="A singular attachment (post) object" type="object" variable="$item">
712
  <type by_reference="false">object</type>
713
  </tag>
714
+ <tag line="529" name="return" description="HTML &lt;div&gt; with row data" type="string">
715
  <type by_reference="false">string</type>
716
  </tag>
717
  </docblock>
718
+ <argument line="538">
719
  <name>$item</name>
720
  <default><![CDATA[]]></default>
721
  <type/>
722
  </argument>
723
  </method>
724
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="577" package="Media Library Assistant">
725
  <name>column_ID_parent</name>
726
  <full_name>column_ID_parent</full_name>
727
+ <docblock line="569">
728
  <description><![CDATA[Supply the content for a custom column]]></description>
729
  <long-description><![CDATA[]]></long-description>
730
+ <tag line="569" name="since" description="0.1"/>
731
+ <tag line="569" name="param" description="A singular attachment (post) object" type="array" variable="$item">
732
  <type by_reference="false">array</type>
733
  </tag>
734
+ <tag line="569" name="return" description="HTML markup to be placed inside the column" type="string">
735
  <type by_reference="false">string</type>
736
  </tag>
737
  </docblock>
738
+ <argument line="577">
739
  <name>$item</name>
740
  <default><![CDATA[]]></default>
741
  <type/>
742
  </argument>
743
  </method>
744
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="595" package="Media Library Assistant">
745
  <name>column_title_name</name>
746
  <full_name>column_title_name</full_name>
747
+ <docblock line="587">
748
  <description><![CDATA[Supply the content for a custom column]]></description>
749
  <long-description><![CDATA[]]></long-description>
750
+ <tag line="587" name="since" description="0.1"/>
751
+ <tag line="587" name="param" description="A singular attachment (post) object" type="array" variable="$item">
752
  <type by_reference="false">array</type>
753
  </tag>
754
+ <tag line="587" name="return" description="HTML markup to be placed inside the column" type="string">
755
  <type by_reference="false">string</type>
756
  </tag>
757
  </docblock>
758
+ <argument line="595">
759
  <name>$item</name>
760
  <default><![CDATA[]]></default>
761
  <type/>
762
  </argument>
763
  </method>
764
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="626" package="Media Library Assistant">
765
  <name>column_post_title</name>
766
  <full_name>column_post_title</full_name>
767
+ <docblock line="618">
768
  <description><![CDATA[Supply the content for a custom column]]></description>
769
  <long-description><![CDATA[]]></long-description>
770
+ <tag line="618" name="since" description="0.1"/>
771
+ <tag line="618" name="param" description="A singular attachment (post) object" type="array" variable="$item">
772
  <type by_reference="false">array</type>
773
  </tag>
774
+ <tag line="618" name="return" description="HTML markup to be placed inside the column" type="string">
775
  <type by_reference="false">string</type>
776
  </tag>
777
  </docblock>
778
+ <argument line="626">
779
  <name>$item</name>
780
  <default><![CDATA[]]></default>
781
  <type/>
782
  </argument>
783
  </method>
784
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="644" package="Media Library Assistant">
785
  <name>column_post_name</name>
786
  <full_name>column_post_name</full_name>
787
+ <docblock line="636">
788
  <description><![CDATA[Supply the content for a custom column]]></description>
789
  <long-description><![CDATA[]]></long-description>
790
+ <tag line="636" name="since" description="0.1"/>
791
+ <tag line="636" name="param" description="A singular attachment (post) object" type="array" variable="$item">
792
  <type by_reference="false">array</type>
793
  </tag>
794
+ <tag line="636" name="return" description="HTML markup to be placed inside the column" type="string">
795
  <type by_reference="false">string</type>
796
  </tag>
797
  </docblock>
798
+ <argument line="644">
799
  <name>$item</name>
800
  <default><![CDATA[]]></default>
801
  <type/>
802
  </argument>
803
  </method>
804
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="662" package="Media Library Assistant">
805
  <name>column_parent</name>
806
  <full_name>column_parent</full_name>
807
+ <docblock line="654">
808
  <description><![CDATA[Supply the content for a custom column]]></description>
809
  <long-description><![CDATA[]]></long-description>
810
+ <tag line="654" name="since" description="0.1"/>
811
+ <tag line="654" name="param" description="A singular attachment (post) object" type="array" variable="$item">
812
  <type by_reference="false">array</type>
813
  </tag>
814
+ <tag line="654" name="return" description="HTML markup to be placed inside the column" type="string">
815
  <type by_reference="false">string</type>
816
  </tag>
817
  </docblock>
818
+ <argument line="662">
819
  <name>$item</name>
820
  <default><![CDATA[]]></default>
821
  <type/>
822
  </argument>
823
  </method>
824
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="674" package="Media Library Assistant">
825
  <name>column_featured</name>
826
  <full_name>column_featured</full_name>
827
+ <docblock line="666">
828
  <description><![CDATA[Supply the content for a custom column]]></description>
829
  <long-description><![CDATA[]]></long-description>
830
+ <tag line="666" name="since" description="0.1"/>
831
+ <tag line="666" name="param" description="A singular attachment (post) object" type="array" variable="$item">
832
  <type by_reference="false">array</type>
833
  </tag>
834
+ <tag line="666" name="return" description="HTML markup to be placed inside the column" type="string">
835
  <type by_reference="false">string</type>
836
  </tag>
837
  </docblock>
838
+ <argument line="674">
839
  <name>$item</name>
840
  <default><![CDATA[]]></default>
841
  <type/>
842
  </argument>
843
  </method>
844
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="697" package="Media Library Assistant">
845
  <name>column_inserted</name>
846
  <full_name>column_inserted</full_name>
847
+ <docblock line="689">
848
  <description><![CDATA[Supply the content for a custom column]]></description>
849
  <long-description><![CDATA[]]></long-description>
850
+ <tag line="689" name="since" description="0.1"/>
851
+ <tag line="689" name="param" description="A singular attachment (post) object" type="array" variable="$item">
852
  <type by_reference="false">array</type>
853
  </tag>
854
+ <tag line="689" name="return" description="HTML markup to be placed inside the column" type="string">
855
  <type by_reference="false">string</type>
856
  </tag>
857
  </docblock>
858
+ <argument line="697">
859
  <name>$item</name>
860
  <default><![CDATA[]]></default>
861
  <type/>
862
  </argument>
863
  </method>
864
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="724" package="Media Library Assistant">
865
  <name>column_alt_text</name>
866
  <full_name>column_alt_text</full_name>
867
+ <docblock line="716">
868
  <description><![CDATA[Supply the content for a custom column]]></description>
869
  <long-description><![CDATA[]]></long-description>
870
+ <tag line="716" name="since" description="0.1"/>
871
+ <tag line="716" name="param" description="A singular attachment (post) object" type="array" variable="$item">
872
  <type by_reference="false">array</type>
873
  </tag>
874
+ <tag line="716" name="return" description="HTML markup to be placed inside the column" type="string">
875
  <type by_reference="false">string</type>
876
  </tag>
877
  </docblock>
878
+ <argument line="724">
879
  <name>$item</name>
880
  <default><![CDATA[]]></default>
881
  <type/>
882
  </argument>
883
  </method>
884
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="739" package="Media Library Assistant">
885
  <name>column_caption</name>
886
  <full_name>column_caption</full_name>
887
+ <docblock line="731">
888
  <description><![CDATA[Supply the content for a custom column]]></description>
889
  <long-description><![CDATA[]]></long-description>
890
+ <tag line="731" name="since" description="0.1"/>
891
+ <tag line="731" name="param" description="A singular attachment (post) object" type="array" variable="$item">
892
  <type by_reference="false">array</type>
893
  </tag>
894
+ <tag line="731" name="return" description="HTML markup to be placed inside the column" type="string">
895
  <type by_reference="false">string</type>
896
  </tag>
897
  </docblock>
898
+ <argument line="739">
899
  <name>$item</name>
900
  <default><![CDATA[]]></default>
901
  <type/>
902
  </argument>
903
  </method>
904
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="751" package="Media Library Assistant">
905
  <name>column_description</name>
906
  <full_name>column_description</full_name>
907
+ <docblock line="743">
908
  <description><![CDATA[Supply the content for a custom column]]></description>
909
  <long-description><![CDATA[]]></long-description>
910
+ <tag line="743" name="since" description="0.1"/>
911
+ <tag line="743" name="param" description="A singular attachment (post) object" type="array" variable="$item">
912
  <type by_reference="false">array</type>
913
  </tag>
914
+ <tag line="743" name="return" description="HTML markup to be placed inside the column" type="string">
915
  <type by_reference="false">string</type>
916
  </tag>
917
  </docblock>
918
+ <argument line="751">
919
  <name>$item</name>
920
  <default><![CDATA[]]></default>
921
  <type/>
922
  </argument>
923
  </method>
924
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="763" package="Media Library Assistant">
925
  <name>column_post_mime_type</name>
926
  <full_name>column_post_mime_type</full_name>
927
+ <docblock line="755">
928
  <description><![CDATA[Supply the content for a custom column]]></description>
929
  <long-description><![CDATA[]]></long-description>
930
+ <tag line="755" name="since" description="0.30"/>
931
+ <tag line="755" name="param" description="A singular attachment (post) object" type="array" variable="$item">
932
  <type by_reference="false">array</type>
933
  </tag>
934
+ <tag line="755" name="return" description="HTML markup to be placed inside the column" type="string">
935
  <type by_reference="false">string</type>
936
  </tag>
937
  </docblock>
938
+ <argument line="763">
939
  <name>$item</name>
940
  <default><![CDATA[]]></default>
941
  <type/>
942
  </argument>
943
  </method>
944
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="775" package="Media Library Assistant">
945
  <name>column_base_file</name>
946
  <full_name>column_base_file</full_name>
947
+ <docblock line="767">
948
  <description><![CDATA[Supply the content for a custom column]]></description>
949
  <long-description><![CDATA[]]></long-description>
950
+ <tag line="767" name="since" description="0.1"/>
951
+ <tag line="767" name="param" description="A singular attachment (post) object" type="array" variable="$item">
952
  <type by_reference="false">array</type>
953
  </tag>
954
+ <tag line="767" name="return" description="HTML markup to be placed inside the column" type="string">
955
  <type by_reference="false">string</type>
956
  </tag>
957
  </docblock>
958
+ <argument line="775">
959
  <name>$item</name>
960
  <default><![CDATA[]]></default>
961
  <type/>
962
  </argument>
963
  </method>
964
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="787" package="Media Library Assistant">
965
  <name>column_date</name>
966
  <full_name>column_date</full_name>
967
+ <docblock line="779">
968
  <description><![CDATA[Supply the content for a custom column]]></description>
969
  <long-description><![CDATA[]]></long-description>
970
+ <tag line="779" name="since" description="0.1"/>
971
+ <tag line="779" name="param" description="A singular attachment (post) object" type="array" variable="$item">
972
  <type by_reference="false">array</type>
973
  </tag>
974
+ <tag line="779" name="return" description="HTML markup to be placed inside the column" type="string">
975
  <type by_reference="false">string</type>
976
  </tag>
977
  </docblock>
978
+ <argument line="787">
979
  <name>$item</name>
980
  <default><![CDATA[]]></default>
981
  <type/>
982
  </argument>
983
  </method>
984
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="816" package="Media Library Assistant">
985
  <name>column_modified</name>
986
  <full_name>column_modified</full_name>
987
+ <docblock line="808">
988
  <description><![CDATA[Supply the content for a custom column]]></description>
989
  <long-description><![CDATA[]]></long-description>
990
+ <tag line="808" name="since" description="0.30"/>
991
+ <tag line="808" name="param" description="A singular attachment (post) object" type="array" variable="$item">
992
  <type by_reference="false">array</type>
993
  </tag>
994
+ <tag line="808" name="return" description="HTML markup to be placed inside the column" type="string">
995
  <type by_reference="false">string</type>
996
  </tag>
997
  </docblock>
998
+ <argument line="816">
999
  <name>$item</name>
1000
  <default><![CDATA[]]></default>
1001
  <type/>
1002
  </argument>
1003
  </method>
1004
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="845" package="Media Library Assistant">
1005
  <name>column_author</name>
1006
  <full_name>column_author</full_name>
1007
+ <docblock line="837">
1008
  <description><![CDATA[Supply the content for a custom column]]></description>
1009
  <long-description><![CDATA[]]></long-description>
1010
+ <tag line="837" name="since" description="0.30"/>
1011
+ <tag line="837" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1012
  <type by_reference="false">array</type>
1013
  </tag>
1014
+ <tag line="837" name="return" description="HTML markup to be placed inside the column" type="string">
1015
  <type by_reference="false">string</type>
1016
  </tag>
1017
  </docblock>
1018
+ <argument line="845">
1019
  <name>$item</name>
1020
  <default><![CDATA[]]></default>
1021
  <type/>
1022
  </argument>
1023
  </method>
1024
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="862" package="Media Library Assistant">
1025
  <name>column_attached_to</name>
1026
  <full_name>column_attached_to</full_name>
1027
+ <docblock line="854">
1028
  <description><![CDATA[Supply the content for a custom column]]></description>
1029
  <long-description><![CDATA[]]></long-description>
1030
+ <tag line="854" name="since" description="0.1"/>
1031
+ <tag line="854" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1032
  <type by_reference="false">array</type>
1033
  </tag>
1034
+ <tag line="854" name="return" description="HTML markup to be placed inside the column" type="string">
1035
  <type by_reference="false">string</type>
1036
  </tag>
1037
  </docblock>
1038
+ <argument line="862">
1039
  <name>$item</name>
1040
  <default><![CDATA[]]></default>
1041
  <type/>
1042
  </argument>
1043
  </method>
1044
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="888" package="Media Library Assistant">
1045
  <name>get_columns</name>
1046
  <full_name>get_columns</full_name>
1047
+ <docblock line="881">
1048
  <description><![CDATA[This method dictates the table's columns and titles]]></description>
1049
  <long-description><![CDATA[]]></long-description>
1050
+ <tag line="881" name="since" description="0.1"/>
1051
+ <tag line="881" name="return" description="Column information: 'slugs'=&gt;'Visible Titles'" type="array">
1052
  <type by_reference="false">array</type>
1053
  </tag>
1054
  </docblock>
1055
  </method>
1056
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="900" package="Media Library Assistant">
1057
  <name>get_hidden_columns</name>
1058
  <full_name>get_hidden_columns</full_name>
1059
+ <docblock line="892">
1060
  <description><![CDATA[Returns the list of currently hidden columns from a user option or
1061
  from default values if the option is not set]]></description>
1062
  <long-description><![CDATA[]]></long-description>
1063
+ <tag line="892" name="since" description="0.1"/>
1064
+ <tag line="892" name="return" description="Column information,e.g., array(0 =&gt; 'ID_parent, 1 =&gt; 'title_name')" type="array">
1065
  <type by_reference="false">array</type>
1066
  </tag>
1067
  </docblock>
1068
  </method>
1069
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="920" package="Media Library Assistant">
1070
  <name>get_sortable_columns</name>
1071
  <full_name>get_sortable_columns</full_name>
1072
+ <docblock line="910">
1073
  <description><![CDATA[Returns an array where the key is the column that needs to be sortable
1074
  and the value is db column to sort by.]]></description>
1075
  <long-description><![CDATA[<p>Also notes the current sort column,
1076
  if set.</p>]]></long-description>
1077
+ <tag line="910" name="since" description="0.1"/>
1078
+ <tag line="910" name="return" description="Sortable column information,e.g., 'slugs'=&gt;array('data_values',boolean)" type="array">
1079
  <type by_reference="false">array</type>
1080
  </tag>
1081
  </docblock>
1082
  </method>
1083
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="947" package="Media Library Assistant">
1084
  <name>get_views</name>
1085
  <full_name>get_views</full_name>
1086
+ <docblock line="939">
1087
  <description><![CDATA[Returns an associative array listing all the views that can be used with this table.]]></description>
1088
  <long-description><![CDATA[<p>These are listed across the top of the page and managed by WordPress.</p>]]></long-description>
1089
+ <tag line="939" name="since" description="0.1"/>
1090
+ <tag line="939" name="return" description="View information,e.g., array ( id =&gt; link )" type="array">
1091
  <type by_reference="false">array</type>
1092
  </tag>
1093
  </docblock>
1094
  </method>
1095
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1024" package="Media Library Assistant">
1096
  <name>get_bulk_actions</name>
1097
  <full_name>get_bulk_actions</full_name>
1098
+ <docblock line="1016">
1099
  <description><![CDATA[Get an associative array ( option_name => option_title ) with the list
1100
  of bulk actions available on this table.]]></description>
1101
  <long-description><![CDATA[]]></long-description>
1102
+ <tag line="1016" name="since" description="0.1"/>
1103
+ <tag line="1016" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
1104
  <type by_reference="false">array</type>
1105
  </tag>
1106
  </docblock>
1107
  </method>
1108
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1055" package="Media Library Assistant">
1109
  <name>extra_tablenav</name>
1110
  <full_name>extra_tablenav</full_name>
1111
+ <docblock line="1044">
1112
  <description><![CDATA[Extra controls to be displayed between bulk actions and pagination]]></description>
1113
  <long-description><![CDATA[<p>Modeled after class-wp-posts-list-table.php in wp-admin/includes.</p>]]></long-description>
1114
+ <tag line="1044" name="since" description="0.1"/>
1115
+ <tag line="1044" name="param" description="'top' or 'bottom', i.e., above or below the table rows" type="string" variable="$which">
1116
  <type by_reference="false">string</type>
1117
  </tag>
1118
+ <tag line="1044" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
1119
  <type by_reference="false">array</type>
1120
  </tag>
1121
  </docblock>
1122
+ <argument line="1055">
1123
  <name>$which</name>
1124
  <default><![CDATA[]]></default>
1125
  <type/>
1126
  </argument>
1127
  </method>
1128
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1115" package="Media Library Assistant">
1129
  <name>prepare_items</name>
1130
  <full_name>prepare_items</full_name>
1131
+ <docblock line="1103">
1132
  <description><![CDATA[Prepares the list of items for displaying]]></description>
1133
  <long-description><![CDATA[<p>This is where you prepare your data for display. This method will usually
1134
  be used to query the database, sort and filter the data, and generally
1135
  get it ready to be displayed. At a minimum, we should set $this->items and
1136
  $this->set_pagination_args().</p>]]></long-description>
1137
+ <tag line="1103" name="since" description="0.1"/>
1138
+ <tag line="1103" name="return" description="" type="void">
1139
  <type by_reference="false">void</type>
1140
  </tag>
1141
  </docblock>
1142
  </method>
1143
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1161" package="Media Library Assistant">
1144
  <name>single_row</name>
1145
  <full_name>single_row</full_name>
1146
+ <docblock line="1152">
1147
  <description><![CDATA[Generates (echoes) content for a single row of the table]]></description>
1148
  <long-description><![CDATA[]]></long-description>
1149
+ <tag line="1152" name="since" description=".20"/>
1150
+ <tag line="1152" name="param" description="the current item" type="object" variable="$item">
1151
  <type by_reference="false">object</type>
1152
  </tag>
1153
+ <tag line="1152" name="return" description="Echoes the row HTML" type="void">
1154
  <type by_reference="false">void</type>
1155
  </tag>
1156
  </docblock>
1157
+ <argument line="1161">
1158
  <name>$item</name>
1159
  <default><![CDATA[]]></default>
1160
  <type/>
1161
  </argument>
1162
  </method>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1163
  </class>
1164
  </file>
1165
+ <file path="includes\class-mla-main.php" hash="a031122e5b5090fdd805147105e62de4" package="Media Library Assistant">
1166
  <docblock line="2">
1167
  <description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
1168
  <long-description><![CDATA[]]></long-description>
1313
  </tag>
1314
  </docblock>
1315
  </constant>
1316
+ <constant namespace="global" line="122" package="Media Library Assistant">
1317
  <name>MLA_ADMIN_NONCE</name>
1318
  <full_name>MLA_ADMIN_NONCE</full_name>
1319
  <value><![CDATA['mla_admin']]></value>
1320
+ <docblock line="115">
1321
  <description><![CDATA[Action name; uniquely identifies the nonce]]></description>
1322
  <long-description><![CDATA[]]></long-description>
1323
+ <tag line="115" name="since" description="0.1"/>
1324
+ <tag line="115" name="var" description="" type="string">
1325
  <type by_reference="false">string</type>
1326
  </tag>
1327
  </docblock>
1328
  </constant>
1329
+ <constant namespace="global" line="131" package="Media Library Assistant">
1330
  <name>MLA_ADMIN_SINGLE_DELETE</name>
1331
  <full_name>MLA_ADMIN_SINGLE_DELETE</full_name>
1332
  <value><![CDATA['single_item_delete']]></value>
1333
+ <docblock line="124">
1334
  <description><![CDATA[mla_admin_action value for permanently deleting a single item]]></description>
1335
  <long-description><![CDATA[]]></long-description>
1336
+ <tag line="124" name="since" description="0.1"/>
1337
+ <tag line="124" name="var" description="" type="string">
1338
  <type by_reference="false">string</type>
1339
  </tag>
1340
  </docblock>
1341
  </constant>
1342
+ <constant namespace="global" line="140" package="Media Library Assistant">
1343
  <name>MLA_ADMIN_SINGLE_EDIT_DISPLAY</name>
1344
  <full_name>MLA_ADMIN_SINGLE_EDIT_DISPLAY</full_name>
1345
  <value><![CDATA['single_item_edit_display']]></value>
1346
+ <docblock line="133">
1347
  <description><![CDATA[mla_admin_action value for displaying a single item]]></description>
1348
  <long-description><![CDATA[]]></long-description>
1349
+ <tag line="133" name="since" description="0.1"/>
1350
+ <tag line="133" name="var" description="" type="string">
1351
  <type by_reference="false">string</type>
1352
  </tag>
1353
  </docblock>
1354
  </constant>
1355
+ <constant namespace="global" line="149" package="Media Library Assistant">
1356
  <name>MLA_ADMIN_SINGLE_EDIT_UPDATE</name>
1357
  <full_name>MLA_ADMIN_SINGLE_EDIT_UPDATE</full_name>
1358
  <value><![CDATA['single_item_edit_update']]></value>
1359
+ <docblock line="142">
1360
  <description><![CDATA[mla_admin_action value for updating a single item]]></description>
1361
  <long-description><![CDATA[]]></long-description>
1362
+ <tag line="142" name="since" description="0.1"/>
1363
+ <tag line="142" name="var" description="" type="string">
1364
  <type by_reference="false">string</type>
1365
  </tag>
1366
  </docblock>
1367
  </constant>
1368
+ <constant namespace="global" line="158" package="Media Library Assistant">
1369
  <name>MLA_ADMIN_SINGLE_RESTORE</name>
1370
  <full_name>MLA_ADMIN_SINGLE_RESTORE</full_name>
1371
  <value><![CDATA['single_item_restore']]></value>
1372
+ <docblock line="151">
1373
  <description><![CDATA[mla_admin_action value for restoring a single item from the trash]]></description>
1374
  <long-description><![CDATA[]]></long-description>
1375
+ <tag line="151" name="since" description="0.1"/>
1376
+ <tag line="151" name="var" description="" type="string">
1377
  <type by_reference="false">string</type>
1378
  </tag>
1379
  </docblock>
1380
  </constant>
1381
+ <constant namespace="global" line="167" package="Media Library Assistant">
1382
  <name>MLA_ADMIN_SINGLE_TRASH</name>
1383
  <full_name>MLA_ADMIN_SINGLE_TRASH</full_name>
1384
  <value><![CDATA['single_item_trash']]></value>
1385
+ <docblock line="160">
1386
  <description><![CDATA[mla_admin_action value for moving a single item to the trash]]></description>
1387
  <long-description><![CDATA[]]></long-description>
1388
+ <tag line="160" name="since" description="0.1"/>
1389
+ <tag line="160" name="var" description="" type="string">
1390
  <type by_reference="false">string</type>
1391
  </tag>
1392
  </docblock>
1393
  </constant>
1394
+ <property final="false" static="true" visibility="private" line="176" namespace="global" package="Media Library Assistant">
1395
  <name>$page_hooks</name>
1396
  <default><![CDATA[array()]]></default>
1397
+ <docblock line="169">
1398
  <description><![CDATA[Holds screen ids to match help text to corresponding screen]]></description>
1399
  <long-description><![CDATA[]]></long-description>
1400
+ <tag line="169" name="since" description="0.1"/>
1401
+ <tag line="169" name="var" description="" type="array">
1402
  <type by_reference="false">array</type>
1403
  </tag>
1404
  </docblock>
1405
  </property>
1406
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="185" package="Media Library Assistant">
1407
  <name>initialize</name>
1408
  <full_name>initialize</full_name>
1409
+ <docblock line="178">
1410
  <description><![CDATA[Initialization function, similar to __construct()]]></description>
1411
  <long-description><![CDATA[]]></long-description>
1412
+ <tag line="178" name="since" description="0.1"/>
1413
+ <tag line="178" name="return" description="" type="void">
1414
  <type by_reference="false">void</type>
1415
  </tag>
1416
  </docblock>
1417
  </method>
1418
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="204" package="Media Library Assistant">
1419
  <name>mla_admin_init_action</name>
1420
  <full_name>mla_admin_init_action</full_name>
1421
+ <docblock line="197">
1422
  <description><![CDATA[Load the plugin's Ajax handler]]></description>
1423
  <long-description><![CDATA[]]></long-description>
1424
+ <tag line="197" name="since" description="0.20"/>
1425
+ <tag line="197" name="return" description="" type="void">
1426
  <type by_reference="false">void</type>
1427
  </tag>
1428
  </docblock>
1429
  </method>
1430
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="217" package="Media Library Assistant">
1431
  <name>mla_admin_enqueue_scripts_action</name>
1432
  <full_name>mla_admin_enqueue_scripts_action</full_name>
1433
+ <docblock line="208">
1434
  <description><![CDATA[Load the plugin's Style Sheet and Javascript files]]></description>
1435
  <long-description><![CDATA[]]></long-description>
1436
+ <tag line="208" name="since" description="0.1"/>
1437
+ <tag line="208" name="param" description="Name of the page being loaded" type="string" variable="$page_hook">
1438
  <type by_reference="false">string</type>
1439
  </tag>
1440
+ <tag line="208" name="return" description="" type="void">
1441
  <type by_reference="false">void</type>
1442
  </tag>
1443
  </docblock>
1444
+ <argument line="217">
1445
  <name>$page_hook</name>
1446
  <default><![CDATA[]]></default>
1447
  <type/>
1448
  </argument>
1449
  </method>
1450
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="264" package="Media Library Assistant">
1451
  <name>mla_admin_menu_action</name>
1452
  <full_name>mla_admin_menu_action</full_name>
1453
+ <docblock line="251">
1454
  <description><![CDATA[Add the submenu pages]]></description>
1455
  <long-description><![CDATA[<p>Add a submenu page in the "Media" section,
1456
  add submenu page(s) for attachment taxonomies,
1457
  add filter to clean up taxonomy submenu labels
1458
  add settings page in the "Settings" section,
1459
  add settings link in the Plugins section entry for MLA.</p>]]></long-description>
1460
+ <tag line="251" name="since" description="0.1"/>
1461
+ <tag line="251" name="return" description="" type="void">
1462
  <type by_reference="false">void</type>
1463
  </tag>
1464
  </docblock>
1465
  </method>
1466
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="295" package="Media Library Assistant">
1467
  <name>mla_add_menu_options</name>
1468
  <full_name>mla_add_menu_options</full_name>
1469
+ <docblock line="288">
1470
  <description><![CDATA[Add the "XX Entries per page" filter to the Screen Options tab]]></description>
1471
  <long-description><![CDATA[]]></long-description>
1472
+ <tag line="288" name="since" description="0.1"/>
1473
+ <tag line="288" name="return" description="" type="void">
1474
  <type by_reference="false">void</type>
1475
  </tag>
1476
  </docblock>
1477
  </method>
1478
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="317" package="Media Library Assistant">
1479
  <name>mla_screen_options_show_screen_filter</name>
1480
  <full_name>mla_screen_options_show_screen_filter</full_name>
1481
+ <docblock line="307">
1482
  <description><![CDATA[Only show screen options on the table-list screen]]></description>
1483
  <long-description><![CDATA[]]></long-description>
1484
+ <tag line="307" name="since" description="0.1"/>
1485
+ <tag line="307" name="param" description="True to display &quot;Screen Options&quot;, false to suppress them" type="boolean" variable="$show_screen">
1486
  <type by_reference="false">boolean</type>
1487
  </tag>
1488
+ <tag line="307" name="param" description="Name of the page being loaded" type="string" variable="$this_screen">
1489
  <type by_reference="false">string</type>
1490
  </tag>
1491
+ <tag line="307" name="return" description="True to display &quot;Screen Options&quot;, false to suppress them" type="boolean">
1492
  <type by_reference="false">boolean</type>
1493
  </tag>
1494
  </docblock>
1495
+ <argument line="317">
1496
  <name>$show_screen</name>
1497
  <default><![CDATA[]]></default>
1498
  <type/>
1499
  </argument>
1500
+ <argument line="317">
1501
  <name>$this_screen</name>
1502
  <default><![CDATA[]]></default>
1503
  <type/>
1504
  </argument>
1505
  </method>
1506
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="335" package="Media Library Assistant">
1507
  <name>mla_set_screen_option_filter</name>
1508
  <full_name>mla_set_screen_option_filter</full_name>
1509
+ <docblock line="324">
1510
  <description><![CDATA[Save the "Entries per page" option set by this user]]></description>
1511
  <long-description><![CDATA[]]></long-description>
1512
+ <tag line="324" name="since" description="0.1"/>
1513
+ <tag line="324" name="param" description="Unknown - always false?" type="boolean" variable="$status">
1514
  <type by_reference="false">boolean</type>
1515
  </tag>
1516
+ <tag line="324" name="param" description="Name of the option being changed" type="string" variable="$option">
1517
  <type by_reference="false">string</type>
1518
  </tag>
1519
+ <tag line="324" name="param" description="New value of the option" type="string" variable="$value">
1520
  <type by_reference="false">string</type>
1521
  </tag>
1522
+ <tag line="324" name="return" description="New value if this is our option, otherwise nothing" type="string|void">
1523
  <type by_reference="false">string</type>
1524
  <type by_reference="false">void</type>
1525
  </tag>
1526
  </docblock>
1527
+ <argument line="335">
1528
  <name>$status</name>
1529
  <default><![CDATA[]]></default>
1530
  <type/>
1531
  </argument>
1532
+ <argument line="335">
1533
  <name>$option</name>
1534
  <default><![CDATA[]]></default>
1535
  <type/>
1536
  </argument>
1537
+ <argument line="335">
1538
  <name>$value</name>
1539
  <default><![CDATA[]]></default>
1540
  <type/>
1541
  </argument>
1542
  </method>
1543
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="351" package="Media Library Assistant">
1544
  <name>mla_edit_tax_redirect</name>
1545
  <full_name>mla_edit_tax_redirect</full_name>
1546
+ <docblock line="341">
1547
  <description><![CDATA[Redirect to the Edit Tags/Categories page]]></description>
1548
  <long-description><![CDATA[<p>The custom taxonomy add/edit submenu entries go to "upload.php" by default.
1549
  This filter is the only way to redirect them to the correct WordPress page.</p>]]></long-description>
1550
+ <tag line="341" name="since" description="0.1"/>
1551
+ <tag line="341" name="return" description="" type="void">
1552
  <type by_reference="false">void</type>
1553
  </tag>
1554
  </docblock>
1555
  </method>
1556
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="369" package="Media Library Assistant">
1557
  <name>mla_add_help_tab</name>
1558
  <full_name>mla_add_help_tab</full_name>
1559
+ <docblock line="362">
1560
  <description><![CDATA[Add contextual help tabs to all the MLA pages]]></description>
1561
  <long-description><![CDATA[]]></long-description>
1562
+ <tag line="362" name="since" description="0.1"/>
1563
+ <tag line="362" name="return" description="" type="void">
1564
  <type by_reference="false">void</type>
1565
  </tag>
1566
  </docblock>
1567
  </method>
1568
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="461" package="Media Library Assistant">
1569
  <name>mla_modify_parent_menu</name>
1570
  <full_name>mla_modify_parent_menu</full_name>
1571
+ <docblock line="448">
1572
  <description><![CDATA[Cleanup menus for Edit Tags/Categories page]]></description>
1573
  <long-description><![CDATA[<p>The submenu entries for custom taxonomies under the "Media" menu are not set up
1574
  correctly by WordPress, so this function cleans them up, redirecting the request
1575
  to the right WordPress page for editing/adding taxonomy terms.</p>]]></long-description>
1576
+ <tag line="448" name="since" description="0.1"/>
1577
+ <tag line="448" name="param" description="The top-level menu page" type="array" variable="$parent_file">
1578
  <type by_reference="false">array</type>
1579
  </tag>
1580
+ <tag line="448" name="return" description="The updated top-level menu page" type="string">
1581
  <type by_reference="false">string</type>
1582
  </tag>
1583
  </docblock>
1584
+ <argument line="461">
1585
  <name>$parent_file</name>
1586
  <default><![CDATA[]]></default>
1587
  <type/>
1588
  </argument>
1589
  </method>
1590
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="492" package="Media Library Assistant">
1591
  <name>mla_render_admin_page</name>
1592
  <full_name>mla_render_admin_page</full_name>
1593
+ <docblock line="485">
1594
  <description><![CDATA[Render the "Assistant" subpage in the Media section, using the list_table package]]></description>
1595
  <long-description><![CDATA[]]></long-description>
1596
+ <tag line="485" name="since" description="0.1"/>
1597
+ <tag line="485" name="return" description="" type="void">
1598
  <type by_reference="false">void</type>
1599
  </tag>
1600
  </docblock>
1601
  </method>
1602
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="695" package="Media Library Assistant">
1603
  <name>mla_inline_edit_action</name>
1604
  <full_name>mla_inline_edit_action</full_name>
1605
+ <docblock line="686">
1606
  <description><![CDATA[Ajax handler for inline editing (quick and bulk edit)]]></description>
1607
  <long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
1608
+ <tag line="686" name="since" description="0.20"/>
1609
+ <tag line="686" name="return" description="echo HTML &lt;tr&gt; markup for updated row or error message, then die()" type="void">
1610
  <type by_reference="false">void</type>
1611
  </tag>
1612
  </docblock>
1613
  </method>
1614
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="764" package="Media Library Assistant">
1615
  <name>_build_inline_edit_form</name>
1616
  <full_name>_build_inline_edit_form</full_name>
1617
+ <docblock line="753">
1618
  <description><![CDATA[Build the hidden row templates for inline editing (quick and bulk edit)]]></description>
1619
  <long-description><![CDATA[<p>inspired by inline_edit() in wp-admin\includes\class-wp-posts-list-table.php.</p>]]></long-description>
1620
+ <tag line="753" name="since" description="0.20"/>
1621
+ <tag line="753" name="param" description="MLA List Table object" type="object" variable="$MLAListTable">
1622
  <type by_reference="false">object</type>
1623
  </tag>
1624
+ <tag line="753" name="return" description="HTML &lt;form&gt; markup for hidden rows" type="string">
1625
  <type by_reference="false">string</type>
1626
  </tag>
1627
  </docblock>
1628
+ <argument line="764">
1629
  <name>$MLAListTable</name>
1630
  <default><![CDATA[]]></default>
1631
  <type/>
1632
  </argument>
1633
  </method>
1634
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="891" package="Media Library Assistant">
1635
  <name>_authors_dropdown</name>
1636
  <full_name>_authors_dropdown</full_name>
1637
+ <docblock line="880">
1638
  <description><![CDATA[Get the edit Authors dropdown box, if user has suitable permissions]]></description>
1639
  <long-description><![CDATA[]]></long-description>
1640
+ <tag line="880" name="since" description="0.20"/>
1641
+ <tag line="880" name="param" description="User ID of the current author" type="integer" variable="$author">
1642
  <type by_reference="false">integer</type>
1643
  </tag>
1644
+ <tag line="880" name="param" description="HTML name attribute" type="string" variable="$name">
1645
  <type by_reference="false">string</type>
1646
  </tag>
1647
+ <tag line="880" name="param" description="HTML class attribute" type="string" variable="$class">
1648
  <type by_reference="false">string</type>
1649
  </tag>
1650
+ <tag line="880" name="return" description="HTML markup for the dropdown field or False" type="string|false">
1651
  <type by_reference="false">string</type>
1652
  <type by_reference="false">false</type>
1653
  </tag>
1654
  </docblock>
1655
+ <argument line="891">
1656
  <name>$author</name>
1657
  <default><![CDATA[0]]></default>
1658
  <type/>
1659
  </argument>
1660
+ <argument line="891">
1661
  <name>$name</name>
1662
  <default><![CDATA['post_author']]></default>
1663
  <type/>
1664
  </argument>
1665
+ <argument line="891">
1666
  <name>$class</name>
1667
  <default><![CDATA['authors']]></default>
1668
  <type/>
1669
  </argument>
1670
  </method>
1671
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="923" package="Media Library Assistant">
1672
  <name>_current_bulk_action</name>
1673
  <full_name>_current_bulk_action</full_name>
1674
+ <docblock line="916">
1675
  <description><![CDATA[Get the current action selected from the bulk actions dropdown]]></description>
1676
  <long-description><![CDATA[]]></long-description>
1677
+ <tag line="916" name="since" description="0.1"/>
1678
+ <tag line="916" name="return" description="The action name or False if no action was selected" type="string|false">
1679
  <type by_reference="false">string</type>
1680
  <type by_reference="false">false</type>
1681
  </tag>
1682
  </docblock>
1683
  </method>
1684
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="953" package="Media Library Assistant">
1685
  <name>_delete_single_item</name>
1686
  <full_name>_delete_single_item</full_name>
1687
+ <docblock line="944">
1688
  <description><![CDATA[Delete a single item permanently]]></description>
1689
  <long-description><![CDATA[]]></long-description>
1690
+ <tag line="944" name="since" description="0.1"/>
1691
+ <tag line="944" name="param" description="The form POST data" type="array" variable="$post_id">
1692
  <type by_reference="false">array</type>
1693
  </tag>
1694
+ <tag line="944" name="return" description="success/failure message and NULL content" type="array">
1695
  <type by_reference="false">array</type>
1696
  </tag>
1697
  </docblock>
1698
+ <argument line="953">
1699
  <name>$post_id</name>
1700
  <default><![CDATA[]]></default>
1701
  <type/>
1702
  </argument>
1703
  </method>
1704
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="982" package="Media Library Assistant">
1705
  <name>_display_single_item</name>
1706
  <full_name>_display_single_item</full_name>
1707
+ <docblock line="972">
1708
  <description><![CDATA[Display a single item sub page; prepare the form to
1709
  change the meta data for a single attachment.]]></description>
1710
  <long-description><![CDATA[]]></long-description>
1711
+ <tag line="972" name="since" description="0.1"/>
1712
+ <tag line="972" name="param" description="The WordPress Post ID of the attachment item" type="int" variable="$post_id">
1713
  <type by_reference="false">int</type>
1714
  </tag>
1715
+ <tag line="972" name="return" description="message and/or HTML content" type="array">
1716
  <type by_reference="false">array</type>
1717
  </tag>
1718
  </docblock>
1719
+ <argument line="982">
1720
  <name>$post_id</name>
1721
  <default><![CDATA[]]></default>
1722
  <type/>
1723
  </argument>
1724
  </method>
1725
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1196" package="Media Library Assistant">
1726
  <name>_update_single_item</name>
1727
  <full_name>_update_single_item</full_name>
1728
+ <docblock line="1183">
1729
  <description><![CDATA[Update a single item; change the meta data
1730
  for a single attachment.]]></description>
1731
  <long-description><![CDATA[]]></long-description>
1732
+ <tag line="1183" name="since" description="0.1"/>
1733
+ <tag line="1183" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
1734
  <type by_reference="false">int</type>
1735
  </tag>
1736
+ <tag line="1183" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_data">
1737
+ <type by_reference="false">array</type>
1738
+ </tag>
1739
+ <tag line="1183" name="param" description="Taxonomy term values" type="array" variable="$tax_input">
1740
  <type by_reference="false">array</type>
1741
  </tag>
1742
+ <tag line="1183" name="param" description="Taxonomy actions (add, remove, replace)" type="array" variable="$tax_actions">
1743
  <type by_reference="false">array</type>
1744
  </tag>
1745
+ <tag line="1183" name="return" description="success/failure message and NULL content" type="array">
1746
  <type by_reference="false">array</type>
1747
  </tag>
1748
  </docblock>
1749
+ <argument line="1196">
1750
  <name>$post_id</name>
1751
  <default><![CDATA[]]></default>
1752
  <type/>
1753
  </argument>
1754
+ <argument line="1196">
1755
  <name>$new_data</name>
1756
  <default><![CDATA[]]></default>
1757
  <type/>
1758
  </argument>
1759
+ <argument line="1196">
1760
  <name>$tax_input</name>
1761
  <default><![CDATA[NULL]]></default>
1762
  <type/>
1763
  </argument>
1764
+ <argument line="1196">
1765
+ <name>$tax_actions</name>
1766
+ <default><![CDATA[NULL]]></default>
1767
+ <type/>
1768
+ </argument>
1769
+ </method>
1770
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1385" package="Media Library Assistant">
1771
+ <name>_remove_tags</name>
1772
+ <full_name>_remove_tags</full_name>
1773
+ <docblock line="1374">
1774
+ <description><![CDATA[Remove tags from a term ids list]]></description>
1775
+ <long-description><![CDATA[]]></long-description>
1776
+ <tag line="1374" name="since" description="0.40"/>
1777
+ <tag line="1374" name="param" description="The term ids currently assigned" type="array" variable="$terms_before">
1778
+ <type by_reference="false">array</type>
1779
+ </tag>
1780
+ <tag line="1374" name="param" description="| string The term ids (array) or names (string) to remove" type="array" variable="$tags">
1781
+ <type by_reference="false">array</type>
1782
+ </tag>
1783
+ <tag line="1374" name="param" description="The taxonomy object" type="object" variable="$taxonomy_obj">
1784
+ <type by_reference="false">object</type>
1785
+ </tag>
1786
+ <tag line="1374" name="return" description="Term ids of the surviving tags" type="array">
1787
+ <type by_reference="false">array</type>
1788
+ </tag>
1789
+ </docblock>
1790
+ <argument line="1385">
1791
+ <name>$terms_before</name>
1792
+ <default><![CDATA[]]></default>
1793
+ <type/>
1794
+ </argument>
1795
+ <argument line="1385">
1796
+ <name>$tags</name>
1797
+ <default><![CDATA[]]></default>
1798
+ <type/>
1799
+ </argument>
1800
+ <argument line="1385">
1801
+ <name>$taxonomy_obj</name>
1802
+ <default><![CDATA[]]></default>
1803
+ <type/>
1804
+ </argument>
1805
  </method>
1806
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1436" package="Media Library Assistant">
1807
  <name>_restore_single_item</name>
1808
  <full_name>_restore_single_item</full_name>
1809
+ <docblock line="1427">
1810
  <description><![CDATA[Restore a single item from the Trash]]></description>
1811
  <long-description><![CDATA[]]></long-description>
1812
+ <tag line="1427" name="since" description="0.1"/>
1813
+ <tag line="1427" name="param" description="The form POST data" type="array" variable="$post_id">
1814
  <type by_reference="false">array</type>
1815
  </tag>
1816
+ <tag line="1427" name="return" description="success/failure message and NULL content" type="array">
1817
  <type by_reference="false">array</type>
1818
  </tag>
1819
  </docblock>
1820
+ <argument line="1436">
1821
  <name>$post_id</name>
1822
  <default><![CDATA[]]></default>
1823
  <type/>
1824
  </argument>
1825
  </method>
1826
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1472" package="Media Library Assistant">
1827
  <name>_trash_single_item</name>
1828
  <full_name>_trash_single_item</full_name>
1829
+ <docblock line="1463">
1830
  <description><![CDATA[Move a single item to Trash]]></description>
1831
  <long-description><![CDATA[]]></long-description>
1832
+ <tag line="1463" name="since" description="0.1"/>
1833
+ <tag line="1463" name="param" description="The form POST data" type="array" variable="$post_id">
1834
  <type by_reference="false">array</type>
1835
  </tag>
1836
+ <tag line="1463" name="return" description="success/failure message and NULL content" type="array">
1837
  <type by_reference="false">array</type>
1838
  </tag>
1839
  </docblock>
1840
+ <argument line="1472">
1841
  <name>$post_id</name>
1842
  <default><![CDATA[]]></default>
1843
  <type/>
1946
  </method>
1947
  </class>
1948
  </file>
1949
+ <file path="includes\class-mla-settings.php" hash="c7ff750a5f9679abfd7929d37ad74197" package="Media Library Assistant">
1950
  <docblock line="2">
1951
  <description><![CDATA[Manages the plugin option settings and provides the settings page to edit them]]></description>
1952
  <long-description><![CDATA[]]></long-description>
1964
  <tag line="9" name="package" description="Media Library Assistant"/>
1965
  <tag line="9" name="since" description="0.1"/>
1966
  </docblock>
1967
+ <constant namespace="global" line="29" package="Media Library Assistant">
1968
+ <name>MLA_ALT_TEXT_VIEW_SUFFIX</name>
1969
+ <full_name>MLA_ALT_TEXT_VIEW_SUFFIX</full_name>
1970
+ <value><![CDATA['alt_text_view']]></value>
1971
+ <docblock line="26">
1972
+ <description><![CDATA[Provides a unique suffix for the ALT Text SQL VIEW]]></description>
1973
+ <long-description><![CDATA[]]></long-description>
1974
+ </docblock>
1975
+ </constant>
1976
+ <constant namespace="global" line="34" package="Media Library Assistant">
1977
  <name>MLA_SETTINGS_SLUG</name>
1978
  <full_name>MLA_SETTINGS_SLUG</full_name>
1979
  <value><![CDATA['mla-settings-menu']]></value>
1980
+ <docblock line="31">
1981
  <description><![CDATA[Provides a unique name for the settings page]]></description>
1982
  <long-description><![CDATA[]]></long-description>
1983
  </docblock>
1984
  </constant>
1985
+ <constant namespace="global" line="39" package="Media Library Assistant">
1986
  <name>MLA_VERSION_OPTION</name>
1987
  <full_name>MLA_VERSION_OPTION</full_name>
1988
  <value><![CDATA['current_version']]></value>
1989
+ <docblock line="36">
1990
  <description><![CDATA[Provides a unique name for the current version option]]></description>
1991
  <long-description><![CDATA[]]></long-description>
1992
  </docblock>
1993
  </constant>
1994
+ <property final="false" static="true" visibility="public" line="24" namespace="global" package="Media Library Assistant">
1995
+ <name>$mla_alt_text_view</name>
1996
+ <default><![CDATA[null]]></default>
1997
+ <docblock line="17">
1998
+ <description><![CDATA[Provides a unique name for the ALT Text SQL VIEW]]></description>
1999
+ <long-description><![CDATA[]]></long-description>
2000
+ <tag line="17" name="since" description="0.40"/>
2001
+ <tag line="17" name="var" description="" type="array">
2002
+ <type by_reference="false">array</type>
2003
+ </tag>
2004
+ </docblock>
2005
+ </property>
2006
+ <property final="false" static="true" visibility="private" line="65" namespace="global" package="Media Library Assistant">
2007
  <name>$mla_options</name>
2008
+ <default><![CDATA[array(self::MLA_VERSION_OPTION => array('type' => 'hidden', 'std' => '0'), 'attachment_category' => array('name' => 'Attachment Categories', 'type' => 'hidden', 'std' => 'checked', 'help' => 'Check this option to add support for Attachment Categories.'), 'attachment_tag' => array('name' => 'Attachment Tags', 'type' => 'hidden', 'std' => 'checked', 'help' => 'Check this option to add support for Attachment Tags.'), 'where_used_heading' => array('name' => 'Where-used Reporting', 'type' => 'header'), 'exclude_revisions' => array('name' => 'Exclude Revisions', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check this option to exclude revisions from where-used reporting.'), 'taxonomy_heading' => array('name' => 'Taxonomy Support', 'type' => 'header'), 'taxonomy_support' => array('help' => 'Check the "Support" box to add the taxonomy to the Assistant.<br>Check the "Inline Edit" box to display the taxonomy in the Quick Edit and Bulk Edit areas.<br>Use the "List Filter" option to select the taxonomy on which to filter the Assistant table listing.', 'std' => array('tax_support' => array('attachment_category' => 'checked', 'attachment_tag' => 'checked'), 'tax_quick_edit' => array('attachment_category' => 'checked', 'attachment_tag' => 'checked'), 'tax_filter' => 'attachment_category'), 'type' => 'custom', 'render' => '_taxonomy_handler', 'update' => '_taxonomy_handler', 'delete' => '_taxonomy_handler', 'reset' => '_taxonomy_handler'), 'orderby_heading' => array('name' => 'Default Table Listing Sort Order', 'type' => 'header'), 'default_orderby' => array('name' => 'Order By', 'type' => 'select', 'std' => 'title_name', 'options' => array('title_name'), 'texts' => array('Title/Name'), 'help' => 'Select the column for the sort order of the Assistant table listing.'), 'default_order' => array('name' => 'Order', 'type' => 'radio', 'std' => 'ASC', 'options' => array('ASC', 'DESC'), 'texts' => array('Ascending', 'Descending'), 'help' => 'Choose the sort order.'))]]></default>
2009
+ <docblock line="41">
2010
  <description><![CDATA[$mla_options defines the database options and admin page areas for setting/updating them.]]></description>
2011
  <long-description><![CDATA[<p>Each option is defined by an array with the following elements:</p>
2012
 
2031
  $message = ['reset']( 'reset', $key, $value, $_REQUEST );</p>]]></long-description>
2032
  </docblock>
2033
  </property>
2034
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="171" package="Media Library Assistant">
2035
  <name>initialize</name>
2036
  <full_name>initialize</full_name>
2037
+ <docblock line="164">
2038
  <description><![CDATA[Initialization function, similar to __construct()]]></description>
2039
  <long-description><![CDATA[]]></long-description>
2040
+ <tag line="164" name="since" description="0.1"/>
2041
+ <tag line="164" name="return" description="" type="void">
2042
  <type by_reference="false">void</type>
2043
  </tag>
2044
  </docblock>
2045
  </method>
2046
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="186" package="Media Library Assistant">
2047
  <name>_version_upgrade</name>
2048
  <full_name>_version_upgrade</full_name>
2049
+ <docblock line="179">
2050
  <description><![CDATA[Database and option update check, for installing new versions]]></description>
2051
  <long-description><![CDATA[]]></long-description>
2052
+ <tag line="179" name="since" description="0.30"/>
2053
+ <tag line="179" name="return" description="" type="void">
2054
+ <type by_reference="false">void</type>
2055
+ </tag>
2056
+ </docblock>
2057
+ </method>
2058
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="227" package="Media Library Assistant">
2059
+ <name>mla_activation_hook</name>
2060
+ <full_name>mla_activation_hook</full_name>
2061
+ <docblock line="218">
2062
+ <description><![CDATA[Perform one-time actions on plugin activation]]></description>
2063
+ <long-description><![CDATA[<p>Adds a view to the database to support sorting the listing on 'ALT Text'.</p>]]></long-description>
2064
+ <tag line="218" name="since" description="0.40"/>
2065
+ <tag line="218" name="return" description="" type="void">
2066
  <type by_reference="false">void</type>
2067
  </tag>
2068
  </docblock>
2069
  </method>
2070
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="257" package="Media Library Assistant">
2071
+ <name>mla_deactivation_hook</name>
2072
+ <full_name>mla_deactivation_hook</full_name>
2073
+ <docblock line="248">
2074
+ <description><![CDATA[Perform one-time actions on plugin deactivation]]></description>
2075
+ <long-description><![CDATA[<p>Removes a view from the database that supports sorting the listing on 'ALT Text'.</p>]]></long-description>
2076
+ <tag line="248" name="since" description="0.40"/>
2077
+ <tag line="248" name="return" description="" type="void">
2078
+ <type by_reference="false">void</type>
2079
+ </tag>
2080
+ </docblock>
2081
+ </method>
2082
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="294" package="Media Library Assistant">
2083
  <name>mla_admin_menu_action</name>
2084
  <full_name>mla_admin_menu_action</full_name>
2085
+ <docblock line="286">
2086
  <description><![CDATA[Add settings page in the "Settings" section,
2087
  add settings link in the Plugins section entry for MLA.]]></description>
2088
  <long-description><![CDATA[]]></long-description>
2089
+ <tag line="286" name="since" description="0.1"/>
2090
+ <tag line="286" name="return" description="" type="void">
2091
  <type by_reference="false">void</type>
2092
  </tag>
2093
  </docblock>
2094
  </method>
2095
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="310" package="Media Library Assistant">
2096
  <name>mla_add_plugin_settings_link</name>
2097
  <full_name>mla_add_plugin_settings_link</full_name>
2098
+ <docblock line="300">
2099
  <description><![CDATA[Add the "Settings" link to the MLA entry in the Plugins section]]></description>
2100
  <long-description><![CDATA[]]></long-description>
2101
+ <tag line="300" name="since" description="0.1"/>
2102
+ <tag line="300" name="param" description="array of links for the Plugin, e.g., &quot;Activate&quot;" type="array" variable="$links">
2103
  <type by_reference="false">array</type>
2104
  </tag>
2105
+ <tag line="300" name="param" description="Directory and name of the plugin Index file" type="string" variable="$file">
2106
  <type by_reference="false">string</type>
2107
  </tag>
2108
+ <tag line="300" name="return" description="Updated array of links for the Plugin" type="array">
2109
  <type by_reference="false">array</type>
2110
  </tag>
2111
  </docblock>
2112
+ <argument line="310">
2113
  <name>$links</name>
2114
  <default><![CDATA[]]></default>
2115
  <type/>
2116
  </argument>
2117
+ <argument line="310">
2118
  <name>$file</name>
2119
  <default><![CDATA[]]></default>
2120
  <type/>
2121
  </argument>
2122
  </method>
2123
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="328" package="Media Library Assistant">
2124
  <name>mla_get_option</name>
2125
  <full_name>mla_get_option</full_name>
2126
+ <docblock line="319">
2127
  <description><![CDATA[Return the stored value or default value of a defined MLA option]]></description>
2128
  <long-description><![CDATA[]]></long-description>
2129
+ <tag line="319" name="since" description="0.1"/>
2130
+ <tag line="319" name="param" description="Name of the desired option" type="string" variable="$option">
2131
  <type by_reference="false">string</type>
2132
  </tag>
2133
+ <tag line="319" name="return" description="Value(s) for the option or false if the option is not a defined MLA option" type="mixed">
2134
  <type by_reference="false">mixed</type>
2135
  </tag>
2136
  </docblock>
2137
+ <argument line="328">
2138
  <name>$option</name>
2139
  <default><![CDATA[]]></default>
2140
  <type/>
2141
  </argument>
2142
  </method>
2143
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="349" package="Media Library Assistant">
2144
  <name>mla_update_option</name>
2145
  <full_name>mla_update_option</full_name>
2146
+ <docblock line="339">
2147
  <description><![CDATA[Add or update the stored value of a defined MLA option]]></description>
2148
  <long-description><![CDATA[]]></long-description>
2149
+ <tag line="339" name="since" description="0.1"/>
2150
+ <tag line="339" name="param" description="Name of the desired option" type="string" variable="$option">
2151
  <type by_reference="false">string</type>
2152
  </tag>
2153
+ <tag line="339" name="param" description="New value for the desired option" type="mixed" variable="$newvalue">
2154
  <type by_reference="false">mixed</type>
2155
  </tag>
2156
+ <tag line="339" name="return" description="True if the value was changed or false if the update failed" type="boolean">
2157
  <type by_reference="false">boolean</type>
2158
  </tag>
2159
  </docblock>
2160
+ <argument line="349">
2161
  <name>$option</name>
2162
  <default><![CDATA[]]></default>
2163
  <type/>
2164
  </argument>
2165
+ <argument line="349">
2166
  <name>$newvalue</name>
2167
  <default><![CDATA[]]></default>
2168
  <type/>
2169
  </argument>
2170
  </method>
2171
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="365" package="Media Library Assistant">
2172
  <name>mla_delete_option</name>
2173
  <full_name>mla_delete_option</full_name>
2174
+ <docblock line="356">
2175
  <description><![CDATA[Delete the stored value of a defined MLA option]]></description>
2176
  <long-description><![CDATA[]]></long-description>
2177
+ <tag line="356" name="since" description="0.1"/>
2178
+ <tag line="356" name="param" description="Name of the desired option" type="string" variable="$option">
2179
  <type by_reference="false">string</type>
2180
  </tag>
2181
+ <tag line="356" name="return" description="True if the option was deleted, otherwise false" type="boolean">
2182
  <type by_reference="false">boolean</type>
2183
  </tag>
2184
  </docblock>
2185
+ <argument line="365">
2186
  <name>$option</name>
2187
  <default><![CDATA[]]></default>
2188
  <type/>
2189
  </argument>
2190
  </method>
2191
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="380" package="Media Library Assistant">
2192
  <name>mla_render_settings_page</name>
2193
  <full_name>mla_render_settings_page</full_name>
2194
+ <docblock line="373">
2195
  <description><![CDATA[Render (echo) the "Media Library Assistant" subpage in the Settings section]]></description>
2196
  <long-description><![CDATA[]]></long-description>
2197
+ <tag line="373" name="since" description="0.1"/>
2198
+ <tag line="373" name="return" description="Echoes HTML markup for the settings subpage" type="void">
2199
  <type by_reference="false">void</type>
2200
  </tag>
2201
  </docblock>
2202
  </method>
2203
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="602" package="Media Library Assistant">
2204
  <name>mla_taxonomy_support</name>
2205
  <full_name>mla_taxonomy_support</full_name>
2206
+ <docblock line="589">
2207
  <description><![CDATA[Determine MLA support for a taxonomy, handling the special case where the
2208
  settings are being updated or reset.]]></description>
2209
  <long-description><![CDATA[]]></long-description>
2210
+ <tag line="589" name="since" description="0.30"/>
2211
+ <tag line="589" name="param" description="Taxonomy name, e.g., attachment_category" type="string" variable="$tax_name">
2212
  <type by_reference="false">string</type>
2213
  </tag>
2214
+ <tag line="589" name="param" description="'support' (the default), 'quick-edit' or 'filter'" type="string" variable="$support_type">
2215
  <type by_reference="false">string</type>
2216
  </tag>
2217
+ <tag line="589" name="return" description="true if the taxonomy is supported in this way else false string if $tax_name is '' and $support_type is 'filter', returns the taxonomy to filter by" type="boolean|string">
2218
  <type by_reference="false">boolean</type>
2219
  <type by_reference="false">string</type>
2220
  </tag>
2221
  </docblock>
2222
+ <argument line="602">
2223
  <name>$tax_name</name>
2224
  <default><![CDATA[]]></default>
2225
  <type/>
2226
  </argument>
2227
+ <argument line="602">
2228
  <name>$support_type</name>
2229
  <default><![CDATA['support']]></default>
2230
  <type/>
2231
  </argument>
2232
  </method>
2233
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="674" package="Media Library Assistant">
2234
  <name>_save_settings</name>
2235
  <full_name>_save_settings</full_name>
2236
+ <docblock line="665">
2237
  <description><![CDATA[Save settings to the options table]]></description>
2238
  <long-description><![CDATA[]]></long-description>
2239
+ <tag line="665" name="since" description="0.1"/>
2240
+ <tag line="665" name="param" description="HTML template(s) for the settings page" type="array" variable="$template_array">
2241
  <type by_reference="false">array</type>
2242
  </tag>
2243
+ <tag line="665" name="return" description="Message(s) reflecting the results of the operation" type="array">
2244
  <type by_reference="false">array</type>
2245
  </tag>
2246
  </docblock>
2247
+ <argument line="674">
2248
  <name>$template_array</name>
2249
  <default><![CDATA[]]></default>
2250
  <type/>
2251
  </argument>
2252
  </method>
2253
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="765" package="Media Library Assistant">
2254
  <name>_reset_settings</name>
2255
  <full_name>_reset_settings</full_name>
2256
+ <docblock line="756">
2257
  <description><![CDATA[Delete saved settings, restoring default values]]></description>
2258
  <long-description><![CDATA[]]></long-description>
2259
+ <tag line="756" name="since" description="0.1"/>
2260
+ <tag line="756" name="param" description="HTML template(s) for the settings page" type="array" variable="$template_array">
2261
  <type by_reference="false">array</type>
2262
  </tag>
2263
+ <tag line="756" name="return" description="Message(s) reflecting the results of the operation" type="array">
2264
  <type by_reference="false">array</type>
2265
  </tag>
2266
  </docblock>
2267
+ <argument line="765">
2268
  <name>$template_array</name>
2269
  <default><![CDATA[]]></default>
2270
  <type/>
2271
  </argument>
2272
  </method>
2273
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="808" package="Media Library Assistant">
2274
  <name>_taxonomy_handler</name>
2275
  <full_name>_taxonomy_handler</full_name>
2276
+ <docblock line="796">
2277
  <description><![CDATA[Render and manage other taxonomy support options, e.g., Categories and Post Tags]]></description>
2278
  <long-description><![CDATA[]]></long-description>
2279
+ <tag line="796" name="since" description="0.30"/>
2280
+ <tag line="796" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
2281
  <type by_reference="false">string</type>
2282
  </tag>
2283
+ <tag line="796" name="param" description="option name, e.g., 'taxonomy_support'" type="string" variable="$key">
2284
  <type by_reference="false">string</type>
2285
  </tag>
2286
+ <tag line="796" name="param" description="option parameters" type="array" variable="$value">
2287
  <type by_reference="false">array</type>
2288
  </tag>
2289
+ <tag line="796" name="param" description="The $page_template_array for 'render' else $_REQUEST" type="array" variable="$args">
2290
  <type by_reference="false">array</type>
2291
  </tag>
2292
+ <tag line="796" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
2293
  <type by_reference="false">string</type>
2294
  </tag>
2295
  </docblock>
2296
+ <argument line="808">
2297
  <name>$action</name>
2298
  <default><![CDATA[]]></default>
2299
  <type/>
2300
  </argument>
2301
+ <argument line="808">
2302
  <name>$key</name>
2303
  <default><![CDATA[]]></default>
2304
  <type/>
2305
  </argument>
2306
+ <argument line="808">
2307
  <name>$value</name>
2308
  <default><![CDATA[]]></default>
2309
  <type/>
2310
  </argument>
2311
+ <argument line="808">
2312
  <name>$args</name>
2313
  <default><![CDATA[]]></default>
2314
  <type/>
2316
  </method>
2317
  </class>
2318
  </file>
2319
+ <file path="includes\class-mla-shortcodes.php" hash="eca48c0e1084966640a0083cf3c70a7b" package="Media Library Assistant">
2320
  <docblock line="2">
2321
  <description><![CDATA[Media Library Assistant Shortcode handler(s)]]></description>
2322
  <long-description><![CDATA[]]></long-description>
2398
  </docblock>
2399
  </constant>
2400
  </file>
2401
+ <file path="index.php" hash="5084371b7f9b3500b13f2b83a1e2a44b" package="Media Library Assistant">
2402
  <docblock line="2">
2403
  <description><![CDATA[Provides several enhancements to the handling of images and files held in the WordPress Media Library]]></description>
2404
  <long-description><![CDATA[<p>This file contains several tests for name conflicts with other plugins. Only if the tests are passed
2405
  will the rest of the plugin be loaded and run.</p>]]></long-description>
2406
  <tag line="2" name="package" description="Media Library Assistant"/>
2407
+ <tag line="2" name="version" description="0.40"/>
2408
  </docblock>
2409
  <include line="103" type="Require Once" package="Media Library Assistant">
2410
  <name>includes/mla-plugin-loader.php</name>
readme.txt CHANGED
@@ -4,18 +4,19 @@ 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.30
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Provides several enhancements to the WordPress Media Library,
12
- such as full taxonomy support, quick edit action and where-used reporting.
13
 
14
  == Description ==
15
 
16
  The Media Library Assistant provides several enhancements for managing the Media Library, including:
17
 
18
- * Has an inline "Quick Edit" action for many common fields.
 
19
  * 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.
20
  * Shows which posts use a media item as the "featured image"
21
  * Shows which posts use a media item as an inserted image or link
@@ -74,13 +75,24 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
74
 
75
  == Screenshots ==
76
 
77
- 1. The Media Library Assistant submenu showing the available columns, including "Featured in", "Inserted in", "Att. Categories" and "Att. Tags"
78
  2. The enhanced Edit page showing additional fields, categories and tags
79
  3. A typical edit taxonomy page, showing the "Attachments" column
80
  4. The Settings page, to customize support of Att. Categories, Att. Tags and other taxonomies and the default sort order
 
81
 
82
  == Changelog ==
83
 
 
 
 
 
 
 
 
 
 
 
84
  = 0.30 =
85
  * New: Complete support for all taxonomies registered with WordPress, 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 admin screen, filter the listing on any taxonomy, assign terms to attachments and list the attachments for a taxonomy term.
86
  * New: MIME Type and Last Modified Date added to columns listing
@@ -112,6 +124,9 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
112
 
113
  == Upgrade Notice ==
114
 
 
 
 
115
  = 0.30 =
116
  Upgrade to support ALL taxonomies, including the standard Categories and Tags, your custom taxonomies and the Assistant's pre-defined Att. Categories and Att. Tags. Add taxonomy columns to the Assistant admin screen, filter on any taxonomy, assign terms and list the attachments for a term.
117
 
@@ -124,6 +139,72 @@ You should upgrade to this version if you are getting "404 Not Found" errors whe
124
  = 0.1 =
125
  Initial release.
126
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  == Other Notes ==
128
 
129
  I have used and learned much from the following books (among many):
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.40
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Provides several enhancements to the WordPress Media Library,
12
+ such as full taxonomy support, bulk & quick edit actions and where-used reporting.
13
 
14
  == Description ==
15
 
16
  The Media Library Assistant provides several enhancements for managing the Media Library, including:
17
 
18
+ * An inline "Bulk Edit" area; update author or parent, add, remove or replace taxonomy terms for several attachments at once.
19
+ * An inline "Quick Edit" action for many common fields.
20
  * 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.
21
  * Shows which posts use a media item as the "featured image"
22
  * Shows which posts use a media item as an inserted image or link
75
 
76
  == Screenshots ==
77
 
78
+ 1. The Media Library Assistant submenu showing the available columns, including "Featured in", "Inserted in", "Att. Categories" and "Att. Tags"; also shows the Quick Edit area.
79
  2. The enhanced Edit page showing additional fields, categories and tags
80
  3. A typical edit taxonomy page, showing the "Attachments" column
81
  4. The Settings page, to customize support of Att. Categories, Att. Tags and other taxonomies and the default sort order
82
+ 5. The Media Library Assistant submenu showing the Bulk Edit area with taxonomy Add, Remove and Replace options; also shows the tags suggestion popup.
83
 
84
  == Changelog ==
85
 
86
+ = 0.40 =
87
+ * New: Bulk Edit area; update author or parent, add, remove or replace taxonomy terms for several attachments at once
88
+ * New: ALT Text is now a sortable column, and shows attachments with no ALT Text value
89
+ * New: Activate and deactivate hooks added to create and drop an SQL View supporting ALT Text sorting
90
+ * New: Revisions are excluded from the where-used columns; a settings option lets you include them if you wish
91
+ * Fix: Better validation/sanitization of data fields on input and display
92
+ * Fix: Database query validation/sanitization with wpdb_prepare()
93
+ * Fix: check_admin_referer added to settings page
94
+ * Fix: Inline CSS styles for message DIV moved to style sheet
95
+
96
  = 0.30 =
97
  * New: Complete support for all taxonomies registered with WordPress, 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 admin screen, filter the listing on any taxonomy, assign terms to attachments and list the attachments for a taxonomy term.
98
  * New: MIME Type and Last Modified Date added to columns listing
124
 
125
  == Upgrade Notice ==
126
 
127
+ = 0.40 =
128
+ Upgrade for the new Bulk Edit area; add, remove or replace taxonomy terms for several attachments at once. Sort your media listing on ALT Text, exclude revisions from where-used reporting.
129
+
130
  = 0.30 =
131
  Upgrade to support ALL taxonomies, including the standard Categories and Tags, your custom taxonomies and the Assistant's pre-defined Att. Categories and Att. Tags. Add taxonomy columns to the Assistant admin screen, filter on any taxonomy, assign terms and list the attachments for a term.
132
 
139
  = 0.1 =
140
  Initial release.
141
 
142
+ == Help Summary ==
143
+ <p><strong><em>Assistant Submenu - Attachment List Table</em></strong></p>
144
+ <p><strong>Overview</strong></p>
145
+ <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>
146
+ <p>You can use the Screen Options tab to customize the display of this screen. You can choose any combination of the sixteen (16) columns available for display. You can also choose how many items appear on each page of the display.</p>
147
+ <p>You can narrow the list by file type/status using the text link filters at the top of the screen. You also can refine the list by month using the dropdown menu above the media table.</p>
148
+ <p>If you have selected &#8220;Attachment Categories&#8221; support, you can filter the list by selecting &#8220;All Categories&#8221;, &#8220;No Categories&#8221; or a specific category from the drop down list. If you select a category that has child categories beneath it, attachments in any of the child categories will also appear in the filtered list.</p>
149
+ <p><strong>NOTE:</strong> Month and category filters are &#8220;sticky&#8221;, i.e., they will persist as you resort the display or change the file type/status view.</p>
150
+ <p><strong>Featured/Inserted</strong></p>
151
+ <p>The &#8220;Featured in&#8221; and &#8220;Inserted in&#8221; columns are a powerful tool for managing your attachments. They show you where each attachment is used in a post or page as a &#8220;Featured Image&#8221; or as an embedded image or link.</p>
152
+ <p>You can also use the information in the &#8220;Title/Name&#8221; column to identify &#8220;Orphan&#8221; items that are not used in any post or page and items with a &#8220;Bad Parent&#8221;, i.e., a parent that does not exist.</p>
153
+ <p><strong>Taxonomy Support</strong></p>
154
+ <p>The &#8220;taxonomy&#8221; columns help you to group attachments by subject and keyword values. The columns list any categories and tags associated with the item. You can click on one of the displayed values to get a list of all items associated with that value.</p>
155
+ <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>
156
+ <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>
157
+ <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>
158
+ <p><strong>Bulk Actions</strong></p>
159
+ <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>
160
+ <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>
161
+ <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>
162
+ <p>When using Bulk Edit, you can change the metadata (author, parent, taxonomy terms) for all selected attachments at once. To remove an attachment from the grouping, just click the x next to its name in the left column of the Bulk Edit area.</p>
163
+ <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>
164
+ <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>
165
+ <p><strong>Available Actions</strong></p>
166
+ <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>
167
+ <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>
168
+ <p><strong>Attaching Files</strong></p>
169
+ <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>
170
+ <p><strong><em>Single Item Edit Screen</em></strong></p>
171
+ <p><strong>Overview</strong></p>
172
+ <p>This screen allows you to view many of the fields associated with an attachment and to edit several of them. Fields that are read-only have a light gray background; fields that may be changes have a white background. Hints and helpful information appear below some fields.</p>
173
+ <p>Remember to click the &#8220;Update&#8221; button to save your work. You may instead click the &#8220;Cancel&#8221; button to discard any changes.</p>
174
+ <p><strong>Taxonomies</strong></p>
175
+ <p>If there are custom taxonomies, such as &#8220;Attachment Categories&#8221; or &#8220;Attachment Tags&#8221;, registered for attachments they will apppear in the right-hand column on this screen. You can add or remove terms from any of the taxonomies displayed. Changes will not be saved until you click the &#8220;Update&#8221; button for the attachment.</p>
176
+ <p><strong>Parent Info</strong></p>
177
+ <p>The &#8220;Parent Info&#8221; field displays the Post ID, type and title of the post or page to which the item is attached. It will display &#8220;0 (unattached)&#8221; if there is no parent post or page.</p>
178
+ <p>You can change the post or page to which the item is attached by changing the Post ID value and clicking the &#8220;Update&#8221; button. Changing the Post ID value to zero (0) will &#8220;unattach&#8221; the item.</p>
179
+ <p><strong><em>Edit Hierarchical Taxonomies (Categories)</em></strong></p>
180
+ <p><strong>Overview</strong></p>
181
+ <p>You can use <strong>categories</strong> to define sections of your site and group related attachments. The default is &#8220;none&#8221;, i.e., the attachment is not associated with any category.</p>
182
+ <p>What&#8217;s the difference between categories and tags? Normally, tags are ad-hoc keywords that identify important information about your attachment (names, subjects, etc) that may or may not apply to other attachments, while categories are pre-determined sections. If you think of your site like a book, the categories are like the Table of Contents and the tags are like the terms in the index.</p>
183
+ <p>You can change the display of this screen using the Screen Options tab to set how many items are displayed per screen and to display/hide columns in the table.</p>
184
+ <p><strong>Adding Categories</strong></p>
185
+ <p>When adding a new category on this screen, you&#8217;ll fill in the following fields:</p>
186
+ <ul>
187
+ <li><strong>Name</strong> - The name is how it appears on your site.</li>
188
+ <li><strong>Slug</strong> - The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.</li>
189
+ <li><strong>Parent</strong> - Categories, unlike tags, can have a hierarchy. You might have a Landscape category, and under that have children categories for Mountains and Seashore. Totally optional. To create a subcategory, just choose another category from the Parent dropdown.</li>
190
+ <li><strong>Description</strong> - The description is not prominent by default; however, some themes may display it.</li>
191
+ </ul>
192
+ <p><strong>Attachments Column</strong></p>
193
+ <p>The &#8220;Attachments&#8221; colunm at the right of the table gives you the number of attachments associated with each category. You can click on the number to get a list of all the attachments with that category. The heading on the list page(s) will display the category value you&#8217;ve selected.</p>
194
+ <p><strong><em>Edit Flat Taxonomies (Tags)</em></strong></p>
195
+ <p><strong>Overview</strong></p>
196
+ <p>You can assign keywords to your attachments using <strong>tags</strong>. Unlike categories, tags have no hierarchy, meaning there&#8217;s no relationship from one tag to another.</p>
197
+ <p>What&#8217;s the difference between categories and tags? Normally, tags are ad-hoc keywords that identify important information about your attachment (names, subjects, etc.) that may or may not apply to other attachments, while categories are pre-determined sections. If you think of your site like a book, the categories are like the Table of Contents and the tags are like the terms in the index.</p>
198
+ <p>You can change the display of this screen using the Screen Options tab to set how many items are displayed per screen and to display/hide columns in the table.</p>
199
+ <p><strong>Adding Tags</strong></p>
200
+ <p>When adding a new tag on this screen, you&#8217;ll fill in the following fields:</p>
201
+ <ul>
202
+ <li><strong>Name</strong> - The name is how it appears on your site.</li>
203
+ <li><strong>Slug</strong> - The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.</li>
204
+ <li><strong>Description</strong> - The description is not prominent by default; however, some themes may display it.</li>
205
+ </ul>
206
+ <p><strong>Attachments Column</strong></p>
207
+ <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>
208
  == Other Notes ==
209
 
210
  I have used and learned much from the following books (among many):
screenshot-1.png DELETED
Binary file
screenshot-2.png DELETED
Binary file
screenshot-3.png DELETED
Binary file
screenshot-4.png DELETED
Binary file
tpls/admin-display-settings-page.tpl CHANGED
@@ -54,7 +54,7 @@
54
  <div style="font-size:8pt;padding-bottom:10px;">&nbsp;&nbsp;[+help+]</div>
55
  </td></tr>
56
  <!-- template="messages" -->
57
- <div style="background:#ECECEC;border:1px solid #CCC;padding:0 10px;margin-top:5px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;">
58
  <p>
59
  [+messages+]
60
  </p></div>
@@ -77,7 +77,7 @@
77
  Support
78
  </th>
79
  <th scope="col" style="text-align:center">
80
- Quick Edit
81
  </th>
82
  <th scope="col" style="text-align:center">
83
  List Filter
@@ -122,6 +122,8 @@
122
  <input name="mla-options-save" type="submit" class="button-primary" value="Save Changes" />
123
  <input name="mla-options-reset" type="submit" class="button-primary" value="Delete all options and restore default settings" style="float:right;"/>
124
  </p>
 
 
125
  </form>
126
  <h3>Plugin Documentation</h3>
127
  <p>
54
  <div style="font-size:8pt;padding-bottom:10px;">&nbsp;&nbsp;[+help+]</div>
55
  </td></tr>
56
  <!-- template="messages" -->
57
+ <div class="mla_messages">
58
  <p>
59
  [+messages+]
60
  </p></div>
77
  Support
78
  </th>
79
  <th scope="col" style="text-align:center">
80
+ Inline Edit
81
  </th>
82
  <th scope="col" style="text-align:center">
83
  List Filter
122
  <input name="mla-options-save" type="submit" class="button-primary" value="Save Changes" />
123
  <input name="mla-options-reset" type="submit" class="button-primary" value="Delete all options and restore default settings" style="float:right;"/>
124
  </p>
125
+ [+_wpnonce+]
126
+ [+_wp_http_referer+]
127
  </form>
128
  <h3>Plugin Documentation</h3>
129
  <p>
tpls/admin-inline-edit-form.tpl CHANGED
@@ -17,12 +17,18 @@
17
  <!-- template="tag_block" -->
18
  <label class="inline-edit-tags">
19
  <span class="title">[+tax_html+]</span>
20
- <textarea cols="22" rows="1" name="tax_input[[+tax_attr+]]" class="tax_input_[+tax_attr+]"></textarea>
21
  </label>
22
 
 
 
 
 
 
 
23
  <!-- template="page" -->
24
  <form method="get" action="">
25
- <table style="display: none">
26
  <tbody id="inlineedit">
27
  <tr id="inline-edit" class="inline-edit-row inline-edit-row-attachment inline-edit-attachment quick-edit-row quick-edit-row-attachment inline-edit-attachment" style="display: none">
28
  <td colspan="[+colspan+]" class="colspanchange">
@@ -42,9 +48,10 @@
42
  <input type="text" name="post_parent" value="" />
43
  </span> </label>
44
  [+authors+]
 
45
  </fieldset>
46
- [+middle_column+]
47
- [+right_column+]
48
  <p class="submit inline-edit-save">
49
  <a accesskey="c" href="#inline-edit" title="Cancel" class="button-secondary cancel alignleft">Cancel</a>
50
  <a accesskey="s" href="#inline-edit" title="Update" class="button-primary save alignright">Update</a>
@@ -55,6 +62,35 @@
55
  </p>
56
  </td>
57
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  </tbody>
59
  </table>
60
  </form>
17
  <!-- template="tag_block" -->
18
  <label class="inline-edit-tags">
19
  <span class="title">[+tax_html+]</span>
20
+ <textarea cols="22" rows="1" name="tax_input[[+tax_attr+]]" class="tax_input_[+tax_attr+] mla_tags"></textarea>
21
  </label>
22
 
23
+ <!-- template="taxonomy_options" -->
24
+ <div class="mla_bulk_taxonomy_options">
25
+ <input type="radio" name="tax_action[[+tax_attr+]]" id="tax_add_[+tax_attr+]" checked="checked" value="add" /> Add&nbsp;
26
+ <input type="radio" name="tax_action[[+tax_attr+]]" id="tax_remove_[+tax_attr+]" value="remove" /> Remove&nbsp;
27
+ <input type="radio" name="tax_action[[+tax_attr+]]" id="tax_reset_[+tax_attr+]" value="replace" /> Replace&nbsp;
28
+ </div>
29
  <!-- template="page" -->
30
  <form method="get" action="">
31
+ <table width="99%" style="display: none">
32
  <tbody id="inlineedit">
33
  <tr id="inline-edit" class="inline-edit-row inline-edit-row-attachment inline-edit-attachment quick-edit-row quick-edit-row-attachment inline-edit-attachment" style="display: none">
34
  <td colspan="[+colspan+]" class="colspanchange">
48
  <input type="text" name="post_parent" value="" />
49
  </span> </label>
50
  [+authors+]
51
+ </div>
52
  </fieldset>
53
+ [+quick_middle_column+]
54
+ [+quick_right_column+]
55
  <p class="submit inline-edit-save">
56
  <a accesskey="c" href="#inline-edit" title="Cancel" class="button-secondary cancel alignleft">Cancel</a>
57
  <a accesskey="s" href="#inline-edit" title="Update" class="button-primary save alignright">Update</a>
62
  </p>
63
  </td>
64
  </tr>
65
+ <tr id="bulk-edit" class="inline-edit-row inline-edit-row-post inline-edit-attachment bulk-edit-row bulk-edit-row-attachment bulk-edit-attachment" style="display: none">
66
+ <td colspan="[+colspan+]" class="colspanchange">
67
+ <fieldset class="inline-edit-col-left">
68
+ <div class="inline-edit-col">
69
+ <h4>Bulk Edit</h4>
70
+ <div id="bulk-title-div">
71
+ <div id="bulk-titles"></div>
72
+ </div>
73
+ </div>
74
+ </fieldset>
75
+ [+bulk_middle_column+]
76
+ [+bulk_right_column+]
77
+ <fieldset class="inline-edit-col-right">
78
+ <div class="inline-edit-col">
79
+ <label class="inline-edit-post-parent"> <span class="title">Parent ID</span> <span class="input-text-wrap">
80
+ <input type="text" name="post_parent" value="" />
81
+ </span> </label>
82
+ [+authors+]
83
+ </div>
84
+ </fieldset>
85
+ <p class="submit inline-edit-save">
86
+ <a accesskey="c" href="#inline-edit" title="Cancel" class="button-secondary cancel alignleft">Cancel</a>
87
+ <input accesskey="s" type="submit" name="bulk_edit" id="bulk_edit" class="button-primary alignright" value="Update" />
88
+ <input type="hidden" name="page" value="mla-menu" />
89
+ <input type="hidden" name="screen" value="media_page_mla-menu" />
90
+ <span class="error" style="display:none"></span> <br class="clear" />
91
+ </p>
92
+ </td>
93
+ </tr>
94
  </tbody>
95
  </table>
96
  </form>
tpls/help-for-media_page_mla-menu.tpl CHANGED
@@ -1,6 +1,6 @@
1
  <!-- template="mla-overview" -->
2
  <!-- title="Overview" order="1" -->
3
- <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.</p>
4
  <p>You can use the Screen Options tab to customize the display of this screen. You can choose any combination of the sixteen (16) columns available for display. You can also choose how many items appear on each page of the display.</p>
5
  <p>You can narrow the list by file type/status using the text link filters at the top of the screen. You also can refine the list by month using the dropdown menu above the media table.</p>
6
  <p>If you have selected &#8220;Attachment Categories&#8221; support, you can filter the list by selecting &#8220;All Categories&#8221;, &#8220;No Categories&#8221; or a specific category from the drop down list. If you select a category that has child categories beneath it, attachments in any of the child categories will also appear in the filtered list.</p>
@@ -20,9 +20,13 @@
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>
 
 
 
23
  <!-- template="mla-available-actions" -->
24
  <!-- title="Available Actions" order="5" -->
25
- <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 Quick Edit displays an inline form to edit the file's metadata without leaving the menu screen. 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).</p>
 
26
  <!-- template="mla-attaching-files" -->
27
  <!-- title="Attaching Files" order="6" -->
28
  <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>
1
  <!-- template="mla-overview" -->
2
  <!-- title="Overview" order="1" -->
3
+ <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>
4
  <p>You can use the Screen Options tab to customize the display of this screen. You can choose any combination of the sixteen (16) columns available for display. You can also choose how many items appear on each page of the display.</p>
5
  <p>You can narrow the list by file type/status using the text link filters at the top of the screen. You also can refine the list by month using the dropdown menu above the media table.</p>
6
  <p>If you have selected &#8220;Attachment Categories&#8221; support, you can filter the list by selecting &#8220;All Categories&#8221;, &#8220;No Categories&#8221; or a specific category from the drop down list. If you select a category that has child categories beneath it, attachments in any of the child categories will also appear in the filtered list.</p>
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>
23
+ <p>When using Bulk Edit, you can change the metadata (author, parent, taxonomy terms) for all selected attachments at once. To remove an attachment from the grouping, just click the x next to its name in the left column of the Bulk Edit area.</p>
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>