Forums

EG Attachments and Custom Post Types (4 posts)

  1. Matthieu
    Member
    Posted 3 months ago #

    Hi, the checkboxes in the option panels of the plugin does not save the choice of Custom Post Type. When you check one custom pot type and save the options, and come back to the option panel, the checkboxes are unchecked.

    Les options pour les custom post type ne marchent pas Emmanuel, pourrais-tu corriger.
    Merci beaucoup

  2. Matthieu
    Member
    Posted 3 months ago #

    Bon Emmanuel,
    j'ai débugué le plugin quant à la non prise en compte des options de pages d'activation de l'autoshortcode pour la dernière version de ton plugin
    --> dans le fichier eg-attachments-admin.inc.php, il suffit de commenter de la ligne 77 à 85 les lignes suivantes :

    /*if (version_compare($previous_version, '1.9.2', '<')) {
    					if ($this->options['shortcode_auto_where'] == 'post')
    						$this->options['shortcode_auto_where'] = array( 'post', 'page');
    					else
    						$this->options['shortcode_auto_where'] = array( 'home', 'post', 'page', 'index');
    
    					update_option($this->options_entry, $this->options);
    
    				}*/ // End of version older than 1.9.2

    Tu pourrais quand même faire une mise à jour corrective stp
    On approche du but
    C'est dommage d'avoir un plugin juste 'presque' parfait

  3. EmmanuelG
    Member
    Posted 3 months ago #

    Bonjour Matthieu
    Ta correction fonctionne, mais elle peut bloquer ceux qui viennent d'une version inferieure a la 1.9.2.

    Je vais chercher une solution qui convient a tous les cas.

    Publication probable cette semaine.

    Emmanuel.

  4. EmmanuelG
    Member
    Posted 2 months ago #

    Problem solved with the version 1.9.4.3

Reply

You must log in to post.

About this Topic