Changeset 2413812
- Timestamp:
- 11/06/2020 10:18:22 AM (5 years ago)
- Location:
- kodeks-dashboard/trunk
- Files:
-
- 3 edited
-
functions.php (modified) (3 diffs)
-
kodeks-dashboard.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kodeks-dashboard/trunk/functions.php
r2413804 r2413812 613 613 } 614 614 615 if ( ! function_exists( 'get_current_template' )){615 if ( !function_exists( 'get_current_template' )){ 616 616 function get_current_template( $echo = false ) { 617 617 if( !isset( $GLOBALS['current_theme_template'] ) ) … … 624 624 } 625 625 626 if ( ! function_exists( 'is_post_type' )){626 if ( !function_exists( 'is_post_type' )){ 627 627 function is_post_type($type){ 628 628 global $wp_query; … … 737 737 738 738 739 740 // Fix ACF Preview741 742 if ( !function_exists( 'kodeks_fix_post_id_on_preview' ) ){743 744 function kodeks_fix_post_id_on_preview($null, $post_id) {745 if (is_preview()) {746 return get_the_ID();747 }748 else {749 $acf_post_id = isset($post_id->ID) ? $post_id->ID : $post_id;750 751 if (!empty($acf_post_id)) {752 return $acf_post_id;753 }754 else {755 return $null;756 }757 }758 }759 add_filter( 'acf/pre_load_post_id', 'kodeks_fix_post_id_on_preview', 10, 2 );760 }761 762 763 739 /** 764 740 * Extend WordPress search to include custom fields -
kodeks-dashboard/trunk/kodeks-dashboard.php
r2413804 r2413812 3 3 Plugin Name: Kodeks Dashboard 4 4 Description: This plugin customizes WordPress for Kodeks customers. 5 Version: 3.0.1 35 Version: 3.0.14 6 6 Author: Thomas Johannessen & Marius Kaase 7 7 Author URI: http://kodeks.no -
kodeks-dashboard/trunk/readme.txt
r2413804 r2413812 1 1 === Kodeks Dashboard === 2 Version: 3.0.1 32 Version: 3.0.14 3 3 Contributors: Kodeks AS 4 4 Tested up to: 5.5.3
Note: See TracChangeset
for help on using the changeset viewer.