Skip to content

Commit d973a1f

Browse files
DGStefandavidmosterdtobiasschutter
authored
Release 4.5 (#350)
Co-authored-by: David Mosterd <david@codepress.nl> Co-authored-by: Tobias Schutter <tobias@codepress.nl>
1 parent b74202e commit d973a1f

File tree

176 files changed

+6016
-5450
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+6016
-5450
lines changed

api.php

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -99,24 +99,6 @@ function ac_load_columns( array $data ) {
9999
$factory->create()->add( $data );
100100
}
101101

102-
/**
103-
* @param string|null $slug
104-
*
105-
* @return string
106-
*/
107-
function ac_get_admin_url( $slug = null ) {
108-
return Url\Editor::create_with_slug( $slug )->get_url();
109-
}
110-
111-
/**
112-
* @param string|null $slug
113-
*
114-
* @return string
115-
*/
116-
function ac_get_admin_network_url( $slug = null ) {
117-
return Url\EditorNetwork::create_with_slug( $slug )->get_url();
118-
}
119-
120102
/**
121103
* Convert site_url() to [cpac_site_url] and back for easy migration
122104
*
@@ -221,4 +203,28 @@ function ac_get_columns( $list_screen_id ) {
221203
*/
222204
function ac_format_date( $format, $timestamp = null, DateTimeZone $timezone = null ) {
223205
return ( new Helper\Date() )->format_date( $format, $timestamp, $timezone );
206+
}
207+
208+
/**
209+
* @param string|null $slug
210+
*
211+
* @return string
212+
* @deprecated 4.5
213+
*/
214+
function ac_get_admin_url( $slug = null ) {
215+
_deprecated_function( __METHOD__, '4.5', 'Url\Editor' );
216+
217+
return ( new Url\Editor( $slug ) )->get_url();
218+
}
219+
220+
/**
221+
* @param string|null $slug
222+
*
223+
* @return string
224+
* @deprecated 4.5
225+
*/
226+
function ac_get_admin_network_url( $slug = null ) {
227+
_deprecated_function( __METHOD__, '4.5', 'Url\EditorNetwork' );
228+
229+
return ( new Url\EditorNetwork( $slug ) )->get_url();
224230
}

assets/css/admin-general.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/admin-page-addons.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/admin-page-columns.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/message.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/notice.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/table.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/admin-general.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/admin-page-addons.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/admin-page-columns.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)