Jake Vanderwerf
4 days ago 747d741293e064a979d7bf6c143ef969ea6d7629
jvb.php
@@ -20,6 +20,7 @@
    exit;
}
/**
 * Track REST API errors by wrapping request execution
 */
@@ -141,6 +142,13 @@
   return IconsManager::for($source)->get($name, $options);
}
function jvbFullIcon(string $name, array $options = []):string
{
   $source = $options['source'] ?? 'icons';
   unset($options['source']);
   return IconsManager::for($source)->getRawSvg($name, $options['style']??null);
}
/**
 * Get a CSS data URI for an icon
 *
@@ -567,3 +575,10 @@
      jvbIcon('caret-double-up')
   );
}
add_action( 'doing_it_wrong_run', function ( $function_name ) {
   if ( '_load_textdomain_just_in_time' === $function_name ) {
      // This will print the full execution path to your screen or log
      debug_print_backtrace();
   }
} );