Changeset 3274230
- Timestamp:
- 04/16/2025 07:28:13 AM (11 months ago)
- Location:
- wp-smart-seo/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
wp-smart-seo.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-smart-seo/trunk/readme.txt
r3217516 r3274230 5 5 Version: 1.8.1 6 6 Requires at least: 4.0 7 Tested up to: 6. 7.17 Tested up to: 6.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
wp-smart-seo/trunk/wp-smart-seo.php
r3217516 r3274230 8 8 Author URI: http://www.ericmaechler.com 9 9 Requires at least: 4.0 10 Tested up to: 6. 7.110 Tested up to: 6.8 11 11 Text Domain: wp-smart-seo 12 12 Domain Path: /languages … … 14 14 15 15 16 if ( ! defined( 'ABSPATH' )) exit; // Exit if accessed directly16 if (! defined('ABSPATH')) exit; // Exit if accessed directly 17 17 18 18 19 function my_plugin_init_wpsmartseo() { 20 load_plugin_textdomain( 'wp-smart-seo', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); 21 } 22 add_action('init', 'my_plugin_init_wpsmartseo'); 19 function my_plugin_init_wpsmartseo() 20 { 21 load_plugin_textdomain('wp-smart-seo', false, dirname(plugin_basename(__FILE__)) . '/languages'); 22 } 23 add_action('init', 'my_plugin_init_wpsmartseo'); 23 24 24 25 25 26 include 'conf.php'; 26 27 27 remove_action( 'wp_head', '_wp_render_title_tag', 1);28 remove_action('wp_head', '_wp_render_title_tag', 1); 28 29 29 30 /* add meta box */ … … 45 46 46 47 47 function enqueue_styles_wpsmartseo() { 48 // Beispiel für ein Plugin 49 wp_enqueue_style( 'custom', plugins_url('css/wp-smart-seo.css',__FILE__), array(), 1.0, 'screen' ); 48 function enqueue_styles_wpsmartseo() 49 { 50 // Beispiel für ein Plugin 51 wp_enqueue_style('custom', plugins_url('css/wp-smart-seo.css', __FILE__), array(), 1.0, 'screen'); 50 52 } 51 add_action( 'admin_enqueue_scripts', 'enqueue_styles_wpsmartseo');53 add_action('admin_enqueue_scripts', 'enqueue_styles_wpsmartseo'); 52 54 53 55 54 56 55 function enqueue_admin_scripts_wpsmartseo() { 56 // Beispiel für ein Plugin 57 wp_enqueue_script( 'custom-script', plugins_url( 'js/wp-smart-seo.js', __FILE__ ), array( 'jquery' ), '1.0' ); 57 function enqueue_admin_scripts_wpsmartseo() 58 { 59 // Beispiel für ein Plugin 60 wp_enqueue_script('custom-script', plugins_url('js/wp-smart-seo.js', __FILE__), array('jquery'), '1.0'); 58 61 } 59 60 add_action( 'admin_enqueue_scripts', 'enqueue_admin_scripts_wpsmartseo');61 62 62 ?> 63 add_action('admin_enqueue_scripts', 'enqueue_admin_scripts_wpsmartseo');
Note: See TracChangeset
for help on using the changeset viewer.