Changeset 2108301
- Timestamp:
- 06/18/2019 06:09:21 PM (7 years ago)
- Location:
- native-performance/trunk
- Files:
-
- 2 deleted
- 4 edited
-
changelog.txt (modified) (1 diff)
-
includes/class-admin.php (deleted)
-
includes/class-functions.php (deleted)
-
native-performance-main.php (modified) (2 diffs)
-
native-performance.php (modified) (3 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
native-performance/trunk/changelog.txt
r2006976 r2108301 1 1 === Native Performance Changelog === 2 3 = 1.2.3 = 4 * Core improvements 5 * Correction of minor faults 6 * Improvement REST API 7 * Improvement of remove Emojis 8 * Optimization for WooCommerce & Contact Form 7 2 9 3 10 = 1.2 = -
native-performance/trunk/native-performance-main.php
r2006976 r2108301 5 5 6 6 if ( ! defined( 'ABSPATH' ) ) { 7 exit; // Salir si se accede directamente.7 exit; // Bloquear acceso de manera directa. 8 8 } 9 9 10 10 /** 11 * @internal Bajo ninguna circunstancia se debe cancelar o anular la versión real del complemento Native Performance. La eliminación de la versión real puede causar problemas irreparables dentro del funcionamiento del plugin.11 * @internal Bajo ninguna circunstancia se debe cancelar o anular la versión real del complemento Native Performance. La eliminación de la versión real puede causar problemas irreparables dentro del funcionamiento del Plugin. 12 12 */ 13 13 14 14 // Define todo el plugin Native Performance. 15 define( 'NP_PLUGIN_VERSION' , '1.2');15 define( 'NP_PLUGIN_VERSION' , $np_definitation["version"] ); 16 16 define( 'NP_PLUGIN_PATH' , realpath( plugin_dir_path( NP_PLUGIN_FILE ) ) . '/' ); 17 define( 'NP_PLUGIN_INCLUDES_PATH' , realpath( NP_PLUGIN_PATH . ' includes/' ) . '/' );17 define( 'NP_PLUGIN_INCLUDES_PATH' , realpath( NP_PLUGIN_PATH . 'core/' ) . '/' ); 18 18 define( 'NP_PLUGIN_URL' , plugin_dir_url( NP_PLUGIN_FILE ) ); 19 define( 'NP_PLUGIN_INCLUDES_URL' , NP_PLUGIN_URL . 'includes/' ); 19 define( 'NP_PLUGIN_TEMPLATES' , realpath( NP_PLUGIN_PATH . 'templates/') . '/' ); 20 define( 'NP_PLUGIN_INCLUDES_URL' , NP_PLUGIN_URL . 'core/' ); 20 21 21 22 // Define la última versión estable de Native Performance. 22 23 if ( ! defined( 'NP_PLUGIN_LASTVERSION' ) ) { 23 define( 'NP_PLUGIN_LASTVERSION', '1.2');24 define( 'NP_PLUGIN_LASTVERSION', $np_definitation["version"] ); 24 25 } 26 27 // Créditos del Footer de la página. 28 add_filter('admin_footer_text', function() { 29 /* translators: %s: five stars */ 30 return ' ' . sprintf( __( 'If you like <strong>Native Performance</strong>, please %1$sleave us a rating of %2$s. Thank you!', 'nperformance' ), '<a href="https://wordpress.org/support/plugin/native-performance/reviews/#new-post" target="_blank">', '5★</a>' ) . ' '; 31 }); 25 32 26 33 /** … … 28 35 */ 29 36 30 function native_performance_init() { 31 // Carga traducciones del directorio de idiomas. 32 $locale = get_locale(); 33 $locale = apply_filters( 'plugin_locale', $locale, 'native-performance' ); 34 load_textdomain( 'native-performance', WP_LANG_DIR . '/plugins/native-performance-' . $locale . '.mo' ); 35 load_plugin_textdomain( 'native-performance', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); 37 38 add_action('plugins_loaded', 'native_performance_plugin_load_textdomain'); 39 40 function native_performance_plugin_load_textdomain() { 41 42 $text_domain = 'nperformance'; 43 $path_languages = basename(dirname(__FILE__)).'/languages/'; 44 45 load_plugin_textdomain($text_domain, false, $path_languages ); 36 46 } 37 47 38 add_action( 'plugins_loaded', 'native_performance_init' );39 48 40 49 // Carga los módulos de Native Performance.. 41 require( NP_PLUGIN_INCLUDES_PATH . 'class-admin.php' ); 50 require( NP_PLUGIN_INCLUDES_PATH . 'class-actions.php' ); 51 //require( NP_PLUGIN_INCLUDES_PATH . 'class-admin.php' ); 42 52 require( NP_PLUGIN_INCLUDES_PATH . 'class-functions.php' ); -
native-performance/trunk/native-performance.php
r2030924 r2108301 7 7 /** 8 8 * Plugin Name: Native Performance 9 * Version: 1.2 10 * Plugin URI: https://www.quecodigo.com/plugins/native-performance 9 * Version: 1.2.3 10 * Requires at least: 4.0 11 * Tested up to: 5.2.1 12 * Plugin URI: https://www.desarrollo.quecodigo.com/wordpress/plugins.html 11 13 * Description: Native Performance is an all-in-one complement that integrates, in a complete and robust core, a set of tools for the solution of common errors, optimization, performance and much more. 12 * Author: Qu eCodig14 * Author: QuéCódigo 13 15 * Author URI: https://www.quecodigo.com/ 16 * 14 17 * Text Domain: native-performance 15 18 * Domain Path: /languages/ 16 * License: GPL v3 19 * 20 * License: GPLv3 or later. 17 21 */ 18 22 19 23 /** 20 24 * Native Performance Plugin 21 * Copyright (C) 2018-2019, Qu eCodigo - [email protected]25 * Copyright (C) 2018-2019, QuéCódigo - [email protected] 22 26 * 23 27 * This program is free software: you can redistribute it and/or modify … … 36 40 37 41 if ( ! defined( 'ABSPATH' ) ) { 38 exit; // Salir si se accede directamente.42 exit; // Bloquear acceso de manera directa. 39 43 } 40 44 … … 44 48 } 45 49 50 $np_definitation = array( 51 'version' => '1.2.3', 52 'admin-page' => false, 53 'slug' => 'N Performance', 54 'url' => 'native-performance', 55 'title' => 'Native Performance', 56 ); 57 58 // Se registra la activación del Plugin para la bienvenida. 59 register_activation_hook( 60 __FILE__, function() { 61 add_option( 'native_performance_activation_welcome', 'pending' ); 62 } 63 ); 64 65 // Se registra activación del Plugin para la base de datos. 66 register_activation_hook( __FILE__, 'native_performance_options' ); 67 68 // Se registra desactivación del Plugin para la base de datos 69 register_deactivation_hook(__FILE__, 'native_performance_delete' ); 70 71 // Se añade configuración en lista de Plugins. 72 if($np_definitation["admin-page"]){ 73 add_filter( 'plugin_action_links', function( $plugin_actions, $plugin_file ) { 74 $new_actions = array(); 75 if ( basename( dirname( __FILE__ ) ) . '/native-performance.php' === $plugin_file ) { 76 /* translators: %s: url of plugin settings page */ 77 $new_actions['sc_settings'] = sprintf( __( '<a href="%s">'.__('Settings').'</a>', 'native-performance' ), esc_url( add_query_arg( array( 'page' => 'native-performance' ), admin_url( 'admin.php' ) ) ) ); 78 } 79 return array_merge( $new_actions, $plugin_actions ); 80 }, 10, 2 ); 81 } 82 83 if(!function_exists('native_performance_row_meta')){ 84 function native_performance_row_meta( $links, $file ) { 85 if ( strpos( $file, 'native-performance.php' ) !== false ) { 86 $new_links = array( 87 'donate' => '<a href="https://www.paypal.me/quecodig" target="_blank">Donar</a>', 88 'support' => '<a href="https://www.desarrollo.quecodigo.com/wordpress/">'.__("Support").'</a>' 89 ); 90 $links = array_merge( $links, $new_links ); 91 } 92 return $links; 93 } 94 } 95 add_filter( 'plugin_row_meta', 'native_performance_row_meta', 10, 4 ); 96 46 97 // Carga el plugin Native Performance. 47 98 require_once dirname( NP_PLUGIN_FILE ) . '/native-performance-main.php'; -
native-performance/trunk/readme.txt
r2030924 r2108301 1 === Native Performance ===1 === Native Performance === 2 2 Contributors: edintique, quecodig 3 Donate link: https://www.paypal.me/quecodig 3 4 Tags: Optimization, Speed, Heartbeat api, Cache, Performance, Caching, All-in-one 4 5 Requires at least: 3.8.2 6 <<<<<<< HEAD 7 Tested up to: 5.2.1 8 ======= 9 <<<<<<< HEAD 5 10 Tested up to: 5.0.3 6 Stable tag: 1.2 7 Requires PHP: 5.5 8 License: GPLv3 or later 11 ======= 12 Tested up to: 5.0.2 13 >>>>>>> First commit 14 >>>>>>> Se agregan los includes 15 Stable tag: 1.1 16 Requires PHP: 5.0 17 License: GPLv3 or later. 9 18 License URI: http://www.gnu.org/licenses/gpl.html 10 19 … … 12 21 13 22 == Description == 14 15 <strong>Note:</strong> The plugin is being reinvented, you will soon be able to have an improved version with many more options that will boost your WordPress.16 23 17 24 Native Performance improves the performance of your WordPress, reducing site load times noticeably. This plugin is an all-in-one solution that incorporates a complete, powerful and robust core, which is constantly improved in each update and which aims to learn from all users to implement solutions, in the future, more effective. … … 36 43 * Remove Capital P Dangit filter 37 44 * Disable PDF thumbnails preview 45 * Optimization for WooCommerce & Contact Form 7 38 46 39 47 We are compatible with the main SEO plugins for WordPress, thanks to this you can improve the ranking in the search engines. In addition, you will have, at least, an improvement of 10 times the speed of your site. … … 80 88 == Changelog == 81 89 90 = 1.2.3 = 91 * Core improvements 92 * Correction of minor faults 93 * Improvement REST API 94 * Improvement of remove Emojis 95 * Optimization for WooCommerce & Contact Form 7 96 82 97 = 1.2 = 83 98 * Bug fixes
Note: See TracChangeset
for help on using the changeset viewer.