Plugin Directory

Changeset 1725723


Ignore:
Timestamp:
09/06/2017 04:40:32 PM (9 years ago)
Author:
thangnv27
Message:
  • Fix bug js
  • Fix Add Quick Tag support type
Location:
wp-multitasking/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-multitasking/trunk/includes/addquicktag_cpt.php

    r831023 r1725723  
    55    exit;
    66}
    7 
    8 add_action('admin_menu', 'wpmt_addquicktag_menu');
     7if(class_exists( 'Add_Quicktag' )){
     8    add_action('admin_menu', 'wpmt_addquicktag_menu');
     9}
    910
    1011function wpmt_addquicktag_menu(){
     
    4546                <?php
    4647                $post_types = get_post_types();
    47                 $exclude_types = array('post', 'page', 'revision');
     48                $exclude_types = array('post', 'page', 'revision', 'attachment', 'nav_menu_item', 'custom_css', 'customize_changeset', 'acf-field-group', 'acf-field');
    4849                foreach ($post_types as $post_type) {
    4950                    if(in_array($post_type, $exclude_types)){
     
    8889}
    8990   
    90 if (!function_exists('wpmt_addquicktag_post_types')) {
     91if (!function_exists('wpmt_addquicktag_post_types') and class_exists( 'Add_Quicktag' )) {
    9192    // add custom function to filter hook 'addquicktag_post_types'
    9293    add_filter('addquicktag_post_types', 'wpmt_addquicktag_post_types');
  • wp-multitasking/trunk/readme.txt

    r837190 r1725723  
    1 === WP MultiTasking ===
     1=== WP MultiTasking - PPO Utilities ===
    22Contributors: thangnv27
    33Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6ADQPKM8RFF4A
    4 Tags: shorcode,mark id,bbcode,welcome popup,exit popup,popup,addquicktag,custom post type,post type
     4Tags: shorcode,mark id,bbcode,welcome popup,exit popup,popup,addquicktag,custom post type,post type,remove base slug
    55Requires at least: 2.0.2
    6 Tested up to: 3.8
    7 Stable tag: 4.3
     6Tested up to: 4.8.1
     7Stable tag: 4.8.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7777== Changelog ==
    7878
     79= 0.1.5 =
     80* Fix bug js
     81* Fix Add Quick Tag support type
     82
    7983= 0.1.4 =
    8084* Fix bug flush rewrite after insert post or custom post type
  • wp-multitasking/trunk/wp-multitasking.php

    r837190 r1725723  
    11<?php
    22/***************************************************************************
    3 Plugin Name: WP MultiTasking
     3Plugin Name: WP MultiTasking - PPO Utilities
    44Plugin URI:  http://wordpress.org/plugins/wp-multitasking/
    55Description: This plugin is synthetic utility for your WordPress site
    6 Version:     0.1.4
     6Version:     0.1.5
    77Author:      thangnv27
    88Author URI:  http://ppo.vn/
     
    121121    <script type="text/javascript">/* <![CDATA[ */
    122122        jQuery(function($){
    123             $("select.wpmt-chosen-select").chosen({width: "40%"});
     123            try {
     124                $("select.wpmt-chosen-select").chosen({width: "40%"});
     125            } catch(err) {
     126                console.log(err.message)
     127            }
    124128        });
    125129        /* ]]> */
Note: See TracChangeset for help on using the changeset viewer.