Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
WordPress_SexHackMe_Plugin
Project
Project
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
SexHackMe
WordPress_SexHackMe_Plugin
Commits
a8bc333d
Commit
a8bc333d
authored
Jul 16, 2022
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed useless log calls
parent
daef1dbe
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
13 deletions
+0
-13
class-paid-member-subscriptions-integration.php
includes/class-paid-member-subscriptions-integration.php
+0
-1
class-unlock-support.php
includes/class-unlock-support.php
+0
-1
class-video-players.php
includes/class-video-players.php
+0
-1
class-videogallery.php
includes/class-videogallery.php
+0
-4
class-woocommerce-support.php
includes/class-woocommerce-support.php
+0
-6
No files found.
includes/class-paid-member-subscriptions-integration.php
View file @
a8bc333d
...
...
@@ -131,7 +131,6 @@ if(!class_exists('SexhackPmsPasswordDataLeak')) {
{
public
function
__construct
()
{
sexhack_log
(
'SexhackPmsPasswordDataLeak() Instanced'
);
add_filter
(
'pms_recover_password_message'
,
array
(
$this
,
"change_recover_form_message"
)
);
add_action
(
'init'
,
array
(
$this
,
'reset_password_form'
),
9
);
add_action
(
'login_form_rp'
,
array
(
$this
,
'redirect_password_reset'
)
);
...
...
includes/class-unlock-support.php
View file @
a8bc333d
...
...
@@ -34,7 +34,6 @@ if(!class_exists('SexhackAddUnlockLogin')) {
add_action
(
"woocommerce_after_order_notes"
,
array
(
$this
,
"add_to_checkout"
));
add_filter
(
"pms_register_shortcode_content"
,
array
(
$this
,
"add_to_register"
),
10
,
2
);
add_filter
(
"unlock_authenticate_user"
,
array
(
$this
,
"fix_unlock_user"
),
11
,
1
);
sexhack_log
(
'SexhackAddUnlockLogin() Instanced'
);
}
public
function
get_proto
(){
...
...
includes/class-video-players.php
View file @
a8bc333d
...
...
@@ -36,7 +36,6 @@ if(!class_exists('SH_VideoPlayer')) {
{
case
'hls'
:
$html
=
sh_get_template
(
"videoplayer/hls.php"
,
array
(
'vurl'
=>
$vurl
,
'posters'
=>
$posters
));
sexhack_log
(
$html
);
break
;
case
'xr'
:
...
...
includes/class-videogallery.php
View file @
a8bc333d
...
...
@@ -45,7 +45,6 @@ if(!class_exists('SH_VideoGallery')) {
add_filter
(
'archive_template'
,
array
(
$this
,
'sexhack_video_template'
));
add_action
(
'pre_get_posts'
,
array
(
$this
,
'fix_video_query'
),
1
,
1
);
sexhack_log
(
'SexHackVideoGallery() Instanced'
);
}
...
...
@@ -65,7 +64,6 @@ if(!class_exists('SH_VideoGallery')) {
if
(
$is_sexhack_video
)
{
set_query_var
(
'post_type'
,
'sexhack_video'
);
if
(
file_exists
(
plugin_dir_path
(
__DIR__
)
.
'/templates/'
.
$template
))
{
sexhack_log
(
"NEW TEMPLATE!: "
.
plugin_dir_path
(
__DIR__
)
.
'/templates/'
.
$template
);
return
plugin_dir_path
(
__DIR__
)
.
'/templates/'
.
$template
;
}
}
...
...
@@ -78,12 +76,10 @@ if(!class_exists('SH_VideoGallery')) {
if
(
$query
->
get
(
'post_type'
)
==
'sexhack_video'
)
{
$wooprod
=
$query
->
get
(
'wooprod'
,
false
);
if
(
$wooprod
)
{
sexhack_log
(
$_SERVER
[
'REQUEST_URI'
]
.
" BEFORE "
.
print_r
(
$query
,
true
));
$query
->
query
[
'post_type'
]
=
'sexhack_video'
;
$query
->
set
(
'name'
,
esc_sql
(
$wooprod
));
$query
->
set
(
'post_type'
,
'any'
);
//$query->set('post_type', '');
sexhack_log
(
"AFTER "
.
print_r
(
$query
,
true
));
}
}
}
...
...
includes/class-woocommerce-support.php
View file @
a8bc333d
...
...
@@ -31,7 +31,6 @@ if(!class_exists('SexhackWoocommerceProductVideos')) {
{
public
function
__construct
()
{
sexhack_log
(
'SexhackWoocommerceProductVideos() Instanced'
);
add_action
(
'woocommerce_before_single_product'
,
array
(
$this
,
'video_remove_default_woocommerce_image'
));
add_filter
(
'query_vars'
,
array
(
$this
,
'themeslug_query_vars'
));
}
...
...
@@ -112,7 +111,6 @@ if(!class_exists('WoocommerceAccountRemoveNameSurname')) {
{
add_filter
(
'woocommerce_save_account_details_required_fields'
,
array
(
$this
,
'ts_hide_first_last_name'
));
add_action
(
'woocommerce_edit_account_form_start'
,
array
(
$this
,
'add_username_to_edit_account_form'
));
sexhack_log
(
'WoocommerceAccountRemoveNameSurname() Instanced'
);
}
// Add the custom field "username"
...
...
@@ -148,7 +146,6 @@ if(!class_exists('WoocommerceEmailCheckout')) {
{
public
function
__construct
()
{
sexhack_log
(
'WoocommerceEmailCheckout() Instanced'
);
add_filter
(
'woocommerce_checkout_fields'
,
array
(
$this
,
'simplify_checkout_virtual'
)
);
add_filter
(
'woocommerce_login_redirect'
,
array
(
$this
,
'fix_woocommerce_user'
),
99
,
2
);
...
...
@@ -206,7 +203,6 @@ if(!class_exists('SH_WooCommerce_Registration_Integration')) {
//$this->addcart = false;
sexhack_log
(
'SH_WooCommerce_Registration_Integration() Instanced'
);
// Register new endpoint (URL) for My Account page
add_action
(
'init'
,
array
(
$this
,
'add_subscriptions_endpoint'
),
300
);
...
...
@@ -262,12 +258,10 @@ if(!class_exists('SH_WooCommerce_Registration_Integration')) {
function
add_subscriptions_endpoint
()
{
global
$wp_rewrite
;
sexhack_log
(
"SUBSCRIPTION ENDPOINT ADDED"
);
add_rewrite_endpoint
(
'subscriptions'
,
EP_ROOT
|
EP_PAGES
);
$rules
=
$wp_rewrite
->
wp_rewrite_rules
();
if
(
!
array_key_exists
(
'(.?.+?)/subscriptions(/(.*))?/?$'
,
$rules
))
{
sexhack_log
(
"SUBSCRIPTION RULESS NEEDS REWRITE"
);
update_option
(
'need_rewrite_flush'
,
1
);
}
}
...
...
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