Changeset 1811447
- Timestamp:
- 01/29/2018 08:57:34 PM (8 years ago)
- Location:
- katracker/trunk
- Files:
-
- 3 edited
-
functions.php (modified) (1 diff)
-
katracker.php (modified) (1 diff)
-
torrent/torrent-init.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
katracker/trunk/functions.php
r1455925 r1811447 538 538 update_torrent_meta( $attachment_id, $key, $value, true ); 539 539 } 540 $torrent_post = array( 541 'ID' => $attachment_id, 542 'post_title' => $torrent->name() 543 ); 544 wp_update_post( $torrent_post ); 540 545 } else { 541 546 return false; -
katracker/trunk/katracker.php
r1811441 r1811447 4 4 * Description: The only full and all powerful, complete bittorrent tracker integration for wordpress. 5 5 * Author: nicoco 6 * Version: 1.1.1 16 * Version: 1.1.12 7 7 * License: GPL2 8 8 * Text Domain: katracker -
katracker/trunk/torrent/torrent-init.php
r1811442 r1811447 54 54 }, 10, 4 ); 55 55 56 // Allow uploading torrents to wordpress media library 57 add_filter( 'mime_types', function ( $existing_mimes ) { 58 $existing_mimes['torrent'] = 'torrent/torrent'; 59 return $existing_mimes; 60 } ); 56 61 57 62 /** … … 69 74 return $path; 70 75 } 71 72 // Allow uploading torrents to wordpress media library73 add_filter( 'mime_types', function ( $existing_mimes ) {74 $existing_mimes['torrent'] = 'torrent/torrent';75 return $existing_mimes;76 } );77 76 78 77 // Add wordpress torrent media type
Note: See TracChangeset
for help on using the changeset viewer.