WordPress.org

Plugin Directory

Changeset 1717160


Ignore:
Timestamp:
08/21/17 17:16:25 (3 months ago)
Author:
Mte90
Message:

tagging version 1.4.9

Location:
glossary-by-codeat
Files:
616 added
4 edited

Legend:

Unmodified
Added
Removed
  • glossary-by-codeat/trunk/README.txt

    r1716924 r1717160  
    55Requires at least: 4.6 
    66Tested up to: 4.8 
    7 Stable tag: 1.4.8 
     7Stable tag: 1.4.9 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    123123== Changelog == 
    124124 
     125= 1.4.9 = 
     126* Fix: Adding capabilities for website with removed default rols was getting an error 
     127* Enhancement: Description to Glossary Terms and Glossary Category slug fields cannot use the same slugs 
     128 
    125129= 1.4.8 = 
    126130* Fix: Upgrade routine wasn't working 
  • glossary-by-codeat/trunk/admin/views/admin.php

    r1716924 r1717160  
    9898$cmb->add_field( array( 
    9999    'name'    => __( 'Glossary Terms Slug', GT_TEXTDOMAIN ), 
     100    'desc'    => __( 'Terms and Categories cannot have the same custom base slug.', GT_TEXTDOMAIN ), 
    100101    'id'      => 'slug', 
    101102    'type'    => 'text_small', 
     
    104105$cmb->add_field( array( 
    105106    'name'    => __( 'Glossary Category Slug', GT_TEXTDOMAIN ), 
     107    'desc'    => __( 'Terms and Categories cannot have the same custom base slug.', GT_TEXTDOMAIN ), 
    106108    'id'      => 'slug-cat', 
    107109    'type'    => 'text_small', 
  • glossary-by-codeat/trunk/glossary.php

    r1716924 r1717160  
    1414 * Plugin URI:        http://codeat.co/glossary 
    1515 * Description:       Easily add and manage a glossary with auto-link, tooltips and more. Improve your internal link building for a better SEO. 
    16  * Version:           1.4.8 
     16 * Version:           1.4.9 
    1717 * Author:            Codeat 
    1818 * Author URI:        http://codeat.co 
     
    2929    die; 
    3030} 
    31 define( 'GT_VERSION', '1.4.8' ); 
     31define( 'GT_VERSION', '1.4.9' ); 
    3232define( 'GT_SETTINGS', 'glossary' ); 
    3333define( 'GT_TEXTDOMAIN', 'glossary-by-codeat' ); 
  • glossary-by-codeat/trunk/includes/Glossary_Upgrade.php

    r1716924 r1717160  
    3535    public function activate() { 
    3636        if ( is_admin() ) { 
    37             $version = get_option('glossary-version'); 
     37            $version = get_option( 'glossary-version' ); 
    3838            if ( version_compare( GT_VERSION, $version, '>' ) ) { 
    3939                $this->add_admin_cap(); 
     
    7777        ); 
    7878        foreach ( $roles as $role ) { 
    79             foreach ( $caps as $cap ) { 
    80                 $role->add_cap( $cap ); 
     79            if ( !is_null( $role ) ) { 
     80                foreach ( $caps as $cap ) { 
     81                    $role->add_cap( $cap ); 
     82                } 
    8183            } 
    8284        } 
     
    103105        ); 
    104106        foreach ( $roles as $role ) { 
    105             foreach ( $bad_caps as $cap ) { 
    106                 $role->remove_cap( $cap ); 
     107            if ( !is_null( $role ) ) { 
     108                foreach ( $bad_caps as $cap ) { 
     109                    $role->remove_cap( $cap ); 
     110                } 
    107111            } 
    108112        } 
Note: See TracChangeset for help on using the changeset viewer.