Plugin Directory

Changeset 1982179


Ignore:
Timestamp:
11/28/2018 06:58:36 PM (7 years ago)
Author:
referia
Message:

bug plugin : call_user_func_array()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • permalinks-shortcode/trunk/plksc.php

    r1982160 r1982179  
    4141         */
    4242        function __construct() {
    43             add_action( 'admin_menu', array( $this, 'admin_menu' ) );
    44             self::init();
     43            add_action( 'admin_menu', array( $this, 'admin_menu' ), 10, 2 );
     44            plksc::init();
    4545        }
    4646
     
    6969
    7070
    71             self::plksc_languages();
     71            plksc::plksc_languages();
    7272
    7373            /**
     
    104104            }
    105105
    106             self::shortcode_generator();
     106            plksc::shortcode_generator();
    107107
    108108        }
     
    123123         */
    124124        public static function admin_menu() {
    125             /*
    126125            add_options_page(
    127126                'Permalink shortcode',
     
    133132                    'settings_page'
    134133                )
    135             );
    136             */
    137             add_options_page(
    138                 'Permalink shortcode',
    139                 'Permalink shortcode',
    140                 'manage_options',
    141                 'options_permalink_shortcode',
    142                 'settings_page'
    143134            );
    144135        }
Note: See TracChangeset for help on using the changeset viewer.