AddJSLink()
+add_js_link()
-AddJSLink(string $scriptUrl)
+ add_js_link(string $scriptUrl)
Adds the specified url to a javascript file as a reference to the page.
@@ -781,11 +782,11 @@ value of the function passed is discarded.AddJSSnippet()
+add_js_snippet()
-AddJSSnippet(string $script)
+ add_js_snippet(string $script)
Adds a javascript snippet to the page.
@@ -822,11 +823,46 @@ value of the function passed is discarded.add_server_push_indicator()
+ +add_server_push_indicator(string $type, string $path)
Adds a resource to the list of items to indicate that the web server should send via HTTP/2.0 Server Push.
Note: Only specify static files here, as you might end up with strange (and possibly dangerous) results!
@@ -1046,7 +1082,7 @@ navigation bar.Documentation is powered by phpDocumentor and authored - on January 5th, 2019 at 22:23. + on February 24th, 2019 at 16:02.
- - Errors 45 + Errors 47
- - Markers 7 + Markers 8
-
@@ -136,10 +136,10 @@
-+@@ -239,7 +239,7 @@
- File
modules/feature-search.php- Package
- +Defaultsearch- Class hierarchy
\search@@ -934,7 +934,7 @@ in a list of search results.
Documentation is powered by phpDocumentor and authored - on January 5th, 2019 at 22:23. + on February 24th, 2019 at 16:02.- - Errors 45 + Errors 47
- - Markers 7 + Markers 8
-
@@ -136,10 +136,10 @@
-+@@ -2143,7 +2143,7 @@ action is requested.
add_parser()
-add_parser(string $name, \function $parser_code)
+add_parser(string $name, \function $parser_code, \function $hash_generator)
Registers a new parser.
@@ -2158,6 +2158,11 @@ action is requested.\function $parser_code + +The function to register as a new parser.
+ @@ -2192,10 +2197,10 @@ action is requested.\function +$hash_generator +A function that should take a single argument of the input source text, and return a unique hash for that content. The return value is used as the filename for cache entries, so should be safe to use as such.
parse_page_source()
-parse_page_source(string $source) : string
+parse_page_source(string $source, string $use_cache = true) : string
Parses the specified page source using the parser specified in the settings into HTML.
-The specified parser may (though it's unilkely) render it to other things.
+The specified parser may (though it's unlikely) render it to other things.
Parameters
@@ -2203,6 +2208,11 @@ into HTML.
@@ -2474,7 +2484,7 @@ an edit is saved.string $source + +The source to render.
+ string +$use_cache +Whether to use the on-disk cache. Has no effect if parser caching is disabled in peppermint.json, or the source string is too small.
Documentation is powered by phpDocumentor and authored - on January 5th, 2019 at 22:23. + on February 24th, 2019 at 16:02.