Plugin Directory

Changeset 1138110


Ignore:
Timestamp:
04/18/2015 05:59:19 PM (11 years ago)
Author:
joergviola
Message:

show models in media manager

Location:
3d-model-viewer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 3d-model-viewer/trunk/3d-model-viewer.php

    r1138097 r1138110  
    55 * Plugin URI: https://wordpress.org/plugins/3d-model-viewer/
    66 * Description: The first live 3D plugin for wordpress
    7  * Version: 1.5
     7 * Version: 1.6
    88 * Author: Joerg Viola
    99 * Author URI: http://www.joergviola.de
     
    2121        add_action('init', array(__CLASS__, 'register_scripts'));
    2222        add_action('wp_footer', array(__CLASS__, 'print_scripts'));
     23        add_filter( 'ajax_query_attachments_args', array(__CLASS__,'show_model_attachments'), 10, 1 );
     24       
     25       
    2326    }
    2427   
     
    3639    }
    3740   
     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    }
    3846    function add_custom_mime_types($mimes){
    3947        return array_merge($mimes,array (
  • 3d-model-viewer/trunk/readme.txt

    r1137331 r1138110  
    55Requires at least: 4.0.0
    66Tested up to: 4.1.1
    7 Stable tag: 1.5
     7Stable tag: 1.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6464== Changelog ==
    6565
     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
    6671= 1.5 =
    6772* OBJ and OBJMTL format supported.
Note: See TracChangeset for help on using the changeset viewer.