Plugin Directory

Changeset 2960956


Ignore:
Timestamp:
08/31/2023 06:49:16 AM (3 years ago)
Author:
Razzu
Message:

Fix error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • simple-masonry-layout/trunk/simple-masonry-layout.php

    r2960949 r2960956  
    1010 */
    1111
    12 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
     12if (!defined('ABSPATH')) exit; // Exit if accessed directly
    1313
    1414/* Plugin version */
    15 define( 'SIMPLEMASONRYLAYOUT', '2.0' );
     15define('SIMPLEMASONRYLAYOUT', '2.0');
    1616
    17 define( 'SIMPLEMASONRYLAYOUT_DIR_PATH', plugin_dir_path( __FILE__ ) );
    18 define( 'SIMPLEMASONRYLAYOUT_DIR_URL', plugin_dir_url( __FILE__ ) );
     17define('SIMPLEMASONRYLAYOUT_DIR_PATH', plugin_dir_path(__FILE__));
     18define('SIMPLEMASONRYLAYOUT_DIR_URL', plugin_dir_url(__FILE__));
    1919
    20 require_once SIMPLEMASONRYLAYOUT_DIR_PATH . 'includes/class.simple.masonry.admin.php';
    21 require_once SIMPLEMASONRYLAYOUT_DIR_PATH . 'includes/class.simple.masonry.front.php';
     20require_once(dirname(__FILE__) . '/includes/class.simple.masonry.admin.php');
     21require_once(dirname(__FILE__) . '/includes/class.simple.masonry.front.php');
    2222
    2323// Check if the required classes exist before using them
    24 if ( class_exists( 'SimpleMasonryLayout\SimpleMasonryAdmin' ) ) {
     24if (class_exists('SimpleMasonryLayout\SimpleMasonryAdmin')) {
    2525    SimpleMasonryLayout\SimpleMasonryAdmin::getInstance();
    2626}
    2727
    28 if ( class_exists( 'SimpleMasonryLayout\SimpleMasonryFront' ) ) {
     28if (class_exists('SimpleMasonryLayout\SimpleMasonryFront')) {
    2929    SimpleMasonryLayout\SimpleMasonryFront::getInstance();
    3030}
Note: See TracChangeset for help on using the changeset viewer.