Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
themes-misc
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Noblogs
themes-misc
Commits
7ac76edb
Commit
7ac76edb
authored
1 year ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Fix old ereg functions in veryplaintxt theme
parent
a367e50e
No related branches found
No related tags found
No related merge requests found
Pipeline
#54245
passed
1 year ago
Stage: release
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
veryplaintxt/functions.php
+4
-4
4 additions, 4 deletions
veryplaintxt/functions.php
with
4 additions
and
4 deletions
veryplaintxt/functions.php
+
4
−
4
View file @
7ac76edb
...
...
@@ -180,10 +180,10 @@ function veryplaintxt_other_tags($glue) {
// Produces an avatar image with the hCard-compliant photo class
function
veryplaintxt_commenter_link
()
{
$commenter
=
get_comment_author_link
();
if
(
e
reg
(
'<a[^>]* class=[^>]+>'
,
$commenter
)
)
{
$commenter
=
e
reg_replace
(
'(<a[^>]* class=[\'"]?)'
,
'\\1url '
,
$commenter
);
if
(
p
reg
_match
(
'<a[^>]* class=[^>]+>'
,
$commenter
)
)
{
$commenter
=
p
reg_replace
(
'(<a[^>]* class=[\'"]?)'
,
'\\1url '
,
$commenter
);
}
else
{
$commenter
=
e
reg_replace
(
'(<a )/'
,
'\\1class="url "'
,
$commenter
);
$commenter
=
p
reg_replace
(
'(<a )/'
,
'\\1class="url "'
,
$commenter
);
}
$email
=
get_comment_author_email
();
$avatar_size
=
get_option
(
'veryplaintxt_avatarsize'
);
...
...
@@ -768,4 +768,4 @@ add_shortcode('gallery', 'veryplaintxt_gallery', $attr);
// Readies for translation.
load_theme_textdomain
(
'veryplaintxt'
);
?>
\ No newline at end of file
?>
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