Changeset 1138110
- Timestamp:
- 04/18/2015 05:59:19 PM (11 years ago)
- Location:
- 3d-model-viewer/trunk
- Files:
-
- 2 edited
-
3d-model-viewer.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
3d-model-viewer/trunk/3d-model-viewer.php
r1138097 r1138110 5 5 * Plugin URI: https://wordpress.org/plugins/3d-model-viewer/ 6 6 * Description: The first live 3D plugin for wordpress 7 * Version: 1. 57 * Version: 1.6 8 8 * Author: Joerg Viola 9 9 * Author URI: http://www.joergviola.de … … 21 21 add_action('init', array(__CLASS__, 'register_scripts')); 22 22 add_action('wp_footer', array(__CLASS__, 'print_scripts')); 23 add_filter( 'ajax_query_attachments_args', array(__CLASS__,'show_model_attachments'), 10, 1 ); 24 25 23 26 } 24 27 … … 36 39 } 37 40 41 function show_model_attachments( $query = array() ) { 42 //unset($query['post_mime_type']); 43 $query['post_mime_type'] = array('image', 'text', 'model'); 44 return $query; 45 } 38 46 function add_custom_mime_types($mimes){ 39 47 return array_merge($mimes,array ( -
3d-model-viewer/trunk/readme.txt
r1137331 r1138110 5 5 Requires at least: 4.0.0 6 6 Tested up to: 4.1.1 7 Stable tag: 1. 57 Stable tag: 1.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 64 64 == Changelog == 65 65 66 = 1.6 = 67 * Bugfix: Show model without interaction. Timing problem fixed. (I hope;-) 68 * Only load scripts when 3D shortcode present on page. 69 * Show uploaded models in media manager 70 66 71 = 1.5 = 67 72 * OBJ and OBJMTL format supported.
Note: See TracChangeset
for help on using the changeset viewer.