t. * * @since 5.9.0 * * @param int $menu_id The menu id to update. * @param WP_REST_Request $request Full details about the request. * @return bool True if the auto add setting was successfully updated. */ protected function handle_auto_add( $menu_id, $request ) { if ( ! isset( $request['auto_add'] ) ) { return true; } $nav_menu_option = (array) get_option( 'nav_menu_options', array( 'auto_add' => array() ) ); if ( ! isset( $nav_menu_option['auto_add'] ) ) { $nav_menu_option['auto_add'] = array(); } $auto_add = $request['auto_add']; $i = array_search( $menu_id, $nav_menu_option['auto_add'], true ); if ( $auto_add && false === $i ) { $nav_menu_option['auto_add'][] = $menu_id; } elseif ( ! $auto_add && false !== $i ) { array_splice( $nav_menu_option['auto_add'], $i, 1 ); } $update = update_option( 'nav_menu_options', $nav_menu_option ); /** This action is documented in wp-includes/nav-menu.php */ do_action( 'wp_update_nav_menu', $menu_id ); return $update; } /** * Returns the names of the locations assigned to the menu. * * @since 5.9.0 * * @param int $menu_id The menu id. * @return string[] The locations assigned to the menu. */ protected function get_menu_locations( $menu_id ) { $locations = get_nav_menu_locations(); $menu_locations = array(); foreach ( $locations as $location => $assigned_menu_id ) { if ( $menu_id === $assigned_menu_id ) { $menu_locations[] = $location; } } return $menu_locations; } /** * Updates the menu's locations from a REST request. * * @since 5.9.0 * * @param int $menu_id The menu id to update. * @param WP_REST_Request $request Full details about the request. * @return true|WP_Error True on success, a WP_Error on an error updating any of the locations. */ protected function handle_locations( $menu_id, $request ) { if ( ! isset( $request['locations'] ) ) { return true; } $menu_locations = get_registered_nav_menus(); $menu_locations = array_keys( $menu_locations ); $new_locations = array(); foreach ( $request['locations'] as $location ) { if ( ! in_array( $location, $menu_locations, true ) ) { return new WP_Error( 'rest_invalid_menu_location', __( 'Invalid menu location.' ), array( 'status' => 400, 'location' => $location, ) ); } $new_locations[ $location ] = $menu_id; } $assigned_menu = get_nav_menu_locations(); foreach ( $assigned_menu as $location => $term_id ) { if ( $term_id === $menu_id ) { unset( $assigned_menu[ $location ] ); } } $new_assignments = array_merge( $assigned_menu, $new_locations ); set_theme_mod( 'nav_menu_locations', $new_assignments ); return true; } /** * Retrieves the term's schema, conforming to JSON Schema. * * @since 5.9.0 * * @return array Item schema data. */ public function get_item_schema() { $schema = parent::get_item_schema(); unset( $schema['properties']['count'], $schema['properties']['link'], $schema['properties']['taxonomy'] ); $schema['properties']['locations'] = array( 'description' => __( 'The locations assigned to the menu.' ), 'type' => 'array', 'items' => array( 'type' => 'string', ), 'context' => array( 'view', 'edit' ), 'arg_options' => array( 'validate_callback' => function ( $locations, $request, $param ) { $valid = rest_validate_request_arg( $locations, $request, $param ); if ( true !== $valid ) { return $valid; } $locations = rest_sanitize_request_arg( $locations, $request, $param ); foreach ( $locations as $location ) { if ( ! array_key_exists( $location, get_registered_nav_menus() ) ) { return new WP_Error( 'rest_invalid_menu_location', __( 'Invalid menu location.' ), array( 'location' => $location, ) ); } } return true; }, ), ); $schema['properties']['auto_add'] = array( 'description' => __( 'Whether to automatically add top level pages to this menu.' ), 'context' => array( 'view', 'edit' ), 'type' => 'boolean', ); return $schema; } } 2012 Budget Proposal: Aliero Restates Role Of Senate To Ensure National Outlook – New National Star
  • About
  • Advertise
  • Privacy & Policy
  • Contact
New National Star
Advertisement
  • Home
  • Breaking news
  • Business
  • Entertainment
  • World
  • Politics
    • Press Release
  • Government
    • Nigeria
    • Metro
    • Security And Defecnce
  • Sports
    • Football
  • Columns
    • Articles
    • Opinions
No Result
View All Result
  • Home
  • Breaking news
  • Business
  • Entertainment
  • World
  • Politics
    • Press Release
  • Government
    • Nigeria
    • Metro
    • Security And Defecnce
  • Sports
    • Football
  • Columns
    • Articles
    • Opinions
No Result
View All Result
New National Star
No Result
View All Result
Home News

2012 Budget Proposal: Aliero Restates Role Of Senate To Ensure National Outlook

New National Star by New National Star
October 26, 2020
in News
2
2012 Budget Proposal: Aliero Restates Role Of Senate To Ensure National Outlook

The Chairman, Senate Committee on Works, Senator Muhammad Adamu Aliero, has said that the upper legislative chamber committee on budget defence is to correct all imbalances if any on the proposed budget, so that all parts of Nigeria would be adequately covered. 

Sen. Aliero, made this known recently in Abuja, during the commencement of budget defence by ministries and agencies. In this vein, the lawmaker representing Kebbi Central Senatorial District at the senate explained that the budget defence is to assess if there are imbalances. 

However, Senator Aliero, expressed satisfaction with the explanation provided by the Minister of Works, Babatunde Fashola, saying “if they are roads that cut across states definitely such roads will serve various Senatorial Districts, For instance, if a road from Calabar-Lagos, Port-Harcourt-Maiduguri, Kano to Lagos, AbujaKano definitely these roads would have cut across all the senatorial districts in the country,” he said. Meanwhile, the Senator representing Borno Central Senatorial District, Kashim Shettima, has accused the Ministry of Works for shortchanging the Northeast in its 2021 proposed budget in terms of road contracts. 

In contrast, the Minister explained that all regions were adequately captured using the A1-A9 roads network which links up the entire country in the road network.

Tags: Babatunde FasholaNew National Starproposed budgetSenator Muhammad Adamu Alieroupper legislative chamber
Previous Post

‘Bad Federal Roads Bane Of Investments In Niger’

Next Post

South-West Govs To Igbo: Disregard Threat To Guit Lagos

New National Star

New National Star

It's not just the new. New National Star engages, informs and entertains the most influential minds. We shape Africa through our news coverage and analysis. Our tradition of journalistic excellence and unparalleled access, paired with cutting-edge engineering, make New National Star the trusted source for our audience.

Next Post
Video Footage Of Lekki Shooting Will Be Submitted To Judicial Panel – Sanwo-Olu

South-West Govs To Igbo: Disregard Threat To Guit Lagos

Comments 2

  1. Pingback: สล็อตเว็บตรง
  2. Pingback: cheap uniccv 2022

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected test

  • 23.9k Followers
  • 99 Subscribers
Plugin Install : Widget Tab Post needs JNews - View Counter to be installed
  • Trending
  • Comments
  • Latest
President Tinubu Reaffirms Administration’s Commitment To Ending Gas-flaring

President Tinubu Reaffirms Administration’s Commitment To Ending Gas-flaring

December 2, 2023
Head Of Service Office In Abuja Gutted By Fire

Head Of Service Office In Abuja Gutted By Fire

December 2, 2023
NIPR, commends Gov Soludo for being gender sensitive, choice of Prof Omenugha as new COOU VC

NIPR, commends Gov Soludo for being gender sensitive, choice of Prof Omenugha as new COOU VC

December 2, 2023
NNL Chairman, Aluo gets FCT SWAN award alongside CEO

NNL Chairman, Aluo gets FCT SWAN award alongside CEO

December 2, 2023

Recent News

President Tinubu Reaffirms Administration’s Commitment To Ending Gas-flaring

President Tinubu Reaffirms Administration’s Commitment To Ending Gas-flaring

December 2, 2023
Head Of Service Office In Abuja Gutted By Fire

Head Of Service Office In Abuja Gutted By Fire

December 2, 2023
NIPR, commends Gov Soludo for being gender sensitive, choice of Prof Omenugha as new COOU VC

NIPR, commends Gov Soludo for being gender sensitive, choice of Prof Omenugha as new COOU VC

December 2, 2023
NNL Chairman, Aluo gets FCT SWAN award alongside CEO

NNL Chairman, Aluo gets FCT SWAN award alongside CEO

December 2, 2023
Currently Playing
New National Star

We Tell It The Way It Is

Follow Us

Browse by Category

  • Africa
  • Agric
  • Articles
  • Awards
  • Breaking news
  • Business
  • Columns
  • Culture
  • Defence
  • Diaspora
  • Economy
  • Editorial
  • Education
  • Energy
  • Entertainment
  • Features
  • Football
  • Gender
  • Government
  • Health
  • Interview
  • Judiciary
  • Metro
  • News
  • Nigeria
  • Opinions
  • Politics
  • Press Release
  • Religion
  • Security And Defecnce
  • Sports
  • Technology
  • Under the Neem Tree 🎄
  • Us Today
  • World

Recent News

President Tinubu Reaffirms Administration’s Commitment To Ending Gas-flaring

President Tinubu Reaffirms Administration’s Commitment To Ending Gas-flaring

December 2, 2023
Head Of Service Office In Abuja Gutted By Fire

Head Of Service Office In Abuja Gutted By Fire

December 2, 2023
  • About
  • Advertise
  • Privacy & Policy
  • Contact

© 2023 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Breaking news
  • Business
  • Entertainment
  • World
  • Politics
    • Press Release
  • Government
    • Nigeria
    • Metro
    • Security And Defecnce
  • Sports
    • Football
  • Columns
    • Articles
    • Opinions

© 2023 JNews - Premium WordPress news & magazine theme by Jegtheme.