Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
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
outils
question2answer
Commits
0c4e5d4a
Unverified
Commit
0c4e5d4a
authored
Nov 30, 2018
by
Scott
Committed by
GitHub
Nov 30, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #665 from pupi1985/patch-112
Remove some deprecation messages
parents
2641dbd9
befe8b7d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
48 deletions
+8
-48
options.php
qa-include/app/options.php
+0
-9
qa-filter-basic.php
qa-include/plugins/qa-filter-basic.php
+1
-4
qa-layer-voters-flaggers.php
qa-include/plugins/qa-layer-voters-flaggers.php
+4
-20
qa-wysiwyg-editor.php
qa-plugin/wysiwyg-editor/qa-wysiwyg-editor.php
+2
-10
qa-xml-sitemap.php
qa-plugin/xml-sitemap/qa-xml-sitemap.php
+1
-5
No files found.
qa-include/app/options.php
View file @
0c4e5d4a
...
...
@@ -108,15 +108,6 @@ function qa_opt_if_loaded($name)
/**
* @deprecated Deprecated since Q2A 1.3 now that all options are retrieved together.
* @param $names
*/
function
qa_options_set_pending
(
$names
)
{
}
/**
* Load all of the Q2A options from the database.
* From Q2A 1.8 we always load the options in a separate query regardless of QA_OPTIMIZE_DISTANT_DB.
*/
...
...
qa-include/plugins/qa-filter-basic.php
View file @
0c4e5d4a
...
...
@@ -170,11 +170,8 @@ class qa_filter_basic
/**
* Wrapper function for validating a post's email address.
*
* @deprecated This function will become private in Q2A 1.8. It is specific to this plugin and
* should not be used by outside code.
*/
p
ublic
function
validate_post_email
(
&
$errors
,
$post
)
p
rivate
function
validate_post_email
(
&
$errors
,
$post
)
{
if
(
@
$post
[
'notify'
]
&&
strlen
(
@
$post
[
'email'
]))
{
$error
=
$this
->
filter_email
(
$post
[
'email'
],
null
);
...
...
qa-include/plugins/qa-layer-voters-flaggers.php
View file @
0c4e5d4a
...
...
@@ -142,11 +142,7 @@ class qa_html_theme_layer extends qa_html_theme_base
// Utility functions for this layer
/**
* @deprecated This function will become private in Q2A 1.8. It is specific to this plugin and
* should not be used by outside code.
*/
public
function
queue_post_voters_flaggers
(
$post
)
private
function
queue_post_voters_flaggers
(
$post
)
{
if
(
!
qa_user_post_permit_error
(
'permit_view_voters_flaggers'
,
$post
))
{
$postkeys
=
array
(
'postid'
,
'opostid'
);
...
...
@@ -157,11 +153,7 @@ class qa_html_theme_layer extends qa_html_theme_base
}
}
/**
* @deprecated This function will become private in Q2A 1.8. It is specific to this plugin and
* should not be used by outside code.
*/
public
function
queue_raw_posts_voters_flaggers
(
$posts
)
private
function
queue_raw_posts_voters_flaggers
(
$posts
)
{
if
(
is_array
(
$posts
))
{
foreach
(
$posts
as
$post
)
{
...
...
@@ -171,11 +163,7 @@ class qa_html_theme_layer extends qa_html_theme_base
}
}
/**
* @deprecated This function will become private in Q2A 1.8. It is specific to this plugin and
* should not be used by outside code.
*/
public
function
retrieve_queued_voters_flaggers
()
private
function
retrieve_queued_voters_flaggers
()
{
if
(
count
(
$this
->
qa_voters_flaggers_queue
))
{
require_once
QA_INCLUDE_DIR
.
'db/votes.php'
;
...
...
@@ -208,11 +196,7 @@ class qa_html_theme_layer extends qa_html_theme_base
}
}
/**
* @deprecated This function will become private in Q2A 1.8. It is specific to this plugin and
* should not be used by outside code.
*/
public
function
get_post_voters_flaggers
(
$post
,
$postid
)
private
function
get_post_voters_flaggers
(
$post
,
$postid
)
{
require_once
QA_INCLUDE_DIR
.
'util/sort.php'
;
...
...
qa-plugin/wysiwyg-editor/qa-wysiwyg-editor.php
View file @
0c4e5d4a
...
...
@@ -252,21 +252,13 @@ class qa_wysiwyg_editor
}
/**
* @deprecated This function will become private in Q2A 1.8. It is specific to this plugin and
* should not be used by outside code.
*/
public
function
html_to_text
(
$html
)
private
function
html_to_text
(
$html
)
{
$viewer
=
qa_load_module
(
'viewer'
,
''
);
return
$viewer
->
get_text
(
$html
,
'html'
,
array
());
}
/**
* @deprecated This function will become private in Q2A 1.8. It is specific to this plugin and
* should not be used by outside code.
*/
public
function
bytes_to_mega
(
$bytes
)
private
function
bytes_to_mega
(
$bytes
)
{
return
$bytes
/
1048576
;
}
...
...
qa-plugin/xml-sitemap/qa-xml-sitemap.php
View file @
0c4e5d4a
...
...
@@ -267,11 +267,7 @@ class qa_xml_sitemap
}
/**
* @deprecated This function will become private in Q2A 1.8. It is specific to this plugin and
* should not be used by outside code.
*/
public
function
sitemap_output
(
$request
,
$priority
)
private
function
sitemap_output
(
$request
,
$priority
)
{
echo
"
\t
<url>
\n
"
.
"
\t\t
<loc>"
.
qa_xml
(
qa_path
(
$request
,
null
,
qa_opt
(
'site_url'
)))
.
"</loc>
\n
"
.
...
...
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