WordPress.org

Making WordPress.org

Changeset 3268


Ignore:
Timestamp:
05/28/2016 09:37:00 PM (4 years ago)
Author:
ocean90
Message:

Translate: Replace hardcoded URLs with plugins_url().

See #1735.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/helper-functions.php

    r3006 r3268  
    11<?php
    2 wp_register_style( 'wporg-translate', 'https://wordpress.org/translate/gp-templates-new/style.css', array( 'base' ), '20160425' );
     2wp_register_style( 'wporg-translate', plugins_url( 'style.css', __FILE__ ), array( 'base' ), '20160425' );
    33gp_enqueue_style( 'wporg-translate' );
    44
    5 wp_register_style( 'chartist', 'https://wordpress.org/translate/gp-templates-new/css/chartist.min.css', array(), '0.9.5' );
    6 wp_register_script( 'chartist', 'https://wordpress.org/translate/gp-templates-new/js/chartist.min.js', array(), '0.9.5' );
     5wp_register_style( 'chartist', plugins_url( 'css/chartist.min.css', __FILE__ ), array(), '0.9.5' );
     6wp_register_script( 'chartist', plugins_url( 'js/chartist.min.js', __FILE__ ), array(), '0.9.5' );
    77
    88
Note: See TracChangeset for help on using the changeset viewer.