@@ -15,25 +15,25 @@ |
||
| 15 | 15 | * Author URI: http://github.com/wladston |
| 16 | 16 | */ |
| 17 | 17 | |
| 18 | -define('IMGIX_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); |
|
| 18 | +define('IMGIX_PLUGIN_URL', plugin_dir_url(__FILE__)); |
|
| 19 | 19 | |
| 20 | -$imgix_options = get_option( 'imgix_settings' ); |
|
| 20 | +$imgix_options = get_option('imgix_settings'); |
|
| 21 | 21 | |
| 22 | -include( 'includes/do-functions.php' ); |
|
| 23 | -include( 'includes/options-page.php' ); |
|
| 22 | +include('includes/do-functions.php'); |
|
| 23 | +include('includes/options-page.php'); |
|
| 24 | 24 | |
| 25 | -function imgix_plugin_admin_action_links( $links, $file ) { |
|
| 25 | +function imgix_plugin_admin_action_links($links, $file) { |
|
| 26 | 26 | static $my_plugin; |
| 27 | 27 | |
| 28 | - if ( ! $my_plugin ) { |
|
| 29 | - $my_plugin = plugin_basename( __FILE__ ); |
|
| 28 | + if ( ! $my_plugin) { |
|
| 29 | + $my_plugin = plugin_basename(__FILE__); |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | - if ( $file === $my_plugin ) { |
|
| 32 | + if ($file === $my_plugin) { |
|
| 33 | 33 | $settings_link = '<a href="options-general.php?page=imgix-options">Settings</a>'; |
| 34 | - array_unshift( $links, $settings_link ); |
|
| 34 | + array_unshift($links, $settings_link); |
|
| 35 | 35 | } |
| 36 | 36 | return $links; |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | -add_filter( 'plugin_action_links', 'imgix_plugin_admin_action_links', 10, 2 ); |
|
| 39 | +add_filter('plugin_action_links', 'imgix_plugin_admin_action_links', 10, 2); |
|