Plugin Directory

Changeset 3373715


Ignore:
Timestamp:
10/06/2025 01:10:17 PM (6 months ago)
Author:
kovalchik8
Message:

Adjusted Polylang adapter

Location:
magic-export-import
Files:
57 added
3 edited

Legend:

Unmodified
Added
Removed
  • magic-export-import/trunk/class-magic-ex-im-setup.php

    r3357438 r3373715  
    33 * Plugin Name: Magic Export & Import
    44 * Description: The ultimate tool to migrate any content including posts, terms, users, comments, WooCommerce shop orders, menus and ACF Options pages.
    5  * Version: 1.1.4
     5 * Version: 1.1.5
    66 * Requires at least: 6.2
    77 * Requires PHP: 7.4
  • magic-export-import/trunk/includes/plugin-adapters/class-magic-ex-im-adapter-acf.php

    r3310897 r3373715  
    656656     */
    657657    private function get_item_acf_id( $field_name ) {
    658 
    659658        $item_id = magic_ex_im_get_item_id();
    660659
     
    692691     */
    693692    private function get_acf_field_key_by_name( $field_name ) {
    694 
    695693        $acf_field_key      = false;
    696694        $processing_item_id = magic_ex_im_get_item_id();
     
    758756     */
    759757    private function get_key_data( $key, $item_acf_id = null ) {
    760 
    761758        $item_acf_id      = $item_acf_id ?? $this->get_item_acf_id( $key );
    762759        $acf_field_object = get_field_object( $this->get_acf_field_key_by_name( $key ) );
     
    803800     */
    804801    private function update_field( $field_name, $value, $item_acf_id = null ) {
    805 
    806         $item_acf_id      = $item_acf_id ?? $this->get_item_acf_id( $field_name );
    807         $acf_field_object = get_field_object( $this->get_acf_field_key_by_name( $field_name ) );
    808 
    809         if ( isset( $acf_field_object['type'] ) && $item_acf_id ) {
     802        $item_acf_id = $item_acf_id ?? $this->get_item_acf_id( $field_name );
     803
     804        if ( $item_acf_id ) {
    810805            update_field( $field_name, $value, $item_acf_id );
    811806        }
  • magic-export-import/trunk/readme.txt

    r3357438 r3373715  
    44Tags: export, import, content migration, csv, custom fields
    55Tested up to: 6.8
    6 Stable tag: 1.1.4
     6Stable tag: 1.1.5
    77License: GPL v3 or later
    88License URI: https://www.gnu.org/licenses/gpl-3.0.txt
     
    7979== Changelog ==
    8080
     81= 1.1.5 =
     82* Adjusted Polylang adapter.
     83
    8184= 1.1.4 =
    8285* Shop orders are now allowed to be updated if not powered with HPOS.
Note: See TracChangeset for help on using the changeset viewer.