Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,13 @@ public function getGroups() {
'delete_site_option',
],
],
'stats_get_csv' => [
'type' => 'error',
'message' => 'Using `%s` outside of Jetpack context pollutes the stats_cache entry in the wp_options table. We recommend building a custom function instead.',
'functions' => [
'stats_get_csv',
]
],
'wp_mail' => [
'type' => 'warning',
'message' => '`%s` should be used sparingly. For any bulk emailing should be handled by a 3rd party service, in order to prevent domain or IP addresses being flagged as spam.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,6 @@ delete_option( $bar ); // Ok.

wpcom_vip_get_page_by_path(); // Ok - VIP recommended version of get_page_by_path().
get_page_by_path( $page_path ); // Warning.

$popular = stats_get_csv( 'postviews', [ 'days' => 2, 'limit' => 20 ] ); // Error.
$popular = custom_stats_get_csv( 'postviews', [ 'days' => 2, 'limit' => 20 ] ); // Ok.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be a clear linespace at the end of the file.

Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public function getErrorList() {
218 => 1,
220 => 1,
222 => 1,
228 => 1,
];
}

Expand Down