Plugin Directory

Changeset 2108301


Ignore:
Timestamp:
06/18/2019 06:09:21 PM (7 years ago)
Author:
quecodig
Message:

Update for 1.2.3

Location:
native-performance/trunk
Files:
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • native-performance/trunk/changelog.txt

    r2006976 r2108301  
    11=== 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
    29
    310= 1.2 =
  • native-performance/trunk/native-performance-main.php

    r2006976 r2108301  
    55
    66if ( ! defined( 'ABSPATH' ) ) {
    7     exit; // Salir si se accede directamente.
     7    exit; // Bloquear acceso de manera directa.
    88}
    99
    1010/**
    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.
    1212 */
    1313
    1414// Define todo el plugin Native Performance.
    15 define( 'NP_PLUGIN_VERSION'             , '1.2' );
     15define( 'NP_PLUGIN_VERSION'             , $np_definitation["version"] );
    1616define( 'NP_PLUGIN_PATH'                , realpath( plugin_dir_path( NP_PLUGIN_FILE ) ) . '/' );
    17 define( 'NP_PLUGIN_INCLUDES_PATH'       , realpath( NP_PLUGIN_PATH . 'includes/' ) . '/' );
     17define( 'NP_PLUGIN_INCLUDES_PATH'       , realpath( NP_PLUGIN_PATH . 'core/' ) . '/' );
    1818define( 'NP_PLUGIN_URL'                 , plugin_dir_url( NP_PLUGIN_FILE ) );
    19 define( 'NP_PLUGIN_INCLUDES_URL'        , NP_PLUGIN_URL . 'includes/' );
     19define( 'NP_PLUGIN_TEMPLATES'           , realpath( NP_PLUGIN_PATH . 'templates/') . '/' );
     20define( 'NP_PLUGIN_INCLUDES_URL'        , NP_PLUGIN_URL . 'core/' );
    2021
    2122// Define la última versión estable de Native Performance.
    2223if ( ! defined( 'NP_PLUGIN_LASTVERSION' ) ) {
    23     define( 'NP_PLUGIN_LASTVERSION', '1.2' );
     24    define( 'NP_PLUGIN_LASTVERSION', $np_definitation["version"] );
    2425}
     26
     27// Créditos del Footer de la página.
     28add_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&starf;</a>' ) . ' ';
     31});
    2532
    2633/**
     
    2835 */
    2936
    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
     38add_action('plugins_loaded', 'native_performance_plugin_load_textdomain');
     39
     40function 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 );
    3646}
    3747
    38 add_action( 'plugins_loaded', 'native_performance_init' );
    3948
    4049// Carga los módulos de Native Performance..
    41 require( NP_PLUGIN_INCLUDES_PATH . 'class-admin.php' );
     50require( NP_PLUGIN_INCLUDES_PATH . 'class-actions.php' );
     51//require( NP_PLUGIN_INCLUDES_PATH . 'class-admin.php' );
    4252require( NP_PLUGIN_INCLUDES_PATH . 'class-functions.php' );
  • native-performance/trunk/native-performance.php

    r2030924 r2108301  
    77/**
    88 * 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
    1113 * 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: QueCodig
     14 * Author: QuéCódigo
    1315 * Author URI: https://www.quecodigo.com/
     16 *
    1417 * Text Domain: native-performance
    1518 * Domain Path: /languages/
    16  * License: GPL v3
     19 *
     20 * License: GPLv3 or later.
    1721 */
    1822
    1923/**
    2024 * Native Performance Plugin
    21  * Copyright (C) 2018-2019, QueCodigo - [email protected]
     25 * Copyright (C) 2018-2019, QuéCódigo - [email protected]
    2226 *
    2327 * This program is free software: you can redistribute it and/or modify
     
    3640
    3741if ( ! defined( 'ABSPATH' ) ) {
    38     exit; // Salir si se accede directamente.
     42    exit; // Bloquear acceso de manera directa.
    3943}
    4044
     
    4448}
    4549
     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.
     59register_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.
     66register_activation_hook( __FILE__, 'native_performance_options' );
     67
     68// Se registra desactivación del Plugin para la base de datos
     69register_deactivation_hook(__FILE__, 'native_performance_delete' );
     70
     71// Se añade configuración en lista de Plugins.
     72if($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
     83if(!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}
     95add_filter( 'plugin_row_meta', 'native_performance_row_meta', 10, 4 );
     96
    4697// Carga el plugin Native Performance.
    4798require_once dirname( NP_PLUGIN_FILE ) . '/native-performance-main.php';
  • native-performance/trunk/readme.txt

    r2030924 r2108301  
    1 === Native Performance ===
     1=== Native Performance ===
    22Contributors: edintique, quecodig
     3Donate link: https://www.paypal.me/quecodig
    34Tags: Optimization, Speed, Heartbeat api, Cache, Performance, Caching, All-in-one
    45Requires at least: 3.8.2
     6<<<<<<< HEAD
     7Tested up to: 5.2.1
     8=======
     9<<<<<<< HEAD
    510Tested up to: 5.0.3
    6 Stable tag: 1.2
    7 Requires PHP: 5.5
    8 License: GPLv3 or later
     11=======
     12Tested up to: 5.0.2
     13>>>>>>> First commit
     14>>>>>>> Se agregan los includes
     15Stable tag: 1.1
     16Requires PHP: 5.0
     17License: GPLv3 or later.
    918License URI: http://www.gnu.org/licenses/gpl.html
    1019
     
    1221
    1322== 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.
    1623
    1724Native 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.
     
    3643* Remove Capital P Dangit filter
    3744* Disable PDF thumbnails preview
     45* Optimization for WooCommerce & Contact Form 7
    3846
    3947We 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.
     
    8088== Changelog ==
    8189
     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
    8297= 1.2 =
    8398* Bug fixes
Note: See TracChangeset for help on using the changeset viewer.