Plugin Directory

Changeset 2422333


Ignore:
Timestamp:
11/20/2020 12:58:00 PM (5 years ago)
Author:
kodeks
Message:

Fjernet Toro-ajax-fix

Location:
kodeks-dashboard/trunk
Files:
3 edited

Legend:

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

    r2413812 r2422333  
    436436
    437437    // Media uploader - enable SVG
    438     if ( ! function_exists( 'cc_mime_types' )){
     438    if ( !function_exists( 'cc_mime_types' )){
    439439        function cc_mime_types($mimes) {
    440440            $mimes['svg'] = 'image/svg+xml';
     
    445445
    446446    // Move Yoast to bottom
    447     if ( ! function_exists( 'yoasttobottom' )){
     447    if ( !function_exists( 'yoasttobottom' )){
    448448        function yoasttobottom() {
    449449            return 'low';
     
    460460
    461461    // STOP TINYMCE CLASSES
    462     if ( ! function_exists( 'customize_tinymce' )){
     462    if ( !function_exists( 'customize_tinymce' )){
    463463        add_filter('tiny_mce_before_init', 'customize_tinymce');
    464464
     
    754754    };
    755755
    756     if ( ! function_exists( 'kodeks_search_join' ) && $search_plugin == false ) {
     756    if ( !function_exists( 'kodeks_search_join' ) && $search_plugin == false ) {
    757757
    758758        function kodeks_search_join( $join ) {
    759759            global $wpdb;
    760760
    761             if ( is_search() || (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strcasecmp($_SERVER['HTTP_X_REQUESTED_WITH'], 'xmlhttprequest') == 0)) { 
     761            if ( is_search() ) { 
    762762                $join .=' LEFT JOIN '.$wpdb->postmeta. ' ON '. $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';
    763763            }
     
    779779            global $pagenow, $wpdb;
    780780
    781             if ( is_search() || (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strcasecmp($_SERVER['HTTP_X_REQUESTED_WITH'], 'xmlhttprequest') == 0)) {
     781            if ( is_search() ) {
    782782                $where = preg_replace(
    783783                    "/\(\s*".$wpdb->posts.".post_title\s+LIKE\s*(\'[^\']+\')\s*\)/",
     
    795795 * http://codex.wordpress.org/Plugin_API/Filter_Reference/posts_distinct
    796796 */
    797     if ( ! function_exists( 'kodeks_search_distinct' ) && $search_plugin == false ) {
     797    if ( !function_exists( 'kodeks_search_distinct' ) && $search_plugin == false ) {
    798798        function kodeks_search_distinct( $where ) {
    799799            global $wpdb;
    800800
    801             if ( is_search() || (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strcasecmp($_SERVER['HTTP_X_REQUESTED_WITH'], 'xmlhttprequest') == 0)) {
     801            if ( is_search() ) {
    802802                return "DISTINCT";
    803803            }
  • kodeks-dashboard/trunk/kodeks-dashboard.php

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

    r2413812 r2422333  
    11=== Kodeks Dashboard ===
    2 Version: 3.0.14
     2Version: 3.0.15
    33Contributors: Kodeks AS
    44Tested up to: 5.5.3
Note: See TracChangeset for help on using the changeset viewer.