Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
074e21a7
Commit
074e21a7
authored
Feb 02, 2016
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix infinite loop in override
parent
2a8c7256
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
qa-base.php
qa-include/qa-base.php
+6
-3
No files found.
qa-include/qa-base.php
View file @
074e21a7
...
...
@@ -641,9 +641,11 @@
/**
* If $function has been overridden by a plugin override, return the name of the overriding function, otherwise return
* null. But if the function is being called with the _base suffix, any override will be bypassed due to $qa_direct
* @param string $function The function to override
* Determines whether a function is to be overridden by a plugin. But if the function is being called with
* the _base suffix, any override will be bypassed due to $qa_direct.
*
* @param string $function The function to override
* @return string|null The name of the overriding function (of the form `qa_functionname_override_1_in_filename`)
*/
function
qa_to_override
(
$function
)
{
...
...
@@ -660,6 +662,7 @@
if
(
@
$qa_direct
[
$function
])
{
unset
(
$qa_direct
[
$function
]);
// bypass the override just this once
return
null
;
}
return
$qa_overrides
[
$function
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment