| @@ -55,19 +55,21 @@ | ||
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * Adds once weekly to the existing schedules. |
| 58 | 58 | * |
| 59 | + * WordPress core registers an identical 'weekly' schedule of its own, so this adds nothing. | |
| 60 | + * The 'cron_schedules' registration is gone, and with it the translated label that made | |
| 61 | + * this run before the text domain loaded. | |
| 62 | + * | |
| 59 | 63 | * @since 3.06.04 |
| 64 | + * @deprecated 6.35 | |
| 60 | 65 | * |
| 61 | - * @param array $schedules Schedules. | |
| 66 | + * @param array $schedules Unused. The registered cron schedules, keyed by schedule name. | |
| 62 | 67 | * |
| 63 | 68 | * @return array |
| 64 | 69 | */ |
| 65 | 70 | public static function add_schedules( $schedules = array() ) { |
| 66 | - $schedules['weekly'] = array( | |
| 67 | - 'interval' => DAY_IN_SECONDS * 7, | |
| 68 | - 'display' => __( 'Once Weekly', 'formidable' ), | |
| 69 | - ); | |
| 71 | + _deprecated_function( __METHOD__, '6.35' ); | |
| 70 | 72 | return $schedules; |
| 71 | 73 | } |
| 72 | 74 | |
| 73 | 75 | /** |
| @@ -140,9 +142,9 @@ | ||
| 140 | 142 | wp_send_json_success(); |
| 141 | 143 | } |
| 142 | 144 | |
| 143 | 145 | /** |
| 144 | - * Updates flows data. | |
| 146 | + * Updates flows data. This increases the count of flow_data[ $key ][ $value ]. | |
| 145 | 147 | * |
| 146 | 148 | * @since 6.16.1 |
| 147 | 149 | * |
| 148 | 150 | * @param string $key Flow key. |