PluginProbe
Stream – Activity Log & Audit Trail / 4.0.2
Stream – Activity Log & Audit Trail v4.0.2
4.4.0 4.3.0 4.2.2 4.2.1 trunk 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.1 3.1.1 3.10.0 3.2.0 3.2.1 3.2.2 3.2.3 All 50 releases
← All changes | classes/class-alert.php +0 -18 trunk4.0.2 View file →
@@ -125,26 +125,8 @@
125 125 return $post_id;
126 126 }
127 127
128 128 /**
129 - * Permanently delete the underlying alert post.
130 - *
131 - * @return bool True if the post was deleted, false otherwise.
132 - */
133 - public function delete() {
134 - if ( empty( $this->ID ) ) {
135 - return false;
136 - }
137 -
138 - $post = get_post( $this->ID );
139 - if ( ! ( $post instanceof \WP_Post ) || Alerts::POST_TYPE !== $post->post_type ) {
140 - return false;
141 - }
142 -
143 - return (bool) wp_delete_post( $this->ID, true );
144 - }
145 -
146 - /**
147 129 * Process settings form data
148 130 *
149 131 * @todo Confirm if the function is necessary, it's currently unreference
150 132 * anywhere else in the plugin.