Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jeremy Groot
/
stellervista-Intranet
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
60406870
authored
2023-11-19 17:14:15 -0500
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
qa
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
233090e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
wp-content/themes/understrap-child/functions.php
wp-content/themes/understrap-child/functions.php
View file @
6040687
...
...
@@ -238,9 +238,8 @@ function wpa_34245() {
// if query var is not present just return
if
(
isset
(
$_REQUEST
[
'my_listener'
]
)
||
'update_office_email'
==
$_REQUEST
[
'my_listener'
]
){
$users
=
get_users
(
array
(
'fields'
=>
array
(
'ID'
)
)
);
foreach
(
$users
as
$user
){
error_log
(
"Updating user: "
.
$user
->
ID
);
updte_office_email
(
$user
->
ID
);
foreach
(
$users
as
$user
){
update_office_email
(
$user
->
ID
);
}
}
else
if
(
isset
(
$_REQUEST
[
'my_listener'
]
)
||
'update_fax'
==
$_REQUEST
[
'my_listener'
]
){
$users
=
get_users
(
array
(
'fields'
=>
array
(
'ID'
)
)
);
...
...
@@ -281,8 +280,6 @@ add_action( 'profile_update', function ( $user_id, $old_user_data ) {
if
(
have_rows
(
'departments_and_branches'
,
'option'
)
)
:
while
(
have_rows
(
'departments_and_branches'
,
'option'
)
)
:
the_row
();
if
(
get_sub_field
(
'departmentbranch'
)
==
$department_branch
)
:
error_log
(
"Found branch: "
.
$department_branch
);
error_log
(
"Found branch: "
.
$field
);
return
get_sub_field
(
$field
);
endif
;
endwhile
;
...
...
Please
register
or
sign in
to post a comment