~canonical-sysadmins/wordpress/4.8.2

« back to all changes in this revision

Viewing changes to wp-content/plugins/akismet/class.akismet-admin.php

  • Committer: Nick Moffitt
  • Date: 2016-04-14 10:44:19 UTC
  • mfrom: (1.1.14 upstream)
  • Revision ID: nick.moffitt@canonical.com-20160414104419-w6lxcr3ru4enc2w5
Merge WP4.5 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
                        'jetpack_page_akismet-key-config',
112
112
                        'plugins.php',
113
113
                ) ) ) {
114
 
                        wp_register_style( 'akismet.css', AKISMET__PLUGIN_URL . '_inc/akismet.css', array(), AKISMET_VERSION );
 
114
                        wp_register_style( 'akismet.css', plugin_dir_url( __FILE__ ) . '_inc/akismet.css', array(), AKISMET_VERSION );
115
115
                        wp_enqueue_style( 'akismet.css');
116
116
 
117
 
                        wp_register_script( 'akismet.js', AKISMET__PLUGIN_URL . '_inc/akismet.js', array('jquery','postbox'), AKISMET_VERSION );
 
117
                        wp_register_script( 'akismet.js', plugin_dir_url( __FILE__ ) . '_inc/akismet.js', array('jquery','postbox'), AKISMET_VERSION );
118
118
                        wp_enqueue_script( 'akismet.js' );
119
119
                        wp_localize_script( 'akismet.js', 'WPAkismet', array(
120
120
                                'comment_author_url_nonce' => wp_create_nonce( 'comment_author_url_nonce' ),
605
605
        }
606
606
 
607
607
        public static function plugin_action_links( $links, $file ) {
608
 
                if ( $file == plugin_basename( AKISMET__PLUGIN_URL . '/akismet.php' ) ) {
 
608
                if ( $file == plugin_basename( plugin_dir_url( __FILE__ ) . '/akismet.php' ) ) {
609
609
                        $links[] = '<a href="' . esc_url( self::get_page_url() ) . '">'.esc_html__( 'Settings' , 'akismet').'</a>';
610
610
                }
611
611