Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
WP Plugins
WP Print Friendly
Commits
ae71e6a8
Commit
ae71e6a8
authored
Jun 04, 2012
by
Erick Hitter
Browse files
Revert to inspection for print variable, rather than get_query_var. See #2.
parent
86187884
Changes
1
Hide whitespace changes
Inline
Side-by-side
wp-print-friendly.php
View file @
ae71e6a8
...
...
@@ -150,11 +150,12 @@ class wp_print_friendly {
/**
* Determine if print template is being requested.
*
* @
uses get
_query
_var
* @
global $wp
_query
* @return bool
*/
public
function
is_print
()
{
return
(
bool
)
get_query_var
(
$this
->
query_var
);
global
$wp_query
;
return
is_array
(
$wp_query
->
query
)
&&
array_key_exists
(
$this
->
query_var
,
$wp_query
->
query
);
}
/**
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment