diff --git a/partnerexpo-core.php b/partnerexpo-core.php index 7ea1cb8..6107480 100644 --- a/partnerexpo-core.php +++ b/partnerexpo-core.php @@ -9,7 +9,7 @@ * Plugin Name: PartnerExpo Core * Plugin URI: https://partnerexpo.eu * Description: A PartnerEXPO oldal belső pluginja - * Version: 1.1.7 + * Version: 1.1.8 * Author: Juhász Levente * Author URI: https://github.com/Duskell/ * License: GPL-2.0+ @@ -23,7 +23,7 @@ if ( ! defined( 'WPINC' ) ) { die; } -define( 'PARTNEREXPO_CORE_VERSION', '1.1.7' ); +define( 'PARTNEREXPO_CORE_VERSION', '1.1.8' ); function activate_partnerexpo_core() { require_once plugin_dir_path( __FILE__ ) . 'includes/class-partnerexpo-core-activator.php'; @@ -51,4 +51,4 @@ function run_partnerexpo_core() { $plugin->run(); } -run_partnerexpo_core(); +run_partnerexpo_core(); \ No newline at end of file diff --git a/partnerexpo-core.zip b/partnerexpo-core.zip new file mode 100644 index 0000000..7c8046a Binary files /dev/null and b/partnerexpo-core.zip differ diff --git a/public/partials/partnerexpo-core-public-company-head.php b/public/partials/partnerexpo-core-public-company-head.php index 037b08a..3849429 100644 --- a/public/partials/partnerexpo-core-public-company-head.php +++ b/public/partials/partnerexpo-core-public-company-head.php @@ -10,16 +10,19 @@ * @subpackage Partnerexpo_Core/public/partials */ -$logo_id = get_user_meta( get_current_user_id(), 'company_logo_attachment_id', true ); +global $post; +$author_id = $post->post_author; + +$logo_id = get_user_meta( $author_id, 'company_logo_attachment_id', true ); $logo_url = $logo_id ? wp_get_attachment_url( $logo_id ) : ''; ?>
- +
-

+

\ No newline at end of file