self::$slug, ); /** * Parse incoming $args into an array and merge it with $defaults */ $args = wp_parse_args( $args, $defaults ); return add_query_arg( $args, admin_url( 'admin.php' ) ) . ( $hash !== false ? "#{$hash}" : '' ); } /** * Return the plugin basename * * @since 0.1.0 * @uses plugin_basename * @return string plugin_basename from __FILE__ */ public static function basename() { $_link = WP_PLUGIN_DIR . '/' . self::$folder; $_file = self::$_file; if ( is_link( $_link ) && readlink( $_link ) == dirname( $_file ) ) { $_file = $_link . '/' . end( explode( '/', $_file ) ); } return (string) plugin_basename( $_file ); } /** * The initialization of the static and dynamic variables * * @since 0.1.0 */ public function __construct(){ // Setup the global version of the class, this only runs once... null === self::$instance and self::$instance = &$this; } }