PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-beta
Jetpack – WP Security, Backup, Speed, & Growth v16.3-beta
16.3-beta 16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 All 507 releases
← All changes | jetpack_vendor/automattic/jetpack-connection/src/class-nonce-handler.php +2 -2 13.6.2 → 16.3-beta View file →
@@ -89,8 +89,10 @@
89 89
90 90 // Raw query so we can avoid races: add_option will also update.
91 91 $show_errors = $this->db->hide_errors();
92 92
93 + $return = false;
94 +
93 95 // Running `try...finally` to make sure that we re-enable errors in case of an exception.
94 96 try {
95 97 $old_nonce = $this->db->get_row(
96 98 $this->db->prepare( "SELECT 1 FROM `{$this->db->options}` WHERE option_name = %s", "jetpack_nonce_{$timestamp}_{$nonce}" )
@@ -104,10 +106,8 @@
104 106 time(),
105 107 'no'
106 108 )
107 109 );
108 - } else {
109 - $return = false;
110 110 }
111 111 } finally {
112 112 $this->db->show_errors( $show_errors );
113 113 }