Making WordPress.org

Changeset 1848


Ignore:
Timestamp:
08/25/2015 04:14:06 PM (9 years ago)
Author:
ocean90
Message:

Translate: Include _plugin-icons.php only if the file exists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-routes/routes/locale.php

    r1841 r1848  
    11<?php
     2
     3// wporg_get_plugin_icon()
     4if ( file_exists( WPORGPATH . 'extend/plugins-plugins/_plugin-icons.php' ) ) {
     5    include_once WPORGPATH . 'extend/plugins-plugins/_plugin-icons.php';
     6}
     7
    28/**
    39 * Locale Route Class.
     
    208214            case 'bbpress':
    209215            case 'buddypress':
    210                 require_once WPORGPATH . 'extend/plugins-plugins/_plugin-icons.php';
    211216                if ( function_exists( 'wporg_get_plugin_icon' ) ) {
    212217                    return wporg_get_plugin_icon( $project->slug, $size );
     
    215220                }
    216221            case 'wp-plugins':
    217                 require_once WPORGPATH . 'extend/plugins-plugins/_plugin-icons.php';
    218222                if ( function_exists( 'wporg_get_plugin_icon' ) ) {
    219223                    return wporg_get_plugin_icon( $sub_project->slug, $size );
Note: See TracChangeset for help on using the changeset viewer.