Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Feeds
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Feeds
Commits
6bd6a14c
Commit
6bd6a14c
authored
3 years ago
by
Andrew Dolgov
Browse files
Options
Downloads
Patches
Plain Diff
revise phpdoc annotations for hook_sanitize()
parent
f5c88158
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
classes/plugin.php
+2
-2
2 additions, 2 deletions
classes/plugin.php
plugins/af_youtube_embed/init.php
+2
-0
2 additions, 0 deletions
plugins/af_youtube_embed/init.php
with
4 additions
and
2 deletions
classes/plugin.php
+
2
−
2
View file @
6bd6a14c
...
...
@@ -232,7 +232,7 @@ abstract class Plugin {
* @param array<string> $allowed_elements
* @param array<string> $disallowed_attributes
* @param int $article_id
* @return DOMDocument
* @return DOMDocument
|array<int,DOMDocument|array<string>>
*/
function
hook_sanitize
(
$doc
,
$site_url
,
$allowed_elements
,
$disallowed_attributes
,
$article_id
)
{
user_error
(
"Dummy method invoked."
,
E_USER_ERROR
);
...
...
@@ -519,7 +519,7 @@ abstract class Plugin {
/**
* @param string $url
* @return string
* @return string
|false
*/
function
hook_get_full_text
(
$url
)
{
user_error
(
"Dummy method invoked."
,
E_USER_ERROR
);
...
...
This diff is collapsed.
Click to expand it.
plugins/af_youtube_embed/init.php
+
2
−
0
View file @
6bd6a14c
...
...
@@ -32,6 +32,8 @@ class Af_Youtube_Embed extends Plugin {
</div>"
;
}
return
""
;
}
function
api_version
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment