Plugin Directory

Changeset 3115033


Ignore:
Timestamp:
07/09/2024 01:39:49 PM (21 months ago)
Author:
wpoperations
Message:

Minor bugs fixed

Location:
operation-demo-importer
Files:
26 added
3 edited

Legend:

Unmodified
Added
Removed
  • operation-demo-importer/trunk/includes/demos.php

    r2600281 r3115033  
    277277
    278278            // Get premium plugins
    279             $premium = $plugins[ 'premium' ];
     279            $premium = $plugins[ 'premium' ];
     280           
    280281
    281282            $slider = isset( $demos[$demo]['slider_file'] ) ? $demos[$demo]['slider_file'] : '';
     
    833834                    foreach ( $woopages as $woo_page_name => $woo_page_title ) {
    834835
    835                         $woopage = get_page_by_title( $woo_page_title );
     836                        $query = new WP_Query(
     837                            array(
     838                                'post_type'              => 'page',
     839                                'title'                  => $woo_page_title,
     840                                'post_status'            => 'all',
     841                            )
     842                        );                       
     843                        if ( ! empty( $query->post ) ) {
     844                            $woopage = $query->post;
     845                        } else {
     846                            $woopage = null;
     847                        }
     848
    836849                        if ( isset( $woopage ) && $woopage->ID ) {
    837850                            update_option( $woo_page_name, $woopage->ID );
    838851                        }
     852
     853                        wp_reset_postdata();
    839854
    840855                    }
     
    871886
    872887                // Assign front page and posts page (blog page).
    873                 $home_page = get_page_by_title( $homepage_title );
    874                 $blog_page = get_page_by_title( $blog_title );
     888
     889                $query_homepage = new WP_Query(
     890                    array(
     891                        'post_type'              => 'page',
     892                        'title'                  => $homepage_title,
     893                        'post_status'            => 'all',
     894                    )
     895                );                       
     896                if ( ! empty( $query_homepage->post ) ) {
     897                    $home_page = $query_homepage->post;
     898                } else {
     899                    $home_page = null;
     900                }
     901
     902                wp_reset_postdata();
     903
     904                //blog page
     905                $query_blogpage = new WP_Query(
     906                    array(
     907                        'post_type'              => 'page',
     908                        'title'                  => $blog_title,
     909                        'post_status'            => 'all',
     910                    )
     911                );                       
     912                if ( ! empty( $query_blogpage->post ) ) {
     913                    $blog_page = $query_blogpage->post;
     914                } else {
     915                    $blog_page = null;
     916                }
     917
     918                wp_reset_postdata();
     919
    875920
    876921                update_option( 'show_on_front', 'page' );
  • operation-demo-importer/trunk/operation-demo-importer.php

    r2813233 r3115033  
    1010 * Plugin Name: Operation Demo Importer
    1111 * Description: Demo Importer For WPoperation Themes
    12  * Version:     1.1.9
     12 * Version:     1.2.0
    1313 * Author:      WPoperation
    1414 * Author URI:  https://wpoperation.com
     
    1818 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
    1919 * Requires at least:   4.5.0
    20  * Tested up to:        6.1
     20 * Tested up to:        6.5.5
    2121 */
    2222
     
    7171    public $version;
    7272
     73    /**
     74    *
     75    * @since   1.2.0
     76    */
     77    public $plugin_url;
     78
     79    /**
     80    *
     81    * @since   1.2.0
     82    */
     83    public $plugin_path;
     84
    7385    // Admin - Start
    7486    /**
     
    90102        $this->plugin_url       = plugin_dir_url( __FILE__ );
    91103        $this->plugin_path      = plugin_dir_path( __FILE__ );
    92         $this->version          = '1.1.9';
     104        $this->version          = '1.2.0';
    93105
    94106        define( 'WOPDI_URL', $this->plugin_url );
  • operation-demo-importer/trunk/readme.txt

    r2813233 r3115033  
    33License: GPLv2 or later
    44License URI: http://www.gnu.org/licenses/gpl-2.0.html
    5 Tested up to: 6.1
     5Tested up to: 6.5.5
    66Tags: importer, demo importer, wpoperation
    77Author URI:  https://wpoperation.com
    8 Stable tag: 1.1.9
     8Stable tag: 1.2.0
    99
    1010== Description ==
     
    3131
    3232== Changelog ==
     33
     34= 1.2.0 =
     35* Minor bugs fixed
     36
     37
    3338= 1.1.9 =
    3439* Compatibility check
Note: See TracChangeset for help on using the changeset viewer.