Plugin Directory

Changeset 2413770


Ignore:
Timestamp:
11/06/2020 09:01:53 AM (5 years ago)
Author:
kodeks
Message:

conditionals på funksjoner

Location:
kodeks-dashboard/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kodeks-dashboard/trunk/functions.php

    r2412321 r2413770  
    327327
    328328    /* Enable / disable admin-bar */
    329     if (!isset($kodeks_options['setting_adminbar']) || $kodeks_options['setting_adminbar'] == 1) {
     329    if (!isset($kodeks_options['setting_adminbar']) || $kodeks_options['setting_adminbar'] == 1 && !function_exists( 'remove_admin_bar' ) ) {
    330330        add_filter('show_admin_bar', 'remove_admin_bar');
    331331        function remove_admin_bar() {
     
    668668 * @global int $content_width
    669669 */
    670     function kodeks_content_width() {
    671         $GLOBALS['content_width'] = apply_filters( 'kodeks_content_width', 640 );
    672     }
    673     add_action( 'after_setup_theme', 'kodeks_content_width', 0 );
     670    if ( ! function_exists( 'kodeks_content_width' )){
     671        function kodeks_content_width() {
     672            $GLOBALS['content_width'] = apply_filters( 'kodeks_content_width', 640 );
     673        }
     674        add_action( 'after_setup_theme', 'kodeks_content_width', 0 );
     675    }
    674676
    675677    /**
  • kodeks-dashboard/trunk/kodeks-dashboard.php

    r2412321 r2413770  
    33Plugin Name: Kodeks Dashboard
    44Description: This plugin customizes WordPress for Kodeks customers.
    5 Version: 3.0.8
     5Version: 3.0.9
    66Author: Thomas Johannessen & Marius Kaase
    77Author URI: http://kodeks.no
  • kodeks-dashboard/trunk/readme.txt

    r2412321 r2413770  
    11=== Kodeks Dashboard ===
    2 Version: 3.0.8
     2Version: 3.0.9
    33Contributors: Kodeks AS
    44Tested up to: 5.5.3
Note: See TracChangeset for help on using the changeset viewer.