@@ -330,7 +330,7 @@
Documentation is powered by phpDocumentor and authored
- on March 20th, 2019 at 23:24.
+ on March 21st, 2019 at 14:26.
diff --git a/docs/files/includes/class-fontawesome.php.txt b/docs/files/includes/class-fontawesome.php.txt
index bc9ea83d5..72ee2c7c4 100644
--- a/docs/files/includes/class-fontawesome.php.txt
+++ b/docs/files/includes/class-fontawesome.php.txt
@@ -14,7 +14,6 @@ use \Exception, \Error, \InvalidArgumentException;
* @ignore
*/
require_once trailingslashit( __DIR__ ) . '../defines.php';
-require_once trailingslashit( FONTAWESOME_VENDOR_DIR ) . 'autoload.php';
require_once trailingslashit( FONTAWESOME_DIR_PATH ) . 'includes/class-fontawesome-release-provider.php';
require_once trailingslashit( FONTAWESOME_DIR_PATH ) . 'includes/class-fontawesome-resource.php';
require_once trailingslashit( FONTAWESOME_DIR_PATH ) . 'includes/class-fontawesome-config-controller.php';
@@ -1187,6 +1186,19 @@ if ( ! class_exists( 'FortAwesome\FontAwesome' ) ) :
return $this->is_pro_configured();
}
+ /**
+ * Indicates which Font Awesome method is being loaded: 'webfont' or 'svg'.
+ *
+ * Its result is valid only after the `font_awesome_enqueued` has been triggered.
+ *
+ * @since 4.0.0
+ *
+ * @return string|null
+ */
+ public function fa_method() {
+ return isset( $this->load_spec['method'] ) ? $this->load_spec['method'] : null;
+ }
+
/**
* Reports the version of Font Awesome assets being loaded.
*
@@ -1212,6 +1224,19 @@ if ( ! class_exists( 'FortAwesome\FontAwesome' ) ) :
}
}
+ /**
+ * Indicates whether Font Awesome is being loaded with a version 4 shim.
+ *
+ * Its result is valid only after the `font_awesome_enqueued` has been triggered.
+ *
+ * @since 4.0.0
+ *
+ * @return boolean
+ */
+ public function v4shim() {
+ return isset( $this->load_spec['v4shim'] ) ? boolval( $this->load_spec['v4shim'] ) : false;
+ }
+
/**
* Indicates whether Font Awesome is being loaded with support for CSS pseudo-elements.
*
diff --git a/docs/graphs/class.html b/docs/graphs/class.html
index 361288e5b..c94ee5fbb 100644
--- a/docs/graphs/class.html
+++ b/docs/graphs/class.html
@@ -161,7 +161,7 @@
Documentation is powered by phpDocumentor and authored
- on March 20th, 2019 at 23:24.
+ on March 21st, 2019 at 14:26.
diff --git a/docs/graphs/classes.svg b/docs/graphs/classes.svg
index e2ccd22c1..3d66a52fb 100644
--- a/docs/graphs/classes.svg
+++ b/docs/graphs/classes.svg
@@ -19,35 +19,35 @@
FortAwesome
-
-
-\\FortAwesome\\FontAwesome_Release_Provider
-
-FontAwesome_Release_Provider
-
-
+
\\FortAwesome\\FontAwesome
-
-FontAwesome
+
+FontAwesome
-
+
\\FortAwesome\\FontAwesome_Config_Controller
-
-FontAwesome_Config_Controller
+
+FontAwesome_Config_Controller
\\WP_REST_Controller
-
-\WP_REST_Controller
+
+\WP_REST_Controller
\\FortAwesome\\FontAwesome_Config_Controller->\\WP_REST_Controller
-
-
+
+
+
+
+
+\\FortAwesome\\FontAwesome_Release_Provider
+
+FontAwesome_Release_Provider
diff --git a/docs/index.html b/docs/index.html
index 0e041c415..0df03f8a3 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -96,19 +96,19 @@
-
+
-
+
@@ -241,7 +241,7 @@
Documentation is powered by phpDocumentor and authored
- on March 20th, 2019 at 23:24.
+ on March 21st, 2019 at 14:26.
diff --git a/docs/namespaces/FortAwesome.html b/docs/namespaces/FortAwesome.html
index 3b0815c9b..68e2ae968 100644
--- a/docs/namespaces/FortAwesome.html
+++ b/docs/namespaces/FortAwesome.html
@@ -96,19 +96,19 @@
-
+
-
+
@@ -314,7 +314,7 @@
Documentation is powered by phpDocumentor and authored
- on March 20th, 2019 at 23:24.
+ on March 21st, 2019 at 14:26.
diff --git a/docs/namespaces/default.html b/docs/namespaces/default.html
index 05811fbc2..7fd10bd80 100644
--- a/docs/namespaces/default.html
+++ b/docs/namespaces/default.html
@@ -96,19 +96,19 @@
-
+
-
+
@@ -241,7 +241,7 @@
Documentation is powered by phpDocumentor and authored
- on March 20th, 2019 at 23:24.
+ on March 21st, 2019 at 14:26.
diff --git a/docs/reports/deprecated.html b/docs/reports/deprecated.html
index 14a977512..4cfdf13ae 100644
--- a/docs/reports/deprecated.html
+++ b/docs/reports/deprecated.html
@@ -123,7 +123,7 @@
@@ -112,11 +112,11 @@
-
+
- includes/class-fontawesome-release-provider.php
- 2
+ font-awesome.php
+ 1
@@ -132,21 +132,16 @@
error |
0 |
No summary was found for this file |
-
-
- error |
- 148 |
- No summary for method load_releases() |
-
+
- font-awesome.php
+ includes/class-fontawesome.php
1
@@ -169,10 +164,10 @@
-
+
- includes/class-fontawesome.php
+ includes/class-fontawesome-config-controller.php
1
@@ -195,11 +190,11 @@
-
+
- includes/class-fontawesome-config-controller.php
- 1
+ includes/class-fontawesome-release-provider.php
+ 2
@@ -215,6 +210,11 @@
error |
0 |
No summary was found for this file |
+
+
+ error |
+ 148 |
+ No summary for method load_releases() |
@@ -260,7 +260,7 @@
Documentation is powered by phpDocumentor and authored
- on March 20th, 2019 at 23:24.
+ on March 21st, 2019 at 14:26.
diff --git a/docs/reports/markers.html b/docs/reports/markers.html
index 2969b48c9..2cd3647d3 100644
--- a/docs/reports/markers.html
+++ b/docs/reports/markers.html
@@ -96,9 +96,9 @@
@@ -111,29 +111,7 @@
-
-
-
-
- includes/class-fontawesome-release-provider.php
- 1
-
-
-
-
- Type |
- Line |
- Description |
-
-
- TODO |
- 279 |
- consider adding retry logic for loading Font Awesome releases. |
-
-
-
-
-
+
@@ -149,17 +127,17 @@
TODO |
- 781 |
+ 780 |
add test coverage for this case. |
TODO |
- 1152 |
+ 1151 |
propagate this warning up to the admin UI instead of error_log. |
TODO |
- 1632 |
+ 1657 |
consider using a mechanism other than debug_backtrace() to track the calling module, since phpcs complains. |
@@ -191,6 +169,28 @@
+
+
+
+
+
+ includes/class-fontawesome-release-provider.php
+ 1
+
+
+
+
+ Type |
+ Line |
+ Description |
+
+
+ TODO |
+ 279 |
+ consider adding retry logic for loading Font Awesome releases. |
+
+
+
@@ -233,7 +233,7 @@
Documentation is powered by phpDocumentor and authored
- on March 20th, 2019 at 23:24.
+ on March 21st, 2019 at 14:26.