#41970 closed enhancement (fixed)
Removed unused variable.
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Upgrade/Install | Keywords: | has-patch |
Focuses: | Cc: |
Description
I have found wp_current_db_version variable not use in functions so need to remove this for improvement.
file locations :
https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/upgrade.php line no:1596
Attachments (1)
Change History (10)
#1
follow-up:
↓ 3
@
8 years ago
<?php 1625 $comments = $wpdb->get_results( "SELECT `comment_ID` FROM `{$wpdb->comments}` WHERE `comment_date_gmt` > '2015-04-26' AND LENGTH( `comment_content` ) >= {$allowed_length} AND ( `comment_content` LIKE '%<%' OR `comment_content` LIKE '%>%' )" );
Also I See This here date is define static : WHERE comment_date_gmt
> '2015-04-26' so we need to update this for future version.
#3
in reply to:
↑ 1
;
follow-up:
↓ 4
@
8 years ago
- Component changed from General to Upgrade/Install
Replying to adnan.limdi:
Also I See This here date is define static : WHERE
comment_date_gmt
> '2015-04-26' so we need to update this for future version.
Thanks for the patch. The unused variable can be removed, but the date is specific to the security fix in [32308], there's no need to update it in a future version.
#4
in reply to:
↑ 3
@
8 years ago
Replying to SergeyBiryukov:
Replying to adnan.limdi:
Also I See This here date is define static : WHERE
comment_date_gmt
> '2015-04-26' so we need to update this for future version.
Thanks for the patch. The unused variable can be removed, but the date is specific to the security fix in [32308], there's no need to update it in a future version.
ok, @SergeyBiryukov thanks for the response.
Remove Unused variable