Changeset 43859 for branches/5.0/src/wp-includes/class-wp-dependency.php
- Timestamp:
- 11/01/2018 01:50:59 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-includes/class-wp-dependency.php
r41162 r43859 69 69 70 70 /** 71 * Translation textdomain set for this dependency. 72 * 73 * @since 5.0.0 74 * @var string 75 */ 76 public $textdomain; 77 78 /** 79 * Translation path set for this dependency. 80 * 81 * @since 5.0.0 82 * @var string 83 */ 84 public $translations_path; 85 86 /** 71 87 * Setup dependencies. 72 88 * … … 95 111 } 96 112 113 public function set_translations( $domain, $path = null ) { 114 if ( !is_string($domain) ) 115 return false; 116 $this->textdomain = $domain; 117 $this->translations_path = $path; 118 return true; 119 } 97 120 }
Note: See TracChangeset
for help on using the changeset viewer.