PluginProbe
Image Optimizer – Compress Images and Convert to WebP or AVIF / trunk
Image Optimizer – Compress Images and Convert to WebP or AVIF vtrunk
1.7.7 1.7.6 1.7.5 1.7.4 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 All 33 releases
← All changes | vendor/woocommerce/action-scheduler/deprecated/ActionScheduler_AdminView_Deprecated.php +20 -14 1.2.1 → trunk View file →
@@ -9,8 +9,13 @@
9 9 * @codeCoverageIgnore
10 10 */
11 11 class ActionScheduler_AdminView_Deprecated {
12 12
13 + /**
14 + * Adjust parameters for custom post type.
15 + *
16 + * @param array $args Args.
17 + */
13 18 public function action_scheduler_post_type_args( $args ) {
14 19 _deprecated_function( __METHOD__, '2.0.0' );
15 20 return $args;
16 21 }
@@ -67,9 +72,9 @@
67 72 /**
68 73 * Print the content for our custom columns.
69 74 *
70 75 * @param string $column_name The key for the column for which we should output our content.
71 - * @param int $post_id The ID of the 'scheduled-action' post for which this row relates.
76 + * @param int $post_id The ID of the 'scheduled-action' post for which this row relates.
72 77 */
73 78 public static function list_table_column_content( $column_name, $post_id ) {
74 79 _deprecated_function( __METHOD__, '2.0.0' );
75 80 }
@@ -78,9 +83,10 @@
78 83 * Hide the inline "Edit" action for all 'scheduled-action' posts.
79 84 *
80 85 * Hooked to the 'post_row_actions' filter.
81 86 *
82 - * @param array $actions An associative array of actions which can be performed on the 'scheduled-action' post type.
87 + * @param array $actions An associative array of actions which can be performed on the 'scheduled-action' post type.
88 + * @param WP_Post $post The 'scheduled-action' post object.
83 89 * @return array $actions An associative array of actions which can be performed on the 'scheduled-action' post type.
84 90 */
85 91 public static function row_actions( $actions, $post ) {
86 92 _deprecated_function( __METHOD__, '2.0.0' );
@@ -99,15 +105,14 @@
99 105 /**
100 106 * Convert an interval of seconds into a two part human friendly string.
101 107 *
102 108 * The WordPress human_time_diff() function only calculates the time difference to one degree, meaning
103 - * even if an action is 1 day and 11 hours away, it will display "1 day". This funciton goes one step
109 + * even if an action is 1 day and 11 hours away, it will display "1 day". This function goes one step
104 110 * further to display two degrees of accuracy.
105 111 *
106 112 * Based on Crontrol::interval() function by Edward Dale: https://wordpress.org/plugins/wp-crontrol/
107 113 *
108 - * @param int $interval A interval in seconds.
109 - * @return string A human friendly string representation of the interval.
114 + * @return void
110 115 */
111 116 public static function admin_notices() {
112 117 _deprecated_function( __METHOD__, '2.0.0' );
113 118 }
@@ -114,13 +119,13 @@
114 119
115 120 /**
116 121 * Filter search queries to allow searching by Claim ID (i.e. post_password).
117 122 *
118 - * @param string $orderby MySQL orderby string.
119 - * @param WP_Query $query Instance of a WP_Query object
120 - * @return string MySQL orderby string.
123 + * @param string $orderby MySQL orderby string.
124 + * @param WP_Query $query Instance of a WP_Query object.
125 + * @return void
121 126 */
122 - public function custom_orderby( $orderby, $query ){
127 + public function custom_orderby( $orderby, $query ) {
123 128 _deprecated_function( __METHOD__, '2.0.0' );
124 129 }
125 130
126 131 /**
@@ -125,11 +130,11 @@
125 130
126 131 /**
127 132 * Filter search queries to allow searching by Claim ID (i.e. post_password).
128 133 *
129 - * @param string $search MySQL search string.
130 - * @param WP_Query $query Instance of a WP_Query object
131 - * @return string MySQL search string.
134 + * @param string $search MySQL search string.
135 + * @param WP_Query $query Instance of a WP_Query object.
136 + * @return void
132 137 */
133 138 public function search_post_password( $search, $query ) {
134 139 _deprecated_function( __METHOD__, '2.0.0' );
135 140 }
@@ -136,9 +141,9 @@
136 141
137 142 /**
138 143 * Change messages when a scheduled action is updated.
139 144 *
140 - * @param array $messages
145 + * @param array $messages Messages.
141 146 * @return array
142 147 */
143 148 public function post_updated_messages( $messages ) {
144 149 _deprecated_function( __METHOD__, '2.0.0' );
@@ -143,5 +148,6 @@
143 148 public function post_updated_messages( $messages ) {
144 149 _deprecated_function( __METHOD__, '2.0.0' );
145 150 return $messages;
146 151 }
147 -}
152 +
153 +}