| @@ 380-384 (lines=5) @@ | ||
| 377 | */ |
|
| 378 | function give_trigger_upgrades() { |
|
| 379 | ||
| 380 | if ( ! current_user_can( 'manage_give_settings' ) ) { |
|
| 381 | wp_die( esc_html__( 'You do not have permission to do Give upgrades.', 'give' ), esc_html__( 'Error', 'give' ), array( |
|
| 382 | 'response' => 403, |
|
| 383 | ) ); |
|
| 384 | } |
|
| 385 | ||
| 386 | $give_version = get_option( 'give_version' ); |
|
| 387 | ||
| @@ 1854-1859 (lines=6) @@ | ||
| 1851 | __( 'You do not have permission to %s API keys for this user.', 'give' ), $process ), __( 'Error', 'give' ), array( |
|
| 1852 | 'response' => 403, |
|
| 1853 | ) ); |
|
| 1854 | } elseif ( ! current_user_can( 'manage_give_settings' ) ) { |
|
| 1855 | wp_die( sprintf( /* translators: %s: process */ |
|
| 1856 | __( 'You do not have permission to %s API keys for this user.', 'give' ), $process ), __( 'Error', 'give' ), array( |
|
| 1857 | 'response' => 403, |
|
| 1858 | ) ); |
|
| 1859 | } |
|
| 1860 | ||
| 1861 | switch ( $process ) { |
|
| 1862 | case 'generate': |
|