Plugin Directory

Changeset 3388801


Ignore:
Timestamp:
11/03/2025 11:15:19 AM (5 months ago)
Author:
phpwebdev
Message:

Solved bugs

Location:
wp-mapit/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-mapit/trunk/wp_mapit.php

    r3055151 r3388801  
    4444     */
    4545    function wp_mapit_init() {
    46 
    47         /* Loading the textdomain */
    48         load_plugin_textdomain( 'wp-mapit', false, basename( dirname( __DIR__ ) ) . '/wp_mapit/languages' );
    49 
    5046        /* Initialize the base class of the plugin */
    5147        return Wp_Mapit::instance();
     
    5753 */
    5854add_action( 'plugins_loaded', 'wp_mapit_init' );
     55
     56add_action(
     57    'init',
     58    function () {
     59        /* Loading the textdomain */
     60        load_plugin_textdomain( 'wp-mapit', false, WP_MAPIT_DIR . 'languages' );
     61    },
     62    99
     63);
  • wp-mapit/trunk/wp_mapit/classes/class-wp-mapit-metabox.php

    r3005528 r3388801  
    2626         */
    2727        public static function init() {
     28            /* Create metaboxes */
     29            add_action(
     30                'init',
     31                array(
     32                    __CLASS__,
     33                    'init_hook',
     34                )
     35            );
     36        }
     37
     38        /**
     39         * Handle init hook for the metaboxes
     40         *
     41         * @since 1.0
     42         * @static
     43         * @access public
     44         */
     45        public static function init_hook() {
    2846            $arr_allowed_post_types = wp_mapit_admin_settings::get_allowed_posttypes();
    2947
Note: See TracChangeset for help on using the changeset viewer.