MINOR Disabled deprecation warning in CommentsExtension->PageComments(), its very commonly used in pretty much every theme out there, and needlessly annoying to throw a warning for
This commit is contained in:
parent
2f0a022059
commit
cf336d7fb3
|
@ -134,7 +134,8 @@ class CommentsExtension extends DataObjectDecorator {
|
|||
* @deprecated 1.0 Please use {@link CommentsExtension->CommentsForm()}
|
||||
*/
|
||||
function PageComments() {
|
||||
user_error('$PageComments is deprecated. Please use $CommentsForm', E_USER_WARNING);
|
||||
// This method is very commonly used, don't throw a warning just yet
|
||||
//user_error('$PageComments is deprecated. Please use $CommentsForm', E_USER_WARNING);
|
||||
|
||||
return $this->CommentsForm();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue