Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
frente-brasil-popular
Comite Nacional Lula Livre
Commits
b0c6668b
Commit
b0c6668b
authored
5 years ago
by
Laura Rodrigues
Browse files
Options
Download
Email Patches
Plain Diff
Indicação do caracter de início de string
parent
700a4b4b
master
develop
downloadbutton
feature/header_footer_image_change
v1.10.2
v1.10.1
v1.10.0
v1.9.0
v1.8.0
v1.7.3
v1.7.2
v1.7.1
v1.7.0
v1.6.3
Pipeline
#8621
passed with stages
in 1 minute and 5 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
themes/comite-nacional-lula-livre/library/ajax.php
themes/comite-nacional-lula-livre/library/ajax.php
+2
-2
No files found.
themes/comite-nacional-lula-livre/library/ajax.php
View file @
b0c6668b
<?php
// Adding rewrite rule for caching
function
lulalivre_cache_rewrite
()
{
add_rewrite_rule
(
'art/([0-9]+)'
,
'wp-admin/admin-ajax.php?action=lulalivre_fetchart&id=$1'
,
'top'
);
add_rewrite_rule
(
'form-cadastro'
,
'wp-admin/admin-ajax.php?action=lulalivre_formcadastro'
,
'top'
);
add_rewrite_rule
(
'
^
art/([0-9]+)'
,
'wp-admin/admin-ajax.php?action=lulalivre_fetchart&id=$1'
,
'top'
);
add_rewrite_rule
(
'
^
form-cadastro'
,
'wp-admin/admin-ajax.php?action=lulalivre_formcadastro'
,
'top'
);
}
add_action
(
'init'
,
'lulalivre_cache_rewrite'
);
...
...
This diff is collapsed.
Click to expand it.
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