Plugin Directory

Changeset 2273711


Ignore:
Timestamp:
04/02/2020 08:58:00 AM (6 years ago)
Author:
kodeks
Message:

Search custom fields without plugin - fix

Location:
kodeks-dashboard/trunk
Files:
3 edited

Legend:

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

    r2268150 r2273711  
    710710 */
    711711
    712 if ( ! function_exists( 'cf_search_join' ) ) {
    713 
    714     function cf_search_join( $join ) {
     712if ( ! function_exists( 'kodeks_search_join' ) ) {
     713
     714    function kodeks_search_join( $join ) {
    715715        global $wpdb;
    716716
     
    721721        return $join;
    722722    }
    723     add_filter('posts_join', 'cf_search_join' );
     723    add_filter('posts_join', 'kodeks_search_join' );
    724724
    725725}
     
    731731 */
    732732
    733 if ( ! function_exists( 'cf_search_where' ) ) {
    734     function cf_search_where( $where ) {
     733if ( ! function_exists( 'kodeks_search_where' ) ) {
     734    function kodeks_search_where( $where ) {
    735735        global $pagenow, $wpdb;
    736736
     
    743743        return $where;
    744744    }
    745     add_filter( 'posts_where', 'cf_search_where' );
     745    add_filter( 'posts_where', 'kodeks_search_where' );
    746746}
    747747
     
    751751 * http://codex.wordpress.org/Plugin_API/Filter_Reference/posts_distinct
    752752 */
    753 if ( ! function_exists( 'cf_search_distinct' ) ) {
    754     function cf_search_distinct( $where ) {
     753if ( ! function_exists( 'kodeks_search_distinct' ) ) {
     754    function kodeks_search_distinct( $where ) {
    755755        global $wpdb;
    756756
     
    761761        return $where;
    762762    }
    763     add_filter( 'posts_distinct', 'cf_search_distinct' );
     763    add_filter( 'posts_distinct', 'kodeks_search_distinct' );
    764764}
    765765
  • kodeks-dashboard/trunk/kodeks-dashboard.php

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

    r2268150 r2273711  
    11=== Kodeks Dashboard ===
    2 Version: 2.22
     2Version: 2.23
    33Contributors: Kodeks AS
    44Tested up to: 5.3.2
Note: See TracChangeset for help on using the changeset viewer.