Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Y
yoast_seo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
yoast_seo
Commits
d2154ac2
Commit
d2154ac2
authored
Mar 07, 2018
by
edurenye
Committed by
Kingdutch
Mar 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2941279
by edurenye: Undefined index 'content' in EntityAnalyser
parent
3eb14eb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/EntityAnalyser.php
src/EntityAnalyser.php
+6
-1
No files found.
src/EntityAnalyser.php
View file @
d2154ac2
...
...
@@ -159,7 +159,12 @@ class EntityAnalyser {
// Turn our tag render array into a key => value array.
foreach
(
$data
as
$name
=>
$tag
)
{
$data
[
$name
]
=
$tag
[
'#attributes'
][
'content'
];
if
(
isset
(
$tag
[
'#attributes'
][
'content'
]))
{
$data
[
$name
]
=
$tag
[
'#attributes'
][
'content'
];
}
elseif
(
isset
(
$tag
[
'#attributes'
][
'href'
]))
{
$data
[
$name
]
=
$tag
[
'#attributes'
][
'href'
];
}
}
// Translate some fields that have different names between metatag module
// and the Yoast library.
...
...
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