WordPress.org

Plugin Directory

Changeset 607144


Ignore:
Timestamp:
10/02/12 19:23:24 (19 months ago)
Author:
husobj
Message:

Disable admin functionality in WordPress 3.5+.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • attachment-taxonomy-support/trunk/attachment-taxonomy-support.php

    r544664 r607144  
    3030     */ 
    3131    function init_plugin() { 
     32        global $wp_version; 
    3233        load_plugin_textdomain( 'attachmenttaxsupp', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); 
    3334        $this->setup_taxonomies(); 
    34         if ( is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { 
     35         
     36        // Pre WordPress 3.5 admin compatibility 
     37        // Currently there is no way to edit an image's taxonomies in the media popup n WordPress 3.5+ 
     38        if ( ( is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) && version_compare( $wp_version, '3.5.dev', '<' ) ) { 
    3539            require_once( $this->plugin_dir . '/admin/admin.php' ); 
    3640            $this->admin = new AttachmentTaxSupp_Admin(); 
Note: See TracChangeset for help on using the changeset viewer.