Changeset 2940219
- Timestamp:
- 07/19/2023 08:25:48 AM (3 years ago)
- Location:
- kattene/trunk
- Files:
-
- 2 edited
-
plugin.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kattene/trunk/plugin.php
r2622835 r2940219 5 5 Plugin URI: http://webfood.info/make-kattene/ 6 6 Description: kattene. 7 Version: 1. 57 Version: 1.6 8 8 Author URI: http://webfood.info/ 9 9 Text Domain: kattene … … 32 32 33 33 function kattene_func( $args, $content ) { 34 35 $path = str_replace(home_url(),'',plugin_dir_url( __FILE__ )); 34 $path = plugin_dir_url( __FILE__ ); 36 35 wp_enqueue_style( 'kattene', $path . 'style.css'); 37 36 … … 42 41 $main_tmp = array_filter($sites, 43 42 function($site){ 44 return $site["main"];43 return isset($site["main"]) && $site["main"]; 45 44 } 46 45 ); 47 46 48 $main = array_pop($main_tmp); 47 if(empty($main_tmp)){ 48 $main = $sites[0]; 49 }else{ 50 $main = array_shift($main_tmp); 51 } 49 52 50 53 $cnt = count($sites); -
kattene/trunk/readme.txt
r2622835 r2940219 3 3 Tags: css, style.css, custom 4 4 Requires at least: 5.2.2 5 Tested up to: 5.8.16 Stable tag: 1. 55 Tested up to: 6.2.2 6 Stable tag: 1.6 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.